![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
GFY's Halfpint
Industry Role:
Join Date: Jun 2007
Location: UK
Posts: 15,223
|
CRON JOB gurus what is wrong with this ??
One of the scripts I purchased wants me to set a cron job as follows
0 * * * * php "path to your website dir"/cron.php So I set it up like this in Cpanel on a shared hosting account in the Advanced (Unix Style) Minute Hour Day Month Weekday Command 0 * * * * /home/username/public_html/cron.php I keep getting emails saying this /bin/sh: /home/usermname/public_html/cron.php: Permission denied Does this mean that the cron job is not being done or being denied permissions or does it mean my email address is not acepting emails from the cron job If it is the cron job that is being denied should I change the file permissions on the cron.php or have I done something else wrong Thanks |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Sep 2003
Location: Toronto
Posts: 3,709
|
Not a guru by any means but maybe the file needs execute permissions.
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Pay It Forward
Industry Role:
Join Date: Sep 2005
Location: Yo Mama House
Posts: 77,228
|
make sure the path to php is right
__________________
TRUMP 2025 KEKAW!!! - The Laken Riley Act Is Law! DACA ENDED - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Sep 2003
Location: Toronto
Posts: 3,709
|
or there's in error in the path
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: May 2007
Posts: 1,644
|
change file permision so that user that is running that cron command can execute the file
(make the file executable for it's owner) |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
So Fucking Banned
Industry Role:
Join Date: Apr 2001
Location: the beach, SoCal
Posts: 107,089
|
Not sure about cPanel, but with DirectAdmin you use the URL, so public_html would not be in the path.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Pay It Forward
Industry Role:
Join Date: Sep 2005
Location: Yo Mama House
Posts: 77,228
|
{PATH TO PHP} is usual /usr/local/bin/php
{PATH TO PHP} /home/******/public_html/cron.php
__________________
TRUMP 2025 KEKAW!!! - The Laken Riley Act Is Law! DACA ENDED - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Industry Role:
Join Date: Jul 2003
Location: In the middle of nowhere...
Posts: 1,974
|
If you set it up like this:
/home/username/public_html/cron.php try this way instead (adding php and a space): php /home/username/public_html/cron.php If you just use /home/username/public_html/cron.php, the system will try to execute it as a shell script, I think, which causes the above error. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
making it rain
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,102
|
You forgot to put "php" in front of the file you wanted to run.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
GFY's Halfpint
Industry Role:
Join Date: Jun 2007
Location: UK
Posts: 15,223
|
Quote:
0 * * * * php "path to your website dir"/cron.php It has the "php" with a space in front thanks ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
<&(©¿©)&>
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
|
![]() if that doesn't work, try full path to php /usr/bin/php or /usr/local/bin/php
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000 Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager ![]() Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
GFY's Halfpint
Industry Role:
Join Date: Jun 2007
Location: UK
Posts: 15,223
|
thanks .. I just realised what I had done when m4yadult posted
thanks guys for the help ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
Industry Role:
Join Date: Jul 2003
Location: In the middle of nowhere...
Posts: 1,974
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Mainstream Businessman
Industry Role:
Join Date: Jan 2007
Location: San Diego
Posts: 9,291
|
GFY CAN be a beautiful thing - problem solved in 20 mins, nice.
__________________
Want to crush it in mainstream with Facebook ads? Hit me up.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
GFY's Halfpint
Industry Role:
Join Date: Jun 2007
Location: UK
Posts: 15,223
|
Yep and its free ....people bitch about GFY all the time
![]() I have asked for help a number of times on GFY and people on here have always helped Thanks GFY and all the peeps that have helped me over the last 2 years ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
|
needs path to php...
example 0 * * * * /usr/bin/php -q /home/user/public_html/cron.php you can also use some other command such as get or wget 0 * * * * GET http://www.yoursite.com/cron.php 0 * * * * wget http://www.yoursite.com/cron.php
__________________
Make a bank with Chaturbate - the best selling webcam program ![]() ![]() ![]() Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!! PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email: ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 | |
Pay It Forward
Industry Role:
Join Date: Sep 2005
Location: Yo Mama House
Posts: 77,228
|
Quote:
![]()
__________________
TRUMP 2025 KEKAW!!! - The Laken Riley Act Is Law! DACA ENDED - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |