Home  >  Article  >  Backend Development  >  linux下php.ini无法加载

linux下php.ini无法加载

WBOY
WBOYOriginal
2016-06-23 14:02:561045browse

我的环境是nginx+php5.0+linux
我编译php的时候,已经指定了php.ini的目录是/usr/local/php/etc,而且也把它拷贝到了这个目录下,可是我看phpinfo(),那个配置文件一项一直是(none),这是怎么回事。但是百分之十的机会,我把nginx和php-fpm关闭再开启,又会加载。郁闷死了


回复讨论(解决方案)

重启一下

启动php-fpm的时候指定配置文件路径
另外我怀疑你关闭的时候杀进程不完全

极有可能是配置错误!
我也犯过这样的错误:php.ini里边注释符是;  不是#  不要的东西随手加了#结果保存重启了PHP之后发现配置文件加载不进来

碰到了,同样的问题,无法解决

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