Home   Help Login Register  
Welcome, Guest. Please login or register.

Login with username, password and session length

Search
Free Website WooThemes - Quality Themes, Great Support
Pages: [1]   Go Down
Print
Topic: setup cron to execute PHP file  (Read 1141 times)
« on: March 19, 2009, 07:18:17 AM »
Harry Offline
Newbie

View Profile
*

iTrader: 0
Posts: 11



I am trying to setup a cron job for my web site but it doesn't seem to be working. I have set it as follow:

usr/local/bin/php /home/xxxxxxx/public_html/xxxxxx/cron.php

Am I missing something?

Thanks,

Harry

Share this topic on AskShare this topic on BlinkbitsShare this topic on BlinklistShare this topic on BloglinesShare this topic on BmarksShare this topic on Del.icio.usShare this topic on DiggShare this topic on DzoneShare this topic on FacebookShare this topic on Feed Me LinksShare this topic on FurlShare this topic on GoogleShare this topic on LiveShare this topic on MagnoliaShare this topic on MySpaceShare this topic on NetvouzShare this topic on NewsvineShare this topic on OneviewShare this topic on RedditShare this topic on RojoShare this topic on ScuttleShare this topic on ShadowsShare this topic on SlashdotShare this topic on SpurlShare this topic on SquidooShare this topic on StumbleUponShare this topic on TechnoratiShare this topic on TwitterShare this topic on TipdShare this topic on YahooShare this topic on Google buzz
Logged
« Reply #1 on: March 19, 2009, 11:52:33 AM »
Kailash Offline
Administrator
Newbie

View Profile WWW
*****

iTrader: 50
Posts: 286



The cron seems to work fine but you forgot / in the cron command. It should be:

/usr/local/bin/php /home/xxxxxxx/public_html/xxxxxx/cron.php

You can also try the following cron to execute php file:

php -q /home/xxxxxxx/public_html/xxxxxx/cron.php

Kailash
« Last Edit: September 23, 2009, 10:22:06 PM by Kailash » Logged

« Reply #2 on: March 19, 2009, 09:53:21 PM »
Harry Offline
Newbie

View Profile
*

iTrader: 0
Posts: 11



hmm... I was not aware it was the mistake. Now, cron job is working fine.

Harry
Logged
Pages: [1]   Go Up
Print
Jump to:  

Untitled Document
(c) 2012 HELM, WHM, cPanel, ASP, .Net development, PHP, MySQL, MSSQL Server, SEO support forum
Powered by SMF 1.1.16 | SMF © 2011, Simple Machines | Forum style designed by PixelSlot
Google - Sitemap - XML Sitemap