[SOLVED] Need Help w/ Cacti Setup.. SO CLOSE!

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
User avatar
ltitusl
Posts: 18
Joined: Wed Sep 19, 2012 9:00 am

[SOLVED] Need Help w/ Cacti Setup.. SO CLOSE!

Post by ltitusl »

Okay I followed the below setup guide to setup Cacti:

http://forums.cacti.net/viewtopic.php?f=6&t=49363

If you search down to: Complete Cacti Installation via web installer I'm trying to pull up the website link and it's erroring out. I'm thinking the issue Apache config file. When I run the command service httpd restart I get the below error:

Image

So it looks like it's saying it's crapping out on line 58

Code: Select all

#
# Cacti: An rrd based graphing tool
#

# For security reasons, the Cacti web interface is accessible only to
# localhost in the default configuration. If you want to allow other clients
# to access your Cacti installation, change the httpd ACLs below.
# For example:
# On httpd 2.4, change "Require host localhost" to "Require all granted".
# On httpd 2.2, change "Allow from localhost" to "Allow from all".

Alias /cacti    /usr/share/cacti

<Directory /usr/share/cacti/>
        <IfModule mod_authz_core.c>
                # httpd 2.4
                Require host localhost
        </IfModule>
        <IfModule !mod_authz_core.c>
                # httpd 2.2
                Order deny,allow
                Deny from all
                Allow from localhost
        </IfModule>
</Directory>

<Directory /usr/share/cacti/install>
        # mod_security overrides.
        # Uncomment these if you use mod_security.
        # allow POST of application/x-www-form-urlencoded during install
        #SecRuleRemoveById 960010
        # permit the specification of the rrdtool paths during install
        #SecRuleRemoveById 900011
</Directory>


# These sections marked "Require all denied" (or "Deny from all")
# should not be modified.
# These are in place in order to harden Cacti.
<Directory /usr/share/cacti/log>
        <IfModule mod_authz_core.c>
                Require all denied
        </IfModule>
        <IfModule !mod_authz_core.c>
                Order deny,allow
                Deny from all
        </IfModule>
</Directory>
<Directory /usr/share/cacti/rra>
        <IfModule mod_authz_core.c>
                Require all denied
        </IfModule>
        <IfModule !mod_authz_core.c>
                Order deny,allow
                Deny from all
        </IfModule>
</Directory>
Alias /cacti /usr/share/cacti

<Directory /usr/share/cacti/>
Order Deny,Allow
Deny from none
Allow from all
</Directory>
Line 58 is Alias /cacti /usr/share/cacti

I'm so close to getting this running. I'm not a Linux guy, this has been a real struggle and I just need to get this running. Can anyone assist?
Last edited by ltitusl on Tue Mar 04, 2014 6:14 pm, edited 1 time in total.
information wants to be free
User avatar
ltitusl
Posts: 18
Joined: Wed Sep 19, 2012 9:00 am

[SOLVED} Re: Need Help w/ Cacti Setup.. SO CLOSE!

Post by ltitusl »

GOT IT! The guy who had wrote the FAQ had me create the firewall rules to open port 80, he said tack it on to the end of the file. Well I'm using Webmin and I was just poking around and looked at the firewall rules. The "Refuse All" rule that's at the end of every firewall rule list, was listed above the allow port 80 rule! EUREKA!! I also put a rule to allow port 3306, don't know if I need it but it's there and I don't want to touch anything that might screw it up.

Also for anyone else who this may help. After I finished the install I got to the user name and password area, I was trying the "cacti" and the "root" user names and it wasn't logging me in! I was really losing it, that I made it this far and I know the password was right. Turns out the default user and password is admin/admin used that and got right in.

So proud of myself, I'm such a Linux noob, and I was trying to hire someone to finish this project. Yes I spent way too much time on this, but I figured it out. Persistence pays!
information wants to be free
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest