After setup can't see anything!
Moderators: Developers, Moderators
-
- Posts: 14
- Joined: Mon Aug 11, 2008 2:18 pm
After setup can't see anything!
I have setup cacti using the setup instructions from the website. I am running Fedora 8 on a Dell Inspiron 6400 laptop. When I navigate to http://localhost/cacti/ I get a blank page. I have tried navigating to http://my-ipaddress/cacti and I get a "You don't have permission to access /cacti on this server" from Apache. I attributed this to permissions but I can see the apache test page if I go to http://localhost. I followed every instruction (except for the freebsd part of the instruction). Any suggestions?
What is the UNIX path to your Apache document root?
What is the UNIX path to your Cacti document root?
Do a
ls -alF /YourApacheDocRootPathHere
and
ls -alF /YourCactiDocRootHere
In your Apache httpd.conf, what is the user and group your web server runs as?
You may need to chown the CactiDocRoot
For example on my system:
chown -R www:www /opt/apache/htdocs/cacti/
Of course on my system the user and group for apache is www
What is the UNIX path to your Cacti document root?
Do a
ls -alF /YourApacheDocRootPathHere
and
ls -alF /YourCactiDocRootHere
In your Apache httpd.conf, what is the user and group your web server runs as?
You may need to chown the CactiDocRoot
For example on my system:
chown -R www:www /opt/apache/htdocs/cacti/
Of course on my system the user and group for apache is www
Thank you,
Ernie
http://www.NMSWorld.com
[b]Dual Zeon Dual Core 2.6Ghz / 8GB RAM / 4x15k RPM SATA RAID5[/b]
[b]Cacti Version[/b] - 0.8.7b
[b]Poller Type[/b] - cactid 0.8.7 with Boost v1.7
[b]Server Info[/b] - FreeBSD 7.0-RELEASE
[b]Web Server[/b] - Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 PHP/5.2.5 mod_perl/2.0.3 Perl/v5.8.8
[b]PHP[/b] - 5.2.6
[b]MySQL[/b] - 5.0.51b Mod: poller_output ENGINE = MEMORY
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Host Info (hostinfo - v0.2), Update Checker (update - v0.3), Network Tools (tools - v0.2), FlowView (flowview - v0.3), Read-only Devices Tab (devices - v0.4), Network Discovery (discovery - v0.8.3), Syslog Monitoring (syslog - v0.5.2), Thresholds (thold - v0.3.9), Device Monitoring (monitor - v0.8.2), PHP Network Weathermap (weathermap - v0.941), SuperLinks (superlinks - v0.72), Report Creator (reports - v0.1b)
Ernie
http://www.NMSWorld.com
[b]Dual Zeon Dual Core 2.6Ghz / 8GB RAM / 4x15k RPM SATA RAID5[/b]
[b]Cacti Version[/b] - 0.8.7b
[b]Poller Type[/b] - cactid 0.8.7 with Boost v1.7
[b]Server Info[/b] - FreeBSD 7.0-RELEASE
[b]Web Server[/b] - Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 PHP/5.2.5 mod_perl/2.0.3 Perl/v5.8.8
[b]PHP[/b] - 5.2.6
[b]MySQL[/b] - 5.0.51b Mod: poller_output ENGINE = MEMORY
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Host Info (hostinfo - v0.2), Update Checker (update - v0.3), Network Tools (tools - v0.2), FlowView (flowview - v0.3), Read-only Devices Tab (devices - v0.4), Network Discovery (discovery - v0.8.3), Syslog Monitoring (syslog - v0.5.2), Thresholds (thold - v0.3.9), Device Monitoring (monitor - v0.8.2), PHP Network Weathermap (weathermap - v0.941), SuperLinks (superlinks - v0.72), Report Creator (reports - v0.1b)
-
- Posts: 14
- Joined: Mon Aug 11, 2008 2:18 pm
Cacti Location: /usr/cacti/cacti-0.8.7b/
Apache location: /var/www/html/ (i think?)
[root@MatthewB /]# ls -alF /var/www/html/
total 24
drwxr-xr-x 2 root root 4096 2008-08-12 10:01 ./
drwxr-xr-x 6 root root 4096 2008-08-11 22:56 ../
-rw-r--r-- 1 root root 35 2008-08-08 12:23 index.html
[root@MatthewB /]# ls -alF /usr/cacti/cacti-0.8.7b/
total 1140
drwxr-xrwx 12 root root 4096 2008-02-11 16:57 ./
drwxr-xrwx 3 root root 4096 2008-08-11 23:09 ../
-rw-r--rw- 1 root root 6387 2008-02-11 16:57 about.php
-rw-r--rw- 1 root root 4612 2008-02-11 16:57 auth_changepassword.php
-rw-r--rw- 1 root root 11498 2008-02-11 16:57 auth_login.php
-rw----rw- 1 root root 124294 2008-02-11 16:57 cacti.sql
-rw-r--rw- 1 root root 12960 2008-02-11 16:57 cdef.php
drwxr-xrwx 2 root root 4096 2008-02-11 16:57 cli/
-rw-r--rw- 1 root root 18369 2008-02-11 16:57 cmd.php
-rw-r--rw- 1 root root 5765 2008-02-11 16:57 color.php
-rw-r--rw- 1 root root 23279 2008-02-11 16:57 data_input.php
-rw-r--rw- 1 root root 33923 2008-02-11 16:57 data_queries.php
-rw-r--rw- 1 root root 49265 2008-02-11 16:57 data_sources.php
-rw-r--rw- 1 root root 31304 2008-02-11 16:57 data_templates.php
drwxr-xrwx 4 root root 4096 2008-02-11 16:57 docs/
-rw-r--rw- 1 root root 5958 2008-02-11 16:57 gprint_presets.php
-rw-r--rw- 1 root root 3404 2008-02-11 16:57 graph_image.php
-rw-r--rw- 1 root root 11550 2008-02-11 16:57 graph.php
-rw-r--rw- 1 root root 7716 2008-02-11 16:57 graph_settings.php
-rw-r--rw- 1 root root 13828 2008-02-11 16:57 graphs_items.php
-rw-r--rw- 1 root root 37125 2008-02-11 16:57 graphs_new.php
-rw-r--rw- 1 root root 50544 2008-02-11 16:57 graphs.php
-rw-r--rw- 1 root root 9945 2008-02-11 16:57 graph_templates_inputs.php
-rw-r--rw- 1 root root 18482 2008-02-11 16:57 graph_templates_items.php
-rw-r--rw- 1 root root 25042 2008-02-11 16:57 graph_templates.php
-rw-r--rw- 1 root root 29052 2008-02-11 16:57 graph_view.php
-rw-r--rw- 1 root root 5758 2008-02-11 16:57 graph_xport.php
-rw-r--rw- 1 root root 50228 2008-02-11 16:57 host.php
-rw-r--rw- 1 root root 18045 2008-02-11 16:57 host_templates.php
drwxr-xrwx 2 root root 4096 2008-02-11 16:57 images/
drwxr-xrwx 5 root root 4096 2008-02-11 16:57 include/
-rw-r--rw- 1 root root 2242 2008-02-11 16:57 index.php
drwxr-xrwx 2 root root 4096 2008-02-11 16:57 install/
drwxr-xrwx 3 root root 4096 2008-02-11 16:57 lib/
-rw-r--rw- 1 root root 15141 2008-02-11 16:57 LICENSE
drwxr-xrwx 2 Matthew root 4096 2008-02-11 16:57 log/
-rw-r--rw- 1 root root 2451 2008-02-11 16:57 logout.php
-rw-r--rw- 1 root root 4306 2008-02-11 16:57 poller_commands.php
-rw-r--rw- 1 root root 2243 2008-02-11 16:57 poller_export.php
-rw-r--rw- 1 root root 14960 2008-02-11 16:57 poller.php
-rw-r--rw- 1 root root 71 2008-02-11 16:57 README
drwxr-xrwx 5 root root 4096 2008-02-11 16:57 resource/
drwxr-xrwx 2 Matthew root 4096 2008-02-11 16:57 rra/
-rw-r--rw- 1 root root 7084 2008-02-11 16:57 rra.php
drwxr-xrwx 2 root root 4096 2008-02-11 16:57 scripts/
-rw-r--rw- 1 root root 7304 2008-02-11 16:57 script_server.php
-rw-r--rw- 1 root root 353 2008-02-11 16:57 script_server.pl
-rw-r--rw- 1 root root 4996 2008-02-11 16:57 settings.php
-rw-r--rw- 1 root root 6667 2008-02-11 16:57 templates_export.php
-rw-r--rw- 1 root root 6524 2008-02-11 16:57 templates_import.php
-rw-r--rw- 1 root root 17835 2008-02-11 16:57 tree.php
-rw-r--rw- 1 root root 41776 2008-02-11 16:57 user_admin.php
-rw-r--rw- 1 root root 48852 2008-02-11 16:57 utilities.php
From httpd.conf
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# . On SCO (ODT 3) use "User nouser" and "Group nogroup".
# . On HPUX you may not be able to use shared memory as nobody, and the
# suggested workaround is to create a user www and use that user.
# NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
# when the value of (unsigned)Group is above 60000;
# don't use Group #-1 on these systems!
#
User apache
Group apache
Another interesting twist in this story. So last night I completely removed the mysql, httpd, cacti, and php packages and then reinstalled them and setup cacti again. It worked... I was able to log in and even see some devices. When I woke up this morning and rebooted I now get the blank screen again. Any ideas?
Apache location: /var/www/html/ (i think?)
[root@MatthewB /]# ls -alF /var/www/html/
total 24
drwxr-xr-x 2 root root 4096 2008-08-12 10:01 ./
drwxr-xr-x 6 root root 4096 2008-08-11 22:56 ../
-rw-r--r-- 1 root root 35 2008-08-08 12:23 index.html
[root@MatthewB /]# ls -alF /usr/cacti/cacti-0.8.7b/
total 1140
drwxr-xrwx 12 root root 4096 2008-02-11 16:57 ./
drwxr-xrwx 3 root root 4096 2008-08-11 23:09 ../
-rw-r--rw- 1 root root 6387 2008-02-11 16:57 about.php
-rw-r--rw- 1 root root 4612 2008-02-11 16:57 auth_changepassword.php
-rw-r--rw- 1 root root 11498 2008-02-11 16:57 auth_login.php
-rw----rw- 1 root root 124294 2008-02-11 16:57 cacti.sql
-rw-r--rw- 1 root root 12960 2008-02-11 16:57 cdef.php
drwxr-xrwx 2 root root 4096 2008-02-11 16:57 cli/
-rw-r--rw- 1 root root 18369 2008-02-11 16:57 cmd.php
-rw-r--rw- 1 root root 5765 2008-02-11 16:57 color.php
-rw-r--rw- 1 root root 23279 2008-02-11 16:57 data_input.php
-rw-r--rw- 1 root root 33923 2008-02-11 16:57 data_queries.php
-rw-r--rw- 1 root root 49265 2008-02-11 16:57 data_sources.php
-rw-r--rw- 1 root root 31304 2008-02-11 16:57 data_templates.php
drwxr-xrwx 4 root root 4096 2008-02-11 16:57 docs/
-rw-r--rw- 1 root root 5958 2008-02-11 16:57 gprint_presets.php
-rw-r--rw- 1 root root 3404 2008-02-11 16:57 graph_image.php
-rw-r--rw- 1 root root 11550 2008-02-11 16:57 graph.php
-rw-r--rw- 1 root root 7716 2008-02-11 16:57 graph_settings.php
-rw-r--rw- 1 root root 13828 2008-02-11 16:57 graphs_items.php
-rw-r--rw- 1 root root 37125 2008-02-11 16:57 graphs_new.php
-rw-r--rw- 1 root root 50544 2008-02-11 16:57 graphs.php
-rw-r--rw- 1 root root 9945 2008-02-11 16:57 graph_templates_inputs.php
-rw-r--rw- 1 root root 18482 2008-02-11 16:57 graph_templates_items.php
-rw-r--rw- 1 root root 25042 2008-02-11 16:57 graph_templates.php
-rw-r--rw- 1 root root 29052 2008-02-11 16:57 graph_view.php
-rw-r--rw- 1 root root 5758 2008-02-11 16:57 graph_xport.php
-rw-r--rw- 1 root root 50228 2008-02-11 16:57 host.php
-rw-r--rw- 1 root root 18045 2008-02-11 16:57 host_templates.php
drwxr-xrwx 2 root root 4096 2008-02-11 16:57 images/
drwxr-xrwx 5 root root 4096 2008-02-11 16:57 include/
-rw-r--rw- 1 root root 2242 2008-02-11 16:57 index.php
drwxr-xrwx 2 root root 4096 2008-02-11 16:57 install/
drwxr-xrwx 3 root root 4096 2008-02-11 16:57 lib/
-rw-r--rw- 1 root root 15141 2008-02-11 16:57 LICENSE
drwxr-xrwx 2 Matthew root 4096 2008-02-11 16:57 log/
-rw-r--rw- 1 root root 2451 2008-02-11 16:57 logout.php
-rw-r--rw- 1 root root 4306 2008-02-11 16:57 poller_commands.php
-rw-r--rw- 1 root root 2243 2008-02-11 16:57 poller_export.php
-rw-r--rw- 1 root root 14960 2008-02-11 16:57 poller.php
-rw-r--rw- 1 root root 71 2008-02-11 16:57 README
drwxr-xrwx 5 root root 4096 2008-02-11 16:57 resource/
drwxr-xrwx 2 Matthew root 4096 2008-02-11 16:57 rra/
-rw-r--rw- 1 root root 7084 2008-02-11 16:57 rra.php
drwxr-xrwx 2 root root 4096 2008-02-11 16:57 scripts/
-rw-r--rw- 1 root root 7304 2008-02-11 16:57 script_server.php
-rw-r--rw- 1 root root 353 2008-02-11 16:57 script_server.pl
-rw-r--rw- 1 root root 4996 2008-02-11 16:57 settings.php
-rw-r--rw- 1 root root 6667 2008-02-11 16:57 templates_export.php
-rw-r--rw- 1 root root 6524 2008-02-11 16:57 templates_import.php
-rw-r--rw- 1 root root 17835 2008-02-11 16:57 tree.php
-rw-r--rw- 1 root root 41776 2008-02-11 16:57 user_admin.php
-rw-r--rw- 1 root root 48852 2008-02-11 16:57 utilities.php
From httpd.conf
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# . On SCO (ODT 3) use "User nouser" and "Group nogroup".
# . On HPUX you may not be able to use shared memory as nobody, and the
# suggested workaround is to create a user www and use that user.
# NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
# when the value of (unsigned)Group is above 60000;
# don't use Group #-1 on these systems!
#
User apache
Group apache
Another interesting twist in this story. So last night I completely removed the mysql, httpd, cacti, and php packages and then reinstalled them and setup cacti again. It worked... I was able to log in and even see some devices. When I woke up this morning and rebooted I now get the blank screen again. Any ideas?
From your output, I see your web files are owned by:
root root
meaning user root
and
group root
Your apache httpd.conf is set for
user apache
and
group apache
Look in your /etc/passwd file and see if user apache even exists.
cat /etc/passwd
If the user does not exist, add it with minimal permisions like:
pw groupadd apache
pw useradd apache -n apache -G apache -s /usr/sbin/nologin
Or whatever command you use to add users on your OS
Next I see your cacti is not a subdirectory under your apache root.
This may be as you desired and it is ok if you setup this path in your httpd.conf
Did you?
If not, you may not want this:
/usr/cacti/cacti-0.8.7b/
but instead as a subdir of your apache root like this:
/var/www/html/cacti/
Then you will want to chown the directory:
chown -R apache:apache /var/www/html/cacti/
root root
meaning user root
and
group root
Your apache httpd.conf is set for
user apache
and
group apache
Look in your /etc/passwd file and see if user apache even exists.
cat /etc/passwd
If the user does not exist, add it with minimal permisions like:
pw groupadd apache
pw useradd apache -n apache -G apache -s /usr/sbin/nologin
Or whatever command you use to add users on your OS
Next I see your cacti is not a subdirectory under your apache root.
This may be as you desired and it is ok if you setup this path in your httpd.conf
Did you?
If not, you may not want this:
/usr/cacti/cacti-0.8.7b/
but instead as a subdir of your apache root like this:
/var/www/html/cacti/
Then you will want to chown the directory:
chown -R apache:apache /var/www/html/cacti/
Thank you,
Ernie
http://www.NMSWorld.com
[b]Dual Zeon Dual Core 2.6Ghz / 8GB RAM / 4x15k RPM SATA RAID5[/b]
[b]Cacti Version[/b] - 0.8.7b
[b]Poller Type[/b] - cactid 0.8.7 with Boost v1.7
[b]Server Info[/b] - FreeBSD 7.0-RELEASE
[b]Web Server[/b] - Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 PHP/5.2.5 mod_perl/2.0.3 Perl/v5.8.8
[b]PHP[/b] - 5.2.6
[b]MySQL[/b] - 5.0.51b Mod: poller_output ENGINE = MEMORY
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Host Info (hostinfo - v0.2), Update Checker (update - v0.3), Network Tools (tools - v0.2), FlowView (flowview - v0.3), Read-only Devices Tab (devices - v0.4), Network Discovery (discovery - v0.8.3), Syslog Monitoring (syslog - v0.5.2), Thresholds (thold - v0.3.9), Device Monitoring (monitor - v0.8.2), PHP Network Weathermap (weathermap - v0.941), SuperLinks (superlinks - v0.72), Report Creator (reports - v0.1b)
Ernie
http://www.NMSWorld.com
[b]Dual Zeon Dual Core 2.6Ghz / 8GB RAM / 4x15k RPM SATA RAID5[/b]
[b]Cacti Version[/b] - 0.8.7b
[b]Poller Type[/b] - cactid 0.8.7 with Boost v1.7
[b]Server Info[/b] - FreeBSD 7.0-RELEASE
[b]Web Server[/b] - Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 PHP/5.2.5 mod_perl/2.0.3 Perl/v5.8.8
[b]PHP[/b] - 5.2.6
[b]MySQL[/b] - 5.0.51b Mod: poller_output ENGINE = MEMORY
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Host Info (hostinfo - v0.2), Update Checker (update - v0.3), Network Tools (tools - v0.2), FlowView (flowview - v0.3), Read-only Devices Tab (devices - v0.4), Network Discovery (discovery - v0.8.3), Syslog Monitoring (syslog - v0.5.2), Thresholds (thold - v0.3.9), Device Monitoring (monitor - v0.8.2), PHP Network Weathermap (weathermap - v0.941), SuperLinks (superlinks - v0.72), Report Creator (reports - v0.1b)
-
- Posts: 14
- Joined: Mon Aug 11, 2008 2:18 pm
I managed to get it running again... It appeared that I didn't give the correct path in the php config file. It's running now, but none of the graphs I setup appear. I looked at it and the 0.8.7b version of cacti doesn't seem to work with v1.3.x of rrdtool. So I manually setup the older 1.2.28 version along side of the 1.3.x version (because when I try to remove the 1.3.x version it removes cacti as well). I pointed to the path in the cacti settings (/usr/local/rrdtool-1.2.28/bin/rrdtool) but no graph yet..... any suggestions?
-
- Posts: 14
- Joined: Mon Aug 11, 2008 2:18 pm
I am using version 1.2.x I have set my 'RRDTool Utility Version" to "RRDTool 1.2.x" but it didn't work. So made sure that the path was set correctly... The RRDTool Binary Path is set to /usr/local/rrdtool-1.2.28/bin/rrdtool This should be correct as it says "OK: FILE FOUND" below the box. But I still don't see any graphs I just see a few arrows, and a magnifying glass beside the large white space that should be the graph. I have restarted my machine after making the changes but to no avail. Has anyone run into this before? I am using Cacti 0.8.7b.
-
- Posts: 14
- Joined: Mon Aug 11, 2008 2:18 pm
I have the same prolem
I install cacti under Redhat 5,and cannot open http:/localhost/cacti. How to solve the php config problem .
Could you give me some advise
Could you give me some advise
Who is online
Users browsing this forum: No registered users and 1 guest