Cron daemon problem

Status
Not open for further replies.

carclub

New Member
Messages
2
Reaction score
0
Points
0
I wrote some PHP scripts and all works perfectly in my browsers. But then I create Cron jobs for that scripts and enter email for cron output I got mails with errors in my PHP scripts.

Its look like Cron daemon think that I have "Basic PHP Configuration" but I use "Intermediate PHP Configuration" and all needed PHP extensions allow for me (again, then I run this scripts from browser all OK).

Some info:
Cron daemon jobs:
php -q /home/carclub/public_html/**auto****.php - run every 15 minutes
php -q /home/carclub/public_html/****mail.php - run every hour

Errors(from Cron emails):
<b>Fatal error</b>: Call to undefined function mb_strcut() in <b>/home/carclub/public_html/****mail.php</b> on line <b>52</b>
<b>Fatal error</b>: Call to undefined function curl_init() in <b>/home/carclub/public_html/_****ser.php</b> on line <b>335</b>

Sorry for using asterics (*) in filenames, I don`t want show fullnames because somebody may want`s run this scripts and my site may down(I`m not good PHP programmer :) ).

Thank`s.
 
Last edited:

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
Use the command 'php-cron -q' instead of 'php -q', that should work for you.
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
I'm closing this thread. If you still need support please re-open it or create a new one.
 
Status
Not open for further replies.
Top