1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Safe mode

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by Estores, Oct 22, 2009.

  1. Estores

    Estores Guest

    0
     
    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.
     
  2. Nataliya Zagr

    Nataliya Zagr Regular Pleskian

    21
    87%
    Joined:
    Apr 14, 2009
    Messages:
    242
    Likes Received:
    0
    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
     
Loading...