I've spent quite a bit of time trying to troubleshoot this on my own but I clearly need some help with this because I've spent hours and I can't seem to crack it. Any help would be very much appreciated!
I'm running the latest versions of Cacti and Weathermap on Cent OS 6.6. I can view all weathermaps fine but when I go into Editor and try to edit a file nothing changes and I get this error from Apache:
[Wed Mar 18 09:45:12 2015] [error] [client 10.X.X.X] PHP Warning: fopen(configs/company-WAN.conf): failed to open stream: Permission denied in /usr/share/cacti/plugins/weathermap/lib/Weathermap.class.php on line 2836, referer: http://cacti.company.local/cacti/plugin ... y-WAN.conf
WARNING: Couldn't open config file configs/company-WAN.conf for writing
[Wed Mar 18 10:14:21 2015] [error] [client 10.X.X.X] PHP Warning: fopen(configs/company-WAN.conf): failed to open stream: Permission denied in /usr/share/cacti/plugins/weathermap/lib/Weathermap.class.php on line 2836, referer: http://cacti.company.local/cacti/plugin ... y-WAN.conf
WARNING: Couldn't open config file configs/company-WAN.conf for writing
I've read that usually indicates a permission issue. I've tried everything and nothing makes a difference. I've "chown apache configs", I've even gone as far and "chmod -R 777 cacti" and that hasn't made a single bit of difference. It keeps reporting that it can't open the map for writing.
Here's the current permissions in the weathermap folder:
[root@cacti weathermap]# ls -la
total 380
drwxr-xr-x. 9 root root 4096 Mar 18 08:52 .
drwxr-xr-x. 4 root root 4096 Mar 18 08:39 ..
-rw-r--r--. 1 root root 12735 Apr 3 2013 cacti-pick.php
-rw-r--r--. 1 root root 35564 Apr 10 2013 CHANGES
-rw-r--r--. 1 root root 1633 Mar 22 2013 check-gdbug.php
-rw-r--r--. 1 root root 13008 Mar 25 2013 check.php
drwxr-xr-x. 2 apache root 4096 Mar 17 16:32 configs
-rw-r--r--. 1 root root 18011 Mar 22 2013 COPYING
drwxr-xr-x. 7 root root 4096 Apr 10 2013 docs
-rw-r--r--. 1 root root 49606 Mar 18 08:48 editor.php
drwxr-xr-x. 2 root root 4096 Apr 10 2013 editor-resources
drwxr-xr-x. 2 root root 4096 Apr 10 2013 images
-rw-r--r--. 1 root root 62 Mar 22 2013 index.php
drwxr-xr-x. 5 root root 4096 Apr 10 2013 lib
-rw-r--r--. 1 root root 65 Mar 22 2013 logout.php
-rw-r--r--. 1 root root 38 Mar 22 2013 net-data.txt
drwxr-xr-x. 2 cacti root 4096 Mar 18 09:55 output
-rw-r--r--. 1 root root 50734 Mar 22 2013 overlib.js
drwxr-xr-x. 2 root root 4096 Apr 10 2013 random-bits
-rw-r--r--. 1 root root 1348 Mar 25 2013 README
-rw-r--r--. 1 root root 36357 Mar 22 2013 setup.php
-rw-r--r--. 1 root root 8683 Apr 2 2013 weathermap
-rw-r--r--. 1 root root 149 Mar 22 2013 weathermap-cacti-plugin.css
-rw-r--r--. 1 root root 42134 Apr 2 2013 weathermap-cacti-plugin-mgmt.php
-rw-r--r--. 1 root root 26791 Apr 2 2013 weathermap-cacti-plugin.php
-rw-r--r--. 1 root root 1052 Mar 22 2013 weathermap-cacti-rebuild.php
-rw-r--r--. 1 root root 370 Mar 22 2013 weathermap.conf
And here's the current permissions for the configs folder:
[root@cacti configs]# ls -la
total 52
drwxr-xr-x. 2 apache root 4096 Mar 17 16:32 .
drwxr-xr-x. 9 root root 4096 Mar 18 08:52 ..
-rw-r--r--. 1 apache root 3445 Mar 9 10:02 01-Location.conf
-rw-r--r--. 1 apache root 396 Mar 9 10:02 100-Location.conf
-rw-r--r--. 1 apache root 5093 Mar 9 10:02 22-Location.conf
-rw-r--r--. 1 apache root 13246 Mar 10 17:14 company-WAN.conf
-rw-r--r--. 1 apache root 62 Mar 22 2013 index.php
-rw-r--r--. 1 apache root 1212 Mar 24 2013 simple.conf
Apache is the user running the apache processes so as far I know, it should work with the current permissions. For testing I just chmod -R 777 configs and it still doesn't work. Here's the new permissions:
[root@cacti configs]# ls -la
total 48
drwxrwxrwx. 2 apache root 4096 Mar 18 10:50 .
drwxr-xr-x. 9 root root 4096 Mar 18 08:52 ..
-rwxrwxrwx. 1 apache root 3445 Mar 9 10:02 01-Location.conf
-rwxrwxrwx. 1 apache root 396 Mar 9 10:02 100-Location.conf
-rwxrwxrwx. 1 apache root 5093 Mar 9 10:02 22-Location.conf
-rwxrwxrwx. 1 apache root 13246 Mar 10 17:14 company-WAN.conf
-rwxrwxrwx. 1 apache root 62 Mar 22 2013 index.php
-rwxrwxrwx. 1 apache root 1212 Mar 24 2013 simple.conf
Same error. Please help!
Editor Can't Modify Existing Maps
Moderators: Developers, Moderators
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Editor Can't Modify Existing Maps
selinux?
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Who is online
Users browsing this forum: No registered users and 2 guests