Plz Help

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

Moderators: Developers, Moderators

Post Reply
noesez
Posts: 2
Joined: Fri Mar 04, 2005 6:59 am

Plz Help

Post by noesez »

After install and configurer cacti and when enter (http://ipaddress/cacti/)
get this error


Fatal error: Call to undefined function: mysql_connect() in /var/www/html/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 341

Plz help me out
I'm using RedHat 9 with all packages install.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Some possible senarios:
  • Mysql module for php is not installed. Check out /usr/lib/php4, if there is not a mysql.so, then you need to install mysql support for php.
  • Make sure that you have updated the Database, Username and Password in the include/config.php in the cacti installation directory. Also, attempt to connect to the database as your cacti user to check that the user is configured correctly.

    Code: Select all

    mysql -u cactiuser -p cacti
  • Mysql is not running....
Let us know what the problem is/was. :)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
noesez
Posts: 2
Joined: Fri Mar 04, 2005 6:59 am

Post by noesez »

rony wrote:Some possible senarios:
  • Mysql module for php is not installed. Check out /usr/lib/php4, if there is not a mysql.so, then you need to install mysql support for php.
  • Make sure that you have updated the Database, Username and Password in the include/config.php in the cacti installation directory. Also, attempt to connect to the database as your cacti user to check that the user is configured correctly.

    Code: Select all

    mysql -u cactiuser -p cacti
  • Mysql is not running....
Let us know what the problem is/was. :)
Hi , I check /usr/lib/php4, for mysql.so , i cant find it there. so please help me how can i install mysql support for php.
where can i find mysql support of php and how can i install.
Thanks in Advance .
plz help me out
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

First, I direct you to the wealth of knowledge located at http://www.php.net.

Second, have fun, it's all about learning! :)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests