LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   php safe mode (https://www.linuxquestions.org/questions/linux-server-73/php-safe-mode-873401/)

qwertyjjj 04-06-2011 01:37 PM

php safe mode
 
I set PHP safe mode to on in the php.ini.
I also set the safe_mode_exec_dir = /usr/local/sbin/myfolder/

In that folder I have a php script (not web facing) that runs some processing code on the server. However even after restarting httpd and reloading php.ini with safe mode on, it prevents the script from running an exec command in that folder.

ANy ideas what could be wrong?
I have to turn safe mode back to Off to allow the script in /usr/local/sbin/myfolder/script.php to work.

anomie 04-06-2011 04:04 PM

safe_mode (which is apparently deprecated and marked for removal) turns on a variety of features.

http://www.php.net/manual/en/ini.sect.safe-mode.php

Turning it on may be tripping you up on any of several of those protections. Your web server's error log will probably give you more details.

qwertyjjj 04-07-2011 01:54 AM

...


All times are GMT -5. The time now is 08:49 AM.