• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.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