常见PHP配置修改(Linux)
~# systemctl restart httpd; Maximum size of POST data that PHP will accept.
post_max_size = 16M
; Maximum allowed size for uploaded files.
upload_max_filesize = 16M~# systemctl restart httpdLast updated
~# systemctl restart httpd; Maximum size of POST data that PHP will accept.
post_max_size = 16M
; Maximum allowed size for uploaded files.
upload_max_filesize = 16M~# systemctl restart httpdLast updated
; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 90
; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts.<IfModule mod_php5.c>
php_value max_execution_time 90
</IfModule>~# systemctl restart httpd~# yum search memcached php
php-pecl-memcached - memcached module for php5~# yum install -y php-pecl-memcached
Reading package lists... Done
Reading state information... Done