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

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

小云云
Release: 2023-03-20 21:10:01
Original
4230 people have browsed it


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!

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