• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Safe mode

E

Estores

Guest
Running Parallels Plesk on dedicated server, and for a particular domain the Php safe mode checkbox is unticked. But when using the copy command via a cron job we get the error:
PHP Warning: copy(): SAFE MODE Restriction in effect

The Php code works fine via a url.
 
Hello,

Please, check the following settings:

1) If you have Debian/Ubuntu installation:

# cat /etc/php4/cli/php.ini |grep safe
safe_mode = On

As php uses this configuration file for the command line utilities.

2) Also please check permissions for all php.ini files in case you are running the script under some user it can not be read.

Thank you
 
Back
Top