Webserver directories not created upon installation??
Moderators: Developers, Moderators
Webserver directories not created upon installation??
Hi All,
I'm a newbie with regards to cacti and apache webserver. After hours of reading and setting up I'm just about there with regards to my first ever install of cacti.
Straight to the point though...
We need a network performance/graphing solution NOW and after some browsing around I'm giving cacti a try.
Upon cd'ing to /var/www/html/ folder I see that there is no cacti subfolder??
As a result I am unable to browse to the <localhost>/cacti folder through my browser??
Does anyone have ANY IDEAS...SUGGESTIONS as to why this is the case....how to resolve as a number of the HOWTO's refer one to this web directory...which in my case does not exist??
I would be very grateful for some assistance!
Here's my current setup...
Fedora Core6
Cacti installed using "yum install cacti". The system resolved a range of dependencies and reports version
cacti 0.8.6j --> no arch
install created two cacti directory structures, namely
/etc/cacti ... and
/usr/share/cacti
TIA for any help
JON
I'm a newbie with regards to cacti and apache webserver. After hours of reading and setting up I'm just about there with regards to my first ever install of cacti.
Straight to the point though...
We need a network performance/graphing solution NOW and after some browsing around I'm giving cacti a try.
Upon cd'ing to /var/www/html/ folder I see that there is no cacti subfolder??
As a result I am unable to browse to the <localhost>/cacti folder through my browser??
Does anyone have ANY IDEAS...SUGGESTIONS as to why this is the case....how to resolve as a number of the HOWTO's refer one to this web directory...which in my case does not exist??
I would be very grateful for some assistance!
Here's my current setup...
Fedora Core6
Cacti installed using "yum install cacti". The system resolved a range of dependencies and reports version
cacti 0.8.6j --> no arch
install created two cacti directory structures, namely
/etc/cacti ... and
/usr/share/cacti
TIA for any help
JON
- nebj00la
- Cacti User
- Posts: 112
- Joined: Fri Feb 17, 2006 9:02 pm
- Location: Massachusetts, USA
- Contact:
This is one way to find the installation...
My system returned the following lines, where the install is located:
/var/www/html/cacti/index.php
/var/www/html/cacti/install/index.php
If this doesn't work, install from source following the directions at http://docs.cacti.net/node/5. You'll have to uninstall the RPM first.
Thanks,
nebj00la
Code: Select all
# cd /
# find | grep cacti | grep index.php
/var/www/html/cacti/index.php
/var/www/html/cacti/install/index.php
If this doesn't work, install from source following the directions at http://docs.cacti.net/node/5. You'll have to uninstall the RPM first.
Thanks,
nebj00la
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
A few interesting commands:
TheWitness
Code: Select all
rpm -qa | grep -i cacti
rpm -ql <rpm_name>
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Thanks so much for the feedback guys....here are my result sets...A few interesting commands:
Code:
rpm -qa | grep -i cacti
rpm -ql <rpm_name>
Code: Select all
rpm -qa | grep -i cacti
cacti-0.8.6j-1.fc6
and
Code: Select all
find | grep cacti | grep index.php
./usr/share/cacti/install/index.php
./usr/share/cacti/index.php
Possibly a silly question but what would happen if I were to create a symbolic link in the /var/www/html directory called cacti that points to /usr/share/cacti ? ?
Thanks again for the help...First prize would be to resolve the issue without having to reinstall from source....otherwise I'll be sure to read up further information from http://docs.cacti.net/node/5
Thanks
JON
- nebj00la
- Cacti User
- Posts: 112
- Joined: Fri Feb 17, 2006 9:02 pm
- Location: Massachusetts, USA
- Contact:
I believe the symbolic link should be fine, although I'm not a fan of using them unless absolutely necessary.
I'm wondering if your webroot is even /var/www/html, though. Normally it is, with basic Fedora installations.
Create a "one line" index.html file in the root of /var/www/html/, ie. "Hello World". If you browse to localhost and see "Hello World", then it's definitely the webroot folder.
Steps to create the "one line" file:
1. cd /var/www/html
2. touch index.html
3. vim index.html
4. While in vim, type the letter "i" to enter insert mode.
5. Enter "Hello World" without quotes.
6. Hit the escape key to exit insert mode.
7. Type ":wq!" without quotes to save the file.
Thanks,
nebj00la
I'm wondering if your webroot is even /var/www/html, though. Normally it is, with basic Fedora installations.
Create a "one line" index.html file in the root of /var/www/html/, ie. "Hello World". If you browse to localhost and see "Hello World", then it's definitely the webroot folder.
Steps to create the "one line" file:
1. cd /var/www/html
2. touch index.html
3. vim index.html
4. While in vim, type the letter "i" to enter insert mode.
5. Enter "Hello World" without quotes.
6. Hit the escape key to exit insert mode.
7. Type ":wq!" without quotes to save the file.
Thanks,
nebj00la
Thanks a lot!
Standby...here goes...
In the interim I have removed and reinstalled from SRC RPM. Post install I see that it has now created an rpm .i386 as opposed to the rpm that yum installed (.fc6)
Having installed this rpm...
Standby...here goes...
In the interim I have removed and reinstalled from SRC RPM. Post install I see that it has now created an rpm .i386 as opposed to the rpm that yum installed (.fc6)
Having installed this rpm...
Code: Select all
rpm -ivh cacti-0.8.6j-1.i386.rpm
[quote]
...I see that the system has now created and populated all of the directory entries in /var/www/html/cacti folder...VERY HAPPY :)
Only.....when I browse to the server IP/cacti folder with my browser I find that it doesn't appear to be hosting anything as I'm not getting any response from the server? ?
service httpd is running but when I try telneting to the server port 80 from one of my windows boxes the connection fails :(
Heck.....I don't know whether apache is playing ball at, is there anyway I can test?? I will try entering your Hello World index.htm file and let you know!?
Thanks nebj00la for the help in this quest for graphing bliss!!
JON
[/quote]
Guys!
I think we're on to something!
IPTABLES was running as when I managed to telnet to myself port 80
and it worked...
I checked the firewall and I see that the default is dropping inbound http requests...
after stopping the firewall I can get the Hello World homepage as well as a cacti installation page when browsing to http://<server ip>/cacti
I think we're on to something!
IPTABLES was running as when I managed to telnet to myself port 80
Code: Select all
telnet 127.0.0.1 80
I checked the firewall and I see that the default is dropping inbound http requests...
after stopping the firewall I can get the Hello World homepage as well as a cacti installation page when browsing to http://<server ip>/cacti
- nebj00la
- Cacti User
- Posts: 112
- Joined: Fri Feb 17, 2006 9:02 pm
- Location: Massachusetts, USA
- Contact:
You may have the firewall configured to allow only ssh inbound. I believe this is by default with Fedora installations. Keep the firewall on, allow specific services inbound.av8orjon wrote: Only.....when I browse to the server IP/cacti folder with my browser I find that it doesn't appear to be hosting anything as I'm not getting any response from the server? ?
service httpd is running but when I try telneting to the server port 80 from one of my windows boxes the connection fails
Check the firewall configuration:
1. From a shell, type "setup" without quotes.
2. Choose "Firewall configuration"
3. The firewall is most likely enabled, if so, choose "Customize".
5. Select "WWW" as one of the allowed incoming settings.
6. Exit the setup utility.
Thanks,
nebj00la
Thanks nebj00la!
That was the problem to my web browser woes....ruddy iptables! I will open up those ports so as to ensure that web requests from the internal LAN are trusted!
I have run through the cacti installation page (/cacti/install)....at just about the last page where one points the database to the relevant PATHS for the different binaries! I see that my particular install has a series of "NOT FOUND" next to all of the paths pertaining to the SNMP side of things! I remember reading up about the packages required and my memory is telling me that there was a package required so as to supply one with the SNMP features....can't remember the name!? snmp-<something> Otherwise RRDTool, PHP, cacti log files etc all look happy
If you know of a package offhand I'd appreciate your assistance...once again
That was the problem to my web browser woes....ruddy iptables! I will open up those ports so as to ensure that web requests from the internal LAN are trusted!
I have run through the cacti installation page (/cacti/install)....at just about the last page where one points the database to the relevant PATHS for the different binaries! I see that my particular install has a series of "NOT FOUND" next to all of the paths pertaining to the SNMP side of things! I remember reading up about the packages required and my memory is telling me that there was a package required so as to supply one with the SNMP features....can't remember the name!? snmp-<something> Otherwise RRDTool, PHP, cacti log files etc all look happy
If you know of a package offhand I'd appreciate your assistance...once again
- nebj00la
- Cacti User
- Posts: 112
- Joined: Fri Feb 17, 2006 9:02 pm
- Location: Massachusetts, USA
- Contact:
Make sure the following snmp packages are installed:av8orjon wrote:I see that my particular install has a series of "NOT FOUND" next to all of the paths pertaining to the SNMP side of things! I remember reading up about the packages required and my memory is telling me that there was a package required so as to supply one with the SNMP features....can't remember the name!?
net-snmp-5.x.x.fc6
net-snmp-utils-5.x.x.fc6 - This is probably the one missing...
net-snmp-libs-5.x.x.fc6
php-snmp-5.x.x.x.fc6
yum install net-snmp net-snmp-utils net-snmp-libs php-snmp
Thanks,
nebj00la
Superb!
I've downloaded and installed the FC6 I386 rpm from rpmfind.net and voila....it's working!!
At the moment I cannot get the box to resolve DNS behind our companies firewall so I'll be taking the machine home this evening so as to install the other packages with yum as you've mentioned
I really appreciate your time...you've truly helped someone out in Africa this evening !
I will let you know how I fare with the graphing!
Have a good evening
A happy JON
I've downloaded and installed the FC6 I386 rpm from rpmfind.net and voila....it's working!!
At the moment I cannot get the box to resolve DNS behind our companies firewall so I'll be taking the machine home this evening so as to install the other packages with yum as you've mentioned
Now it's graphing time for menet-snmp-5.x.x.fc6
net-snmp-utils-5.x.x.fc6 - This is probably the one missing...
net-snmp-libs-5.x.x.fc6
php-snmp-5.x.x.x.fc6
I really appreciate your time...you've truly helped someone out in Africa this evening !
I will let you know how I fare with the graphing!
Have a good evening
A happy JON
Who is online
Users browsing this forum: No registered users and 7 guests