Home > Article > Backend Development > How to prevent modification of php.ini from taking effect under CentOS
After modifying etc/php.ini in centos:
ps aux | grep php-fpm
Find the master process (/etc/php-fpm.conf) The process number is xxxx
kill -QUIT xxxx
Then:
/etc/init.d/php-fpm
//////////////// ////////////////////////////////////////////
If you are installing PHP , set permissions and start php-fpm:
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
Related recommendations:
php.ini configuration file information sharing
php file upload - configure php.ini file and predefined variables $_FILES
Detailed explanation of date.timezone setting in php.ini
The above is the detailed content of How to prevent modification of php.ini from taking effect under CentOS. For more information, please follow other related articles on the PHP Chinese website!