site error

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

Moderators: Developers, Moderators

Post Reply
derrick.joseph
Posts: 12
Joined: Wed Jan 26, 2005 11:00 pm

site error

Post by derrick.joseph »

Hi,
I am receiving the following errors when accessing the site http://localhost/cacti. What seems to be the problem here ?

Distro: Fedora Core release 3 (Heidelberg)
Cacti: cacti-0.8.6c.tar.gz
MySQL: mysql-3.23.58-13
php: php-4.3.9-3

[client 127.0.0.1] PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/html/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
[client 127.0.0.1] PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/html/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
[client 127.0.0.1] PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/html/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
[client 127.0.0.1] PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/html/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
[client 127.0.0.1] PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/html/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
[client 127.0.0.1] PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/html/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
[client 127.0.0.1] PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/html/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
[client 127.0.0.1] PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/html/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
[client 127.0.0.1] PHP Fatal error: Call to undefined function: cacti_log() in /var/www/html/cacti/lib/database.php on line 51
[Thu Feb 10 19:48:53 2005] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico

Please help.

Thanks.
gondo
Posts: 25
Joined: Tue Oct 19, 2004 12:05 pm
Location: Oxford, OH

site error

Post by gondo »

I had this issue running cacti under RHEL AS. The configuration of mysql, usually /etc/my.cnf and in the /etc/init.d/mysqld startup, and where cacti is looking for the unix socket to connect to, defined in the file referenced in your e-mail are not matching up.

At first I found the actual socket and created a symbolic link (ln -s {location where socket is} {location cacti is looking for}) but that is not the real fix. The fix is to modify the above files or build configuration and make them agree.

Hope this helps
gondo
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest