Knowledgebase: Programming/Scripting
A script I have installed (such as phpList) is reporting: Your webserver is running in "safe_mode" or "Warning: SAFE MODE Restriction in effect"
Posted by - NA - on 2006-10-16 12:59:48 PM

safe_mode is a security mode of PHP (please see http://uk.php.net/manual/en/features.safe-mode.php for more information) which can cause some problems with poorly written or quite old scripts which expect to operate under the old security model of PHP.

You can turn off safe_mode by adding a php.ini file (either by FTP or by using the cPanel File Manager to create a new text file called php.ini) in the same folder/directory as your script. This file should have the contents of just:

safe_mode = 0

This should stop the Your webserver is running in "safe_mode" or "Warning: SAFE MODE Restriction in effect" messages.

As we run phpSuExec, disabling safe_mode will not drastically change the security mode of PHP (as phpSuExec forces certain settings).

(9 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).