Bug 130282 - cacti-0.8.6f-2 failed to open sesssion
Summary: cacti-0.8.6f-2 failed to open sesssion
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Other (show other bugs)
Version: Final
Hardware: Other SuSE Linux 10.0
: P5 - None : Normal
Target Milestone: SUSE Linux 10.1
Assignee: Wolfgang Rosenauer
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-24 15:19 UTC by a b
Modified: 2005-11-02 08:47 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description a b 2005-10-24 15:19:30 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
Comment 1 a b 2005-10-24 15:40:14 UTC
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
Comment 2 Michael Gross 2005-10-25 13:07:37 UTC
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.
Comment 3 a b 2005-10-25 15:07:28 UTC
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";
Comment 4 Wolfgang Rosenauer 2005-10-25 16:51:56 UTC
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.
Comment 5 Wolfgang Rosenauer 2005-10-25 17:34:11 UTC
anyway. That's not major.
Comment 6 Wolfgang Rosenauer 2005-11-02 08:47:51 UTC
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)