Simple problem.. hopefully a simple answer?

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
nick

Simple problem.. hopefully a simple answer?

Post by nick »

I just set up 0.6.7 on a machine identical to the machine I installed 0.6.6 on. I got mysql connect error upon loading of index.php... I can log on to mysql using the correct username/pass/database from the command prompt, but in the same session if I type 'php index.php' I get the 'unable to connect ot mysql server localhost blah blah'

running on redhat 7.2
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

If you are running redhat, make sure you have the 'php-mysql' package installed. Also make sure 'extension=mysql.so' is uncommented in your '/etc/php.ini' file.

-Ian
nick

Post by nick »

I'll try that, but the error that it's giving is actually the same socket error as the one in the mysql post (i just noticed it)
saipan

Same Here

Post by saipan »

Hi,

I'm also having the same problem using RH 7.2. This is what I get when I try to connect to cacti.

Fatal error: Call to undefined function: mysql_connect() in /var/www/html/cacti-0.6.7/include/database.php on line 19

I installed all the required packages and I still get this. Any ideas? Thanks.

sancho
karlh
Posts: 37
Joined: Wed Mar 06, 2002 7:00 pm
Location: Reykjavik, Iceland
Contact:

mysql error

Post by karlh »

Hi nick.
Im sure the $path_to_cacti/include/config.php has no host,user,pass defined ?
I upgraded to 0.6.7 and it is working as well as the previous release.
Ofcourse im using RedHat
Best regards
Karl Heidar
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

If you are still getting the:

Fatal error: Call to undefined function: mysql_connect()

error even after installing the 'php-mysql' package, try opening '/etc/php.ini' in a text editor. Then make sure 'extension=mysql.so' is uncommented, then restart Apache.

-Ian
battles

mysql_connect()

Post by battles »

:-?

I have installed php-mysql, made the correct edits in /etc/php.ini, restarted apache and I too get the following message....

Fatal error: Call to undefined function: mysql_connect() in /var/www/html/cacti-0.6.7/auth/include/database.php on line 18
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests