• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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