Extension not present
Hello
I am having problems getting a php script to run as a cron job, I have searched the forum however been unable to find a solution.. Im running CentOS 5.5 and PHP 5.2.17 phpscript is located in :- /root/cron/xyz.php permissions are 750 1st 2 lines of the php script is :- #!/usr/bin/php -q <?php Running the script from the command line works fine ie php -f /root/cron/xyz.php Cron setup is as follows :- file var/spool/cron/root contains 1 line as follows :- */5 * * * * /root/cron/xyz.php The cron job runs every 5 mins, but produces the following error :- Extension '/root/cron/xyz.php' not present. /etc/crontab variables are as follows :- SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ Hopefully i have provided enough infor for someone to provide some guidance on where to start looking to resolve teh Extension not present error Thank you in advance Stephen |
>contains 1 line as follows :-
>*/5 * * * * /root/cron/xyz.php "*/5 * * * * php -f /root/cron/xyz.php" ? |
Quote:
Thank you for your reply.... Using your example, does the PHP file then need the #!/usr/bin/php -q as its 1st line ?? Kind Regards Stephen |
Sorry.
Quote:
Pls ensure which directory PHP 5.2.7 is installed. |
All times are GMT -5. The time now is 11:12 PM. |