[CentOS] cacti on centos

Thu Jul 6 14:17:44 UTC 2006
Aleksandar Milivojevic <alex at milivojevic.org>

Quoting Aleksandar Milivojevic <alex at milivojevic.org>:

> Hi all,
>
> I'm trying to get Cacti installed on my CentOS 4.3 x86_64 box.  I've
> got all of required packages installed, and created database file, and
> followed all the instructions in install manual.
>
> However, when I get login screen and use admin for username/password,
> it simply redirects me straight back to login screen.  Looking at
> user_log table, the authentication was successfull (and since it was
> updated, I know database stuff works OK).  If I type username or
> password wrong, I get messages saying so.  If I just use admin as
> username/password, I get normal login screen with no "wrong password"
> message.

First, I'd like to thank all the people who replied to my cry for  
help.  Especially Jim Perrin for his SELinux config.

I've finally managed to get things going.  The problem was that Cacti  
hasn't liked settings in my php.ini.  The box where I installed it was  
used many times to test all kinds of software, and php.ini was edited  
many time in the process.

Seems that for Cacti, mbstring.func_overload must be set to 0 (I had  
it set to 7), and session.use_cookies to 1 (I had it set for 0).  The  
mbstring.func_overload was responsible for regular expression errors.   
session.use_cookies was responsible for login loop.

I simply added following to /etc/httpd/conf.d/cacti.conf (from Dag's  
cacti RPM):

php_flag mbstring.func_overload 0
php_flag session.use_cookies 1

Everything now works fine.  Well, at least for now ;-)

-- 
See Ya' later, alligator!
http://www.8-P.ca/