The solution to centos php.ini not taking effect: first modify etc/php.ini in centos; then check the process number; and finally execute "/etc/init.d/php-fpm".
The operating environment of this article: centOS6.8 system, PHP5.6 version, DELL G3 computer
Modifying php.ini under CentOS does not take effect
PHP Version 5.6php.ini restarts nginx php.ini settings do not take effect
After modifying etc/php.ini in centos:
ps aux | grep php-fpm
Find the master process (/etc /php-fpm.conf)’s process number is xxxx
kill -QUIT xxxx
Then:
/etc/init.d/php-fpm
If you set permissions and start php-fpm when installing PHP:
chmod 755 /etc/init.d/php-fpm /etc/init.d/php-fpm start chkconfig –add php-fpm
You can start, stop and restart as a service:
service php-fpm start service php-fpm stop service php-fpm reload
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of What to do if centos php.ini does not take effect. For more information, please follow other related articles on the PHP Chinese website!