phpinfo() 主值和本地值之间的差异

发布于 2024-09-12 03:56:24 字数 297 浏览 3 评论 0原文

我用 php 5.2.13 全新安装了 CentOs。 在加载并存在于 phpinfo() 标头中的 php.ini 中,我

  safe_mode=off

在 phpinfo() 信息中拥有

// local value - safe_mode: On
// master value - safe_mode: off

php 文件仅具有 phpinfo() 函数。 我仍在寻找虚拟主机文件以查看是否有任何指令覆盖此文件,但仍然有任何建议吗?

I have a clean install of a CentOs with php 5.2.13.
In php.ini that is loaded and present in the header of phpinfo() I have

  safe_mode=off

in the phpinfo() information I have

// local value - safe_mode: On
// master value - safe_mode: off

the php file has only a phpinfo() function.
I am still looking for vhost file to see if any directives are there overwriting this, but still then any sugggestions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

土豪 2024-09-19 03:56:24

“主值”(来自 php.ini)可以被 httpd.conf.htaccess 或其他带有 php_value 的 Apache 配置中的“本地值”覆盖强>指令。

"Master Value" (from php.ini) could be overridden with "Local Value" in httpd.conf, .htaccess or other Apache configuration with php_value directive.

如果没有 2024-09-19 03:56:24

在 phpinfo() 输出中查找“已解析的其他 ini 文件”。也可以在 Apache 配置(包括 .htaccess 文件)中更改此设置。

Look for "Additional ini files parsed" in phpinfo() output. This setting can also be changed in the Apache config (including .htaccess files).

甜心小果奶 2024-09-19 03:56:24

我发现问题/解决方案位于 vhosts 文件夹中添加的额外配置文件中。
该文件名为 httpd.include,其中包含这一行

php_admin_flag safe_mode on

PS。我真的很讨厌其他系统像这样动态创建文件,尤其是他们想要的值。

I found the problem/solution to be in the extra config file that is added in the vhosts folder.
The file is named httpd.include and it has this line

php_admin_flag safe_mode on

PS. I really hate when other systems create files on the fly like this, especially with values they want.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文