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

CRON Safe_Mode restriction

Discussion in 'Plesk for Linux - 8.x and Older' started by cgraham149, Jun 23, 2006.

  1. cgraham149

    cgraham149 Guest

    I am on a virtual dedicated server. I changed my vhost.conf file to this:

    <Directory "/home/httpd/vhosts/domain.com/httpdocs">
        php_admin_flag safe_mode off
    My Cron job (performed by root) is this:

    */59 * * * * /usr/bin/php /home/httpd/vhosts/domain.com/httpdocs/administrator/components/com_feedgator/cron.feedgator.php
    cron.feedgator.php is owned by apache.

    However, my Cron email reports the following errors:

    Warning:  main(): SAFE MODE Restriction in effect.  
    The script whose uid is 48 is not allowed to access 
    /home/httpd/vhosts/domain.com/httpdocs/administrator/components/com_feedgator/../../../globals.php owned by uid 0 in 
    /home/httpd/vhosts/domain.com/httpdocs/administrator/components/com_feedgator/cron.feedgator.php on line 20 
    Do I need to add another directory in the vhost.conf file to make this work, adjust path, or is this a file permissions issue? Any ideas on what I might be doing wrong?