Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Cannot log in to Cacti after new install

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific
Author Message
dougconran



Joined: 02 Nov 2008
Posts: 4

PostPosted: Sun Nov 02, 2008 6:19 pm    Post subject: Cannot log in to Cacti after new install Reply with quote

I have installed Cacti (0.87) onto my Linux server according to the instructions (as far as I can determine) but am getting the following error when I try and connect for the first time (using a URL of /cacti/index.php):-

Fatal error: Call to undefined function: session_name() in /usr/local/httpd/htdocs/cacti/include/global.php on line 128

I also just get a blank page when I try and access an HTML page with just

<?php phpinfo(); ?>

in it.

My configuarion is:

Linux - 2.6.13-15-smp (Suse linux v10.0)
Apache - 2.0.54
PHP - 4.4.0
Mysql - Ver 14.7 Distrib 4.1.13, for suse-linux (x86_64)
Cacti - cacti-0.8.7b

I do not know PHP at all and am completely stuck.

Any help would be gratefully received.

TIA

Doug
Back to top
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5448
Location: Wisconsin, USA

PostPosted: Sun Nov 02, 2008 6:49 pm    Post subject: Reply with quote

Search Google to help you with you PHP configuration.

The problem is that Sessions don't seem to be enabled in PHP, that would be my guess.
Back to top
dougconran



Joined: 02 Nov 2008
Posts: 4

PostPosted: Tue Nov 04, 2008 12:41 pm    Post subject: Reply with quote

PHP (4.4.0) was installed as part of the Suse 10 distro. It seems that it is compiled with --disable-sessions (and --disable-mysql).

Is there any way that I can change those settings in the PHP.ini file or do I have to re-compile? (Can't find the answer on Google).

TIA

Doug
Back to top
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5448
Location: Wisconsin, USA

PostPosted: Tue Nov 04, 2008 1:45 pm    Post subject: Reply with quote

Ah yes...
Code:

yum install php-session php-mysql
Back to top
dougconran



Joined: 02 Nov 2008
Posts: 4

PostPosted: Tue Nov 04, 2008 3:33 pm    Post subject: Reply with quote

php4-session and php4-mysql are already installed. Is there some way that I can remove the --disable-session/mysql settings?

Tks

Doug
Back to top
dougconran



Joined: 02 Nov 2008
Posts: 4

PostPosted: Tue Nov 04, 2008 3:36 pm    Post subject: Reply with quote

Oops - sorry, php -i reports --enable-session and --without-mysql (not --disable-mysql)

Doug
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group