Home  >  Article  >  Backend Development  >  What to do if centos php.ini does not take effect

What to do if centos php.ini does not take effect

藏色散人
藏色散人Original
2021-06-16 10:28:092238browse

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".

What to do if centos php.ini does not take effect

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!

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