简体   繁体   English

phpinfo() 显示 php.ini 的错误位置

[英]phpinfo() shows wrong location for php.ini

phpinfo() show php.ini location as /usr/local/zend/etc where as the actual location is /etc/php5/apache2 . phpinfo()php.ini位置显示为/usr/local/zend/etc而实际位置是/etc/php5/apache2 How do i fix this.我该如何解决。

I am trying to debug drupal from eclipse ide .. so i have installed zend debugger plugin .我正在尝试从 eclipse ide 调试 drupal .. 所以我已经安装了 zend 调试器插件。 Now i have to edit php.ini and add the following code现在我必须编辑 php.ini 并添加以下代码

zend_extension=full_path_to_zend_debugger_extension^gt;
zend_debugger.allow_hosts=127.0.0.1  
zend_debugger.expose_remotely=allowed_hosts

So before editing the php.ini, I am just using phpinfo() to find the location of php.ini .所以在编辑 php.ini 之前,我只是使用phpinfo()来查找php.ini的位置。 But it shows me some location where php.ini doesn't even exists.. please help但它向我展示了一些 php.ini 甚至不存在的位置..请帮忙

phpinfo() shows the php.ini file that is loaded by the version of PHP loaded by apache. phpinfo()显示由apache加载的PHP版本加载的php.ini文件。 You may have php.ini files in other locations, but it's the one that reported by phpinfo() that is loaded (and used) by apache.您可能在其他位置有 php.ini 文件,但它是由 apache 加载(和使用)的 phpinfo() 报告的文件。

What are you trying to do?你想做什么? We can help you "fix" that problem.我们可以帮助您“解决”这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM