cron Job error

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
User avatar
kaos
Posts: 13
Joined: Wed Dec 04, 2002 8:54 am

cron Job error

Post by kaos »

Hello,

Does anyone knows what this mean? This happens when the cron Job executes.

<br>
<b>Fatal error</b>: Call to undefined function: mysql_connect() in <b>/var/www/html/cacti/include/database.php</b> on line <b>19</b><br>

Grtz
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

The most probable explanation is you don't have PHP compiled with mysql support.

- bulek
User avatar
kaos
Posts: 13
Joined: Wed Dec 04, 2002 8:54 am

Post by kaos »

Hello,

I do have compiled it with mysql support. Look below.
Configure Command './configure' '--with-mysql' '--with-apxs'
I'm not sure if the problem lies in the php.ini file or in the mysql install.
I use Redhat 7.2.

Grtz
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

Ok... what about the following line in php.ini:
extension=mysql.so
Should be uncommented.

- bulek
User avatar
kaos
Posts: 13
Joined: Wed Dec 04, 2002 8:54 am

Post by kaos »

Hello,

I checked the .ini file and uncommend the line, but the problem is still the same. :cry:
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

No other ideas at the moment. I hope you restarted apache after the line has been uncommented.

- bulek
User avatar
kaos
Posts: 13
Joined: Wed Dec 04, 2002 8:54 am

Post by kaos »

Yep, i rebooted the server. Trying now to install php again.
For so far thanks fot the help :D

Grtz
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests