Bugzilla – Bug 130282
cacti-0.8.6f-2 failed to open sesssion
Last modified: 2005-11-02 08:47:51 UTC
install cacti via yast rcapache2 reload try: browser http://host/cacti/ result: Fatal error: Call to undefined function: session_start() in /usr/share/cacti/include/config.php on line 89 i changed /etc/php.ini include_path = ".:/usr/share/php" so he has a chance to find the include i enabled session: (was an hint in a ML) session.auto_start = 1 i have tried the current version of cacti with the same result
i found an hint in an other ml that solves THAT problem rpm -i php4-session now an other error shows up :) Warning: mysql_connect(): Access denied for user 'cactiuser'@'localhost' (using password: YES) in /usr/share/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339 obviously the mysqldb is not configured correcly
I suppose this is something you must do yourself... (who would even say that the used database is the local one, or why should there be created mysql-users during a package installation?). At the moment, there is no dependency set for php4-session. Wolfgang: Can you check that, please? And maby provide a comment about the mysql-user? Thanks.
the cacti installation now exspects some defaults from cacti/include/config.php maybe you can provide a script for a first install ? default values in cacti: $database_type = "mysql"; $database_default = "cacti"; $database_hostname = "localhost"; $database_username = "cactiuser"; $database_password = "cactiuser";
about comment #1: if php4-session is required and not required by the cacti RPM this is a bug, which will be fixed. The setup description can be found at /usr/share/cacti/docs/INSTALL I will think about adding a small script which will setup a local database.
anyway. That's not major.
The session bug is fixed for upcoming products. If /usr/share/cacti/docs/INSTALL is not sufficient I would be interested in the expectations what should be provided to make it easier. (Please in a new bug)