[CentOS] cacti on centos

Peter Farrow peter at farrows.org
Wed Jul 5 21:37:42 UTC 2006


Hi Akeks,

I am running it on Centos 4.3 32 bit and 64 bit.

I found that SElinux had to be setup to allow it, I did this by 
disabling it (insert flame here)

I didn't have to change the paths you mention, my config.php has this in it:

/* used for includes */
$config["base_path"] = strtr(ereg_replace("(.*)[\/\\]include", "\\1", 
dirname(__FILE__)), "\\", "/");
$config["library_path"] = ereg_replace("(.*[\/\\])include", "\\1lib", 
dirname(__FILE__));
$config["include_path"] = dirname(__FILE__);

Cacti should prompt you to configure the first time you go to log in, 
has it done this yet?

Also usually if it bails at log in it may be a mySQL problem in my 
experience.

P.

Aleksandar Milivojevic wrote:
> 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.
>
> I'm kind of stuck.  Googling around hasn't helped much either.  
> Anybody else had same problem?
>
> Searching the list archive, I can see there are many folks outthere 
> running Cacti on CentOS, so hopefully somebody could help me out.
>
> Some additional notes:
>
> One thing I had to do was to hardcode paths in include/config.php for 
> $config["base_path"] and $config["library_path"].  The ereg_replace 
> stuff was throwing "premature end of regular expression" errors.  
> Could be related to the problem I have.
>
> I got same thing with Karan's and cacti.org SRPM files (0.8.6d and 
> 0.8.6h, respectively).
>
> SELinux is in permissive mode on the box.
>
> Relevant RPMs (other than cacti):
>
> Cacti box:
> httpd-2.0.52-22.ent.centos4
> php-mhash-4.3.9-3.12
> php-imap-4.3.9-3.12
> php-pgsql-4.3.9-3.12
> php-devel-4.3.9-3.12
> php-pear-4.3.9-3.12
> php-gd-4.3.9-3.12
> php-4.3.9-3.12
> php-mcrypt-4.3.9-3.12
> php-ldap-4.3.9-3.12
> php-snmp-4.3.9-3.12
> php-domxml-4.3.9-3.12
> php-mysql-4.3.9-3.12
> php-eaccelerator-4.3.9_0.9.3-4.2.el4.rf
> php-mcal-4.3.9-3.12
> php-mbstring-4.3.9-3.12
> rrdtool-1.0.50-3.el4.rf
> mysql-4.1.20-1.RHEL4.1
> mysqlclient10-3.23.58-4.RHEL4.1
> net-snmp-5.1.2-11.EL4.6
> net-snmp-utils-5.1.2-11.EL4.6
>
> MySQL box:
> MySQL-server-standard-5.0.22-0.rhel4
> MySQL-shared-standard-5.0.22-0.rhel4
> MySQL-devel-standard-5.0.22-0.rhel4
> MySQL-client-standard-5.0.22-0.rhel4
>
> Thanks,
>
> --See Ya' later, alligator!
> http://www.8-P.ca/
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
> --This message has been scanned for viruses and
> dangerous content by the Enhancion system Scanner
> and is believed to be clean.
> http://www.enhancion.net
>



More information about the CentOS mailing list