WebFaction
Community site: login faq

I am trying to run a php file that performs an update using Cron. My crontab currently says

00 7 * * * XXXXX php /home/XXXXX/webapps/ogroster/update.php >> /home/XXXXX/webapps/ogroster/cronlogs/update.log 2>&1

I have substituted XXXXX for my account name.

I think I might need a path to the PHP interpreter but I can't seem to find what it would be.

Can anyone help?

asked 06 Feb '11, 09:07

markan
123
accept rate: 0%


Yes, you do need the path to the PHP interpreter. The default path to the PHP binary on our side is /usr/local/bin/php (you can see it anytime by running "which php" in the SSH terminal)

permanent link

answered 06 Feb '11, 09:10

tie
1.4k13
accept rate: 44%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×262
×81
×50

question asked: 06 Feb '11, 09:07

question was seen: 4,535 times

last updated: 06 Feb '11, 09:10

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM