Jump to content

Crontab


avo

Recommended Posts

Hi All

As anyone any ideas on this please i have set up a cron tab within my server C_panel but this is the message im getting back from it
i thought it may have been something to do with chmod but i have set the folder and file inside with 777 and tried 755

but still get this error

/bin/sh: line 1: /var/www/vhosts/mydomainname.com/httpdocs/email/email.php: Permission denied

thanks in advance.
Link to comment
https://forums.phpfreaks.com/topic/27914-crontab/
Share on other sites

1) Is this a script that you don't want the general public to be able to access from the web?  Or do want it to ONLY run from crontab?

2) I have my cron-scripts stored in a directory outside of the public area.  My script file's permissions are set at 666.

My directory structure:

/home2
    /username
        /public_html  <--This folder and it's sub-folders are the only folders viewable by the public.
        /cron-scripts
        /includes

But of course this doesn't help answer the question as to why your script is failing.  I hope it does help though.
Link to comment
https://forums.phpfreaks.com/topic/27914-crontab/#findComment-127669
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.