Cron Job with Hostgator

powerteam

Regular Member
Joined
Sep 30, 2009
Messages
456
Reaction score
254
Im pretty sure I know what Im doing but just need someone to verify since their tech guy said that's out of the scope of what they do.

I have a cron of */5 * * * * php -q /home/user/public_html/clients/pipe/pop.php

I know */5 * * * * is the general settings for the time frame. So I can set that. Now the question is does:

php -q /home/user/public_html/clients/pipe/pop.php

go in the command line? The main thing confusing me is that I have never had a cron command with php -q in front of it like that, but these are .php files which I have never done before either.
 
i thought it was -s??

Surely though as hostgator has cpanel, you dont have to set these in the command line, you can use the graphical interface to set the cron job
 
i ran into similar problem while using cron job ,
You need to key in your username for your hosting account ,
You could use something like this
php -q /home/username/public_html/pathtofile.php
Hit thanks if you find this helpful.
 
Well where it says user in the command line I took out the user for security. So I can just:

php -q /home/user/public_html/clients/pipe/pop.php

in the command line as that is the path to the file?
 
yeah it should work fine , on the top you see option update email address so you will receive email once cron job is completed.
Go to file manager , and recheck the file path
set time to every 1 minute for testing and check if it works....this is a seo forum though
if you still have trouble contact hostgator technical support chat , they would look into this.
 
Back
Top