0

/<foldername>/<script>
OR
<foldername>/<script>

Which of these two methods would be the correct method for CronJobs to access a script within a directory in the <root> directory or is there another method ? Since I can't access a folder within the <root>. I setup CronJobs for a script, CronJobs fired back this error today; /usr/local/cpanel/bin/jailshell: <directory>/<script>.php: Permission denied

2
Contributors
5
Replies
21
Views
4 Years
Discussion Span
Last Post by LastMitch
0

CronJobs Error

I think you might have post this in the wrong section. It should be in PHP or Web Development section not CSS.

I assume you are doing something like this:

http://net.tutsplus.com/tutorials/other/scheduling-tasks-with-cron-jobs/

I setup CronJobs for a script, CronJobs fired back this error today; /usr/local/cpanel/bin/jailshell: <directory>/<script>.php: Permission denied

Set your .htaccess file so the CronJob will have access to the directory

Edited by LastMitch

0

This tutorial helps alot, my only problem was setting them up this should hopefully answer most, if not all of my questions :)

0

my only problem was setting them up this should hopefully answer most, if not all of my questions :)

You haven't set it up yet? OK, to resolve that permission you need to set the htacess file and it will let the cron job access to the directory.

If you have issue setting it up then follow the tutorial

0

It is setup. I have to tell the HTACCESS file the right directory to access the file.

Edited by Siberian

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.