Divi WordPress Theme

setup cron to execute PHP file

Topic: setup cron to execute PHP file  (Read 6481 times)

Offline Harry

  • New Member
  • *
  • Posts: 11
  • iTrader: +0/-0
    • View Profile
setup cron to execute PHP file
« on: March 19, 2009, 07:48:17 PM »
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
VPS Hosting - AccuWebHosting

Offline Kailash

  • Web Hosting Master
  • *****
  • Administrator
  • Posts: 662
  • iTrader: +153/-0
    • View Profile
Re: setup cron to execute PHP file
« Reply #1 on: March 20, 2009, 12:22:33 AM »
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 24, 2009, 10:52:06 AM by Kailash »

Offline Harry

  • New Member
  • *
  • Posts: 11
  • iTrader: +0/-0
    • View Profile
Re: setup cron to execute PHP file
« Reply #2 on: March 20, 2009, 10:23:21 AM »
hmm... I was not aware it was the mistake. Now, cron job is working fine.

Harry
Shopify Divi WordPress Theme
Tags:

Setup DNS in HELM

Started by scottBoard How Tos

Replies: 0
Views: 3635
Last post March 16, 2008, 12:06:17 AM
by scott
TechLogicSolutions.com – 100% Redundant Cloud Hosting, Fast Setup, Scalability

Started by KinderBoard Web Hosting Offers

Replies: 0
Views: 1446
Last post April 22, 2015, 02:31:02 PM
by Kinder
█★Dedicated Server Deals @40% [email protected]£29/M or £4.9/day★█★Instant Setup★FREE 5 IP★

Started by LeventisAnnouncerBoard Marketplace

Replies: 0
Views: 226
Last post August 04, 2021, 04:51:43 PM
by LeventisAnnouncer
Unmetered Europe Dedicated Servers, Fast Setup, Root Access, Bitcoins Accepted

Started by DavidBoard Web Hosting Offers

Replies: 0
Views: 1042
Last post March 29, 2017, 03:17:53 PM
by David
CDDHosting.com: Free SSL, Free Setup, High performance, Money Back Guarantee

Started by cdd.hostingBoard Web Hosting Offers

Replies: 0
Views: 1495
Last post April 06, 2015, 01:08:20 PM
by cdd.hosting