Home  >  Article  >  Backend Development  >  How to prevent modification of php.ini from taking effect under CentOS

How to prevent modification of php.ini from taking effect under CentOS

小云云
小云云Original
2018-03-08 09:27:154208browse


PHP Version 5.6php.ini restarts nginx and the php.ini settings do not take effect. This article mainly shares with you how to modify php.ini under CentOS and it does not take effect. I hope it can help you.

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn