[BlueOnyx:13805] Re: PHP in crontab ?
Michael Stauber
mstauber at blueonyx.it
Sat Oct 5 08:59:00 -05 2013
Hi Harm,
> I added:
>
> To my crontab file but it seems it isn’t executed, can someone tell me
> what I’m doing wrong here ?
There are a couple of ways how you can set up cronjobs.
If you add the cronjob to /etc/crontab, you need to specify the user as
which the cronjob should run. In your case you added "root", so that is
good. If you run "crontab -e" as root to edit the cronjobs, you can omit
specifying the user.
What you probably did wrong there is the location to your PHP
interpreter. On a BlueOnyx it's usually not /usr/local/bin/php.
It's either /usr/bin/php (for the onboard PHP) or
/home/solarspeed/php/bin/php if you have the Solarspeed / Compass PHP
package installed.
--
With best regards
Michael Stauber
More information about the Blueonyx
mailing list