Current time: 04-20-2024, 11:41 AM Hello There, Guest! (LoginRegister)


Post Reply 
Run php script in cron ?
Author Message
Eminos Offline
Junior Member
*

Posts: 159
Joined: Jan 2007
Reputation: 0
Post: #1
Run php script in cron ?
Hi there,

I'm using WHMCS as a billing solution.
To use the automation stuff I need to add a line to cron.
I can choose between adding this:
php -q /var/www/virtual/somedomain.net/htdocs/whmcs/admin/cron.php

and this:
0 9 * * * GET http://www.somedomain.net/whmcs//admin/cron.php

Somehow the first options seems to be the better choise. But when I try running "php" I get:
-bash: php: command not found

I guess I need to install some stuff to get the php from command line working, right ?

/E
05-20-2007 02:33 AM
Find all posts by this user Quote this message in a reply
MrLight Offline
Junior Member
*

Posts: 42
Joined: Apr 2007
Reputation: 1
Post: #2
RE: Run php script in cron ?
Did You install php-shell? (not php-cgi...)?

Mr Light
05-20-2007 03:48 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Eminos Offline
Junior Member
*

Posts: 159
Joined: Jan 2007
Reputation: 0
Post: #3
RE: Run php script in cron ?
noop, probably didn't Smile
Will try it out, thanks.

/E
05-20-2007 03:50 AM
Find all posts by this user Quote this message in a reply
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #4
RE: Run php script in cron ?
Hint: Debian package name is php[4|5]-cli
05-20-2007 04:06 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)