centos php.ini不生效的解决办法:首先在centos中修改etc/php.ini;然后查看进程号;最后执行“/etc/init.d/php-fpm”即可。

本文操作环境:centOS6.8系统、PHP5.6版,DELL G3电脑
CentOS下修改php.ini后不生效
PHP Version 5.6php.ini重启nginx php.ini设置不生效
centos中修改etc/php.ini后:
立即学习“PHP免费学习笔记(深入)”;
ps aux | grep php-fpm
查到master process (/etc/php-fpm.conf)的进程号是xxxx
kill -QUIT xxxx
然后:
/etc/init.d/php-fpm
如果在安装PHP时,设置了权限并启动php-fpm:
chmod 755 /etc/init.d/php-fpm /etc/init.d/php-fpm start chkconfig –add php-fpm
可以服务的方式启动、停止和重启:
service php-fpm start service php-fpm stop service php-fpm reload
推荐学习:《PHP视频教程》
以上就是centos php.ini不生效怎么办的详细内容,更多请关注php中文网其它相关文章!
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号