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/
> 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.> 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.i am afraid i can't help other than to say that i have cacti running on a cent os 4.3 x86_64 box and it runs fine so it can be done. sorry
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 >
BTW here are my rpms php-gd-4.3.9-3.12 php-pear-4.3.9-3.12 php-mysql-4.3.9-3.12 php-snmp-4.3.9-3.12 php-4.3.9-3.12 php-ldap-4.3.9-3.12 php-mbstring-4.3.9-3.12 httpd-2.0.52-22.ent.centos4 rrdtool-1.0.50-3.el4.rf perl-rrdtool-1.0.50-3.el4.rf My guess is you are missing perl-rrdtool rpm and thus should change back your config.php and do a yum install perl-rrdtool 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 >
On 7/5/06, Aleksandar Milivojevic <alex at milivojevic.org> 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.Given the error you're talking about, I'd guess database, but you say that's not the issue. Given that I don't see the compat libs for mysql5 on your box, I'd guess database as well, unless you rebuilt php, forgot to list them, or mysql changed how they're building stuff. Again, you say it's not an issue, so lets work from there. Dag's cacti rpm works flawlessly unless you have selinux enabled, but it is restricted to localhost however. Are you doing any sort of mod_rewrite in addition to his that would throw you back to the login screen constantly? Do you have mod_rewrite rules or an alias that conflict with the default alias? For those of you running cacti who may want to run with selinux, this is the ruleset that I added to /etc/selinux/targeted/src/policy/domains/misc (if you don't have the targeted policy src, install via yum. If you don't know why I put it there, read the docs. If you don't know what to do after you lave this, the next steps is also covered in the docs.) [root at www misc]# cat local.te # changes made to allow cacti allow httpd_sys_script_t httpd_tmp_t:file { read write }; allow httpd_sys_script_t snmpd_var_lib_t:file { getattr read }; allow httpd_sys_script_t var_lib_t:file { getattr read }; allow snmpd_t selinux_config_t:file { getattr read }; I'm by no means an selinux master. If someone has more secure rules for doing the same thing, I'm all ears. -- This message has been double ROT13 encoded for security. Anyone other than the intended recipient attempting to decode this message will be in violation of the DMCA
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/