schilly Posted April 22, 2010 Share Posted April 22, 2010 I'm trying to figure out why two sites on the same server both loading the same php.ini file have safe_mode on and the other off. The master value is set to off in both phpinfo() displays which I assume is reflecting to php.ini file. php.ini has safe_mode off. Is there another area where config info is loaded from? Is the path displayed somewhere in the phpinfo()? The main reason I'm looking into this now is because I need to run an exec cmd on the site with safe_mode on which supposedly you can't do. Is there another way around this other than turning safe_mode off? Thanks. Link to comment https://forums.phpfreaks.com/topic/199436-exec-issue-due-to-safe_mode-on/ Share on other sites More sharing options...
Mchl Posted April 22, 2010 Share Posted April 22, 2010 Is the path displayed somewhere in the phpinfo()? Right at the beginning in: 'Loaded Configuration File' and 'Additional .ini files parsed ' Link to comment https://forums.phpfreaks.com/topic/199436-exec-issue-due-to-safe_mode-on/#findComment-1046723 Share on other sites More sharing options...
schilly Posted April 22, 2010 Author Share Posted April 22, 2010 ya both are the same. Loaded Configuration File /etc/php.ini Scan this dir for additional .ini files /etc/php.d additional .ini files parsed /etc/php.d/01a-ioncube-loader.ini, /etc/php.d/01b-ioncube-loader-custom.ini, /etc/php.d/dom.ini, /etc/php.d/fileinfo.ini, /etc/php.d/gd.ini, /etc/php.d/imap.ini, /etc/php.d/json.ini, /etc/php.d/ldap.ini, /etc/php.d/mbstring.ini, /etc/php.d/mcrypt.ini, /etc/php.d/mysql.ini, /etc/php.d/mysqli.ini, /etc/php.d/odbc.ini, /etc/php.d/pdo.ini, /etc/php.d/pdo_mysql.ini, /etc/php.d/pdo_odbc.ini, /etc/php.d/pdo_pgsql.ini, /etc/php.d/pdo_sqlite.ini, /etc/php.d/pgsql.ini, /etc/php.d/xmlreader.ini, /etc/php.d/xmlwriter.ini, /etc/php.d/xsl.ini, /etc/php.d/zip.ini Link to comment https://forums.phpfreaks.com/topic/199436-exec-issue-due-to-safe_mode-on/#findComment-1046726 Share on other sites More sharing options...
dirkers Posted April 22, 2010 Share Posted April 22, 2010 In the phpinfo() output, inspect the values for safe_mode_exec_dir, safe_mode_gid, safe_mode_include_dir. Any of these might cause one script to execute just fine while another fails. Also, refer to the safe_mode documentation. Link to comment https://forums.phpfreaks.com/topic/199436-exec-issue-due-to-safe_mode-on/#findComment-1046742 Share on other sites More sharing options...
schilly Posted April 23, 2010 Author Share Posted April 23, 2010 hmmmm not sure. safe_mode On safe_mode_exec_dir no value safe_mode_gid Off safe_mode_include_dir no value Link to comment https://forums.phpfreaks.com/topic/199436-exec-issue-due-to-safe_mode-on/#findComment-1047187 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.