avo Posted November 20, 2006 Share Posted November 20, 2006 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 deniedthanks in advance. Link to comment https://forums.phpfreaks.com/topic/27914-crontab/ Share on other sites More sharing options...
doni49 Posted November 21, 2006 Share Posted November 21, 2006 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 /includesBut 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 More sharing options...
avo Posted November 21, 2006 Author Share Posted November 21, 2006 Hi Thank you All help appriciated.I have figured it out hopefully this can help someone on the error i was getting the command line needed to be :-[code]GET http://www.yourdomain.com/email/email_me.php > /dev/null[/code]this then did the trick.Regards. Link to comment https://forums.phpfreaks.com/topic/27914-crontab/#findComment-127852 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.