开发者

phpinfo() difference between master and local value

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?


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


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜