Divi WordPress Theme

setup cron to execute PHP file

Topic: setup cron to execute PHP file  (Read 6228 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: 664
  • 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: 3450
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: 1305
Last post April 22, 2015, 02:31:02 PM
by Kinder
Unmetered Europe Dedicated Servers, Fast Setup, Root Access, Bitcoins Accepted

Started by DavidBoard Web Hosting Offers

Replies: 0
Views: 909
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: 1356
Last post April 06, 2015, 01:08:20 PM
by cdd.hosting
Dedicated Servers Special Deals - Same Day Setup! Bitcoins Accepted

Started by AJKpeterBoard Web Hosting Offers

Replies: 0
Views: 1607
Last post August 18, 2014, 12:35:08 PM
by AJKpeter