Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 757
Elzo Valugi Avatar asked Jul 26 '10 13:07

Elzo Valugi


2 Answers

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

like image 151
m1tk4 Avatar answered Oct 21 '22 12:10

m1tk4


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

like image 39
Oleksandr Yanovets Avatar answered Oct 21 '22 12:10

Oleksandr Yanovets