Issue running cron.

Associate
Joined
25 Jun 2008
Posts
123
Location
Colwyn Bay, Wales
I'm assuming that this should go here. if it does not then im sure you will move it.

But anyway i have set up a site and i have got a schedule.php which when ran manually. So going to the page in an internet browser works fine.

So then i made up a cron job for it and have checked that this is correct but i also got it to put it to the logs what errors it encounters etc.

Well after a while i checked the log to see if it was working ok and all that and it had this in it for a while

Code:
<br />
<b>Fatal error</b>:  Call to undefined function mysqli_connect() in <b>/path/to/class_mysql.php</b> on line <b>134</b><br />

Now that works with the site as it is called upon regularly when there is a hit on the site.

Any ideas what to do to get ti working properly through a cron tab.

The operating system it is on is centos and the php has the mysqli extension installed and of course mysql is installed.
 
Maybe the website uses php4 and cron default to php5? That function is not included in the default php5 install you need php5-mysql package.
 
well i know the cron is using php 5.2.5 but the php that the site uses is 5.1.6 Isnt there any way to change the cron default php to the right version as im guessing that that is all this is.
 
Back
Top Bottom