View Single Post
  #5  
Old 25th July 2010, 01:06
MrCompTech MrCompTech is offline
Member
 
Join Date: Jul 2010
Posts: 92
Thanks: 1
Thanked 19 Times in 8 Posts
Default Cron jobs don't run even when logged in ssh as website user.

I tried creating the cron job after logging in as the website user.

crontab -e

created job
Code:
*       *       *       *       *       /usr/bin/php ./web/sendmails.php > /dev/null
But cron emails web site user error message:
Code:
Could not open input file: ./web/sendmails.php
so tried changing job to
Code:
*       *       *       *       *       /usr/bin/php /web/sendmails.php > /dev/null
and still get the same error
Code:
Could not open input file: /web/sendmails.php
Running the command from the command prompt as the website user -
Code:
/usr/bin/php /web/sendmails.php
results in
Code:
Could not open input file: /web/sendmails.php
But running command at command prompt
Code:
/usr/bin/php ./web/sendmails.php
works.

Any help on getting cron jobs configured under ISPConfig3 would be greatly appreciated!
Reply With Quote