login community 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 Feb 06 '11 at 09:07

markan's gravatar image

markan
13


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)

answered Feb 06 '11 at 09:10

tie's gravatar image

tie
140613

Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
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

Tags:

×150
×51
×37

Asked: Feb 06 '11 at 09:07

Seen: 1,984 times

Last updated: Feb 06 '11 at 09:10

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited