相对于一般php.ini扩展加载:
extension=php_curl.dll (curl扩展) extension=php_gd2.dll (gd扩展) extension=php_mbstring.dll extension=php_mysqli.dll (mysqli扩展,7.0代替mysql) extension=php_openssl.dll (openssl扩展) extension=php_pdo_mysql.dll (pdo扩展)
特殊设定:
max_input_vars = 2000; (单次提交变量参数个数限制) max_input_time = 60; (提交响应时间) max_execution_time = 30;(执行时间) upload_max_filesize = 512M;(上传文件最大限制) max_file_upload = 20; (单次请求最大上传文件个数)
平滑重启php-fpm 7.0+
ps aux|grep php-fpm kill -USR2 xxxxx pkill php-fpm ./sbin/php-fpm
php编译扩展(php-redis实例)
wget -c https://github.com/phpredis/phpredis/archive/php7.zip unzip php7.zip cd phpredis-php7 /usr/local/php7/bin/phpize ./configure --with-php-config=/usr/local/php7/bin/php-config make make install
添加至”php.ini“
extension=redis.so