I'm trying to get cacti running on Ubuntu 5.10 with PHP5, I've come across this error (actually a heap of them on the same page) when trying to view
http://localhost/cacti/
Warning: mysql_connect() [function.mysql-connect]: Access denied for user: 'cacti@localhost' (Using password: YES) in /usr/share/adodb/drivers/adodb-mysql.inc.php on line 338
I understand that to fix this error I need to add the following to /usr/share/cacti/site/include/config.php ???
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cacti";
$database_password = "cacti_password";
My question is where abouts do I need to include this information in this file? I can't seem to find any example config.php files on the net, I added the above straight into the file underneath:
db_connect_real($database_hostname, $database_username, $database_password, $database_default, $database_type);
That was a no go, and I also tried adding it as:
db_connect_real($database_hostname = "localhost", $database_username = "cacti", $database_password = "cacti_password", $database_default = "cacti", $database_type = "mysql");
which doesn't seem to work either.... keep in mind I've never touched the PHP language before so any help would be appreciated.