Forum Moderators: phranque

Message Too Old, No Replies

Cron Error

         

almo136

2:11 pm on Apr 4, 2010 (gmt 0)

10+ Year Member



I am trying to set up a cron job to run a php script. Problem is that I keep getting this error:

Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid is 10068 is not allowed to access /var/www/vhosts/mysite.com owned by uid 0 in /var/www/vhosts/mysite.com/httpdocs/export/gbase.php on line 11

jdMorgan

3:24 pm on Apr 4, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This looks like an "ownership" problem. The cron job has a different "owner" than the php script it is trying to invoke. You may want to look into "chown" to change the ownership of one or the other, so that you can continue to use the many security protections afforded by running in safe mode. If you turn off safe mode, you will need to do an extensive review of all security aspects of your server, and any failure to address all of them will likely eventually lead to a hacked server...

Jim