如何强制重装php.ini文件? [英] How to force reloading php.ini file?

查看:138
本文介绍了如何强制重装php.ini文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

上周我配置的Web服务器,它工作得很好。

今天,我要求其主页,我看到了一个时区的错误,因为它应该被配置到我的php.ini文件。

我尝试了的phpinfo(); 在我的网络服务器,它给我:

 配置文件(php.ini中)路径的/ opt / RRH / PHP / lib目录

但是,没有php.ini文件加载。

我调查,php文件存在,并且有非常大的权限:

  LS -la的/ opt / RRH / PHP / lib目录-rwxrwxrwx 1阿帕奇根68448 11月22日10:10的php.ini

我尝试了 parse_ini_file(/选择/ RRH / PHP / lib中/ php.ini中)); ,它没有返回错误...

当然,我重新启动我的服务器的时候十几个。

我可以做更多来解决我的问题?

我的系统:


  1. 红帽6

  2. 的Apache 2.4

  3. PHP 5.5.19与 libphp5.so Apache模块


解决方案

要逼你应该重新启动Apache php.ini中的重新加载。

尝试须藤服务的Apache2重启在命令行。
须藤/etc/init.d/apache2重启

I configured a web server last week, it worked fine.

Today I request its homepage, I see a timezone error, as it should be configured into my php.ini file.

I try a phpinfo(); on my webserver, it gives me:

Configuration File (php.ini) Path   /opt/rrh/php/lib 

But no php.ini file loaded.

I investigate, the php file exists and has very large permissions:

 ls -la /opt/rrh/php/lib    -rwxrwxrwx  1 apache root 68448 Nov 22 10:10 php.ini

I try a parse_ini_file("/opt/rrh/php/lib/php.ini"));, it returns no error...

Of course I restart my server a dozen of time.

What can I do more to resolve my problem?

My system:

  1. Redhat 6
  2. Apache 2.4
  3. PHP 5.5.19 with libphp5.so apache module

解决方案

To force a reload of the php.ini you should restart apache.

Try sudo service apache2 restart from the command line. Or sudo /etc/init.d/apache2 restart

这篇关于如何强制重装php.ini文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆