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

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

藏色散人
Release: 2023-03-10 16:18:02
Original
2286 people have browsed it

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
Copy after login

Find the master process (/etc /php-fpm.conf)’s process number is xxxx

kill -QUIT xxxx
Copy after login

Then:

/etc/init.d/php-fpm
Copy after login

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
Copy after login

You can start, stop and restart as a service:

service php-fpm start
service php-fpm stop
service php-fpm reload
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template