Author Topic: Interest Cron Job with Go Daddy [SOLVED]  (Read 9986 times)

Offline Emperium

Interest Cron Job with Go Daddy [SOLVED]
« on: February 15, 2008, 09:17:09 am »
Well, I tried making a Cron Job with Go Daddy hosting but I got an error at the time the cron job initiated.

"$HOME/html/emperium/forums/Sources/shop/dointerest.php" > "$HOME/html/emperium/forums/interest_log.htm" was the command I inputed. (I simply browsed for dointerest.php and got "$HOME/html/emperium/forums/Sources/shop/dointerest.php" then I added  > "$HOME/html/emperium/forums/interest_log.htm" to mimic the Cpanel example of having the interest_log.htm inside the forum directory. (Though that file does not exist in the forum directory, I'm assuming it gets made when the cron job is initiated.)

When the Cron Job attempted to do that command I got this:
/bin/sh: line 1: /var/chroot/home/content/E/m/p/[UserName]/html/emperium/forums/Sources/shop/dointerest.php: Permission denied

Can I please get help, I would really like to get Interest working on my SMF Shop :).
« Last Edit: February 18, 2008, 05:14:54 am by Emperium »

Offline Daniel15

Re: Interest Cron Job with Go Daddy
« Reply #1 on: February 15, 2008, 10:03:07 am »
Try this:
/usr/bin/php -q $HOME/html/emperium/forums/Sources/shop/dointerest.php" > "$HOME/html/emperium/forums/interest_log.htm

Offline Emperium

Re: Interest Cron Job with Go Daddy
« Reply #2 on: February 15, 2008, 10:47:42 pm »
This time when the cron job (/usr/bin/php -q $HOME/html/emperium/forums/Sources/shop/dointerest.php" > "$HOME/html/emperium/forums/interest_log.htm) initiated I got an email report saying:

/bin/sh: line 1: /usr/bin/php: No such file or directory

Seems like it didn't work.

Offline Emperium

Re: Interest Cron Job with Go Daddy
« Reply #3 on: February 18, 2008, 05:14:13 am »
SOLVED!
After asking countless people and searching up a bunch of resources and info, I finally figured out how to get the interest cron job working on GoDaddy's Cron Job Manager:

The command you have to type to run the dointerest.php is:

/web/cgi-bin/php -q /home/content/E/m/p/[MyUserName]/html/emperium/forums/Sources/shop/dointerest.php > /home/content/E/m/p/[MyUserName]/html/emperium/forums/interest_log.htm

"/web/cgi-bin/php" Runs the PHP. $Home is just an attribute to the path of the php ($HOME/html/emperium/forums/Sources/shop/dointerest.php), you have to put the actual full path or else it wont work (so you can't browse for the dointerest.php because you just get the $HOME attribute.

Save it and its good to go!

Offline Zablokfjer

Re: Interest Cron Job with Go Daddy [SOLVED]
« Reply #4 on: March 12, 2016, 08:39:35 am »
This is a very good post which I really enjoy reading. It is not every day that I have the possibility to see something like this.

Offline owlsarepretty009

Re: Interest Cron Job with Go Daddy [SOLVED]
« Reply #5 on: April 11, 2017, 10:51:19 pm »
Hello! Very interesting topic, thank you raised it