I installed Cacti on ubuntu and followed all instructions very carefully from the following link
http://www.cacti.net/downloads/docs/htm ... _unix.html
Now, when i go to http://localhost/cacti, i get the following error
Warning: mysql_connect() [function.mysql-connect]: Access denied for user: 'cacti@localhost.localdomain' (Using password: YES) in /usr/share/adodb/drivers/adodb-mysql.inc.php on line 338
The above line is repeated several times and the last time in that page is
Cannot connect to MySQL server on 'take3'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
I have made the changes in that config.php file and have specified databasename, username and other stuff.
When i was installing cacti. It gave me a warning for php include path change.. here is a screenshot
http://img265.imageshack.us/img265/3586 ... ntu0ec.png
i did edit the php.ini file in all three locations i found
/etc/php5/cli/php.ini
/etc/php5/apache2/php.ini
/etc/php4/apache2/php.ini"
Here is the change i made
Section : Paths and Directories ;
; UNIX: "/path1:/path2"
;include_path = ".:/usr/share/adodb" from /usr/share/php
I still get the error... Please help if you can.. Thanks,
p.s. mysql version is 4.0.24_Debian-10ubuntu2-log
Cacti on Ubuntu -
Moderators: Developers, Moderators
i did a test like as instructed by this page
http://www.phplivesupport.com/documenta ... d=35&pid=1
got the following error, so i believe the whole problem is the include path. I have changed it in three locations mentioned in my first post... where else can i make that change?
Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Warning: Unknown: Failed opening '/var/www/testdb.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
p.s. check the screenshot from my first post
http://www.phplivesupport.com/documenta ... d=35&pid=1
got the following error, so i believe the whole problem is the include path. I have changed it in three locations mentioned in my first post... where else can i make that change?
Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Warning: Unknown: Failed opening '/var/www/testdb.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
p.s. check the screenshot from my first post
cacti.conf file
Code: Select all
Alias /cacti /usr/share/cacti/site
<DirectoryMatch /usr/share/cacti/site>
Options +FollowSymLinks
AllowOverride None
order allow,deny
allow from all
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag short_open_tag On
php_flag register_globals Off
php_flag register_argc_argv On
php_flag track_vars On
# this setting is necessary for some locales
php_value mbstring.func_overload 0
php_value include_path .
DirectoryIndex index.php
</IfModule>
</DirectoryMatch>
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please check http://forums.cacti.net/viewtopic.php?t=10534, it may help ...
Reinhard
Reinhard
Who is online
Users browsing this forum: No registered users and 1 guest