Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


[SOLVED] map config directory is not writable by web server

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
at9483mph



Joined: 23 Apr 2007
Posts: 12

PostPosted: Sun Dec 09, 2007 9:13 pm    Post subject: [SOLVED] map config directory is not writable by web server Reply with quote

Hi, I had just re-installed the new cacti with weathermap plugins and having some problems on the permissions for the editor+configs folder even I changed to 777 for the configs folder.

---------------------------------------------------------------------------------------
FILE PERMISSIONS :

drwxrwxrwx 2 apache apache 4096 2007-12-06 15:17 configs
---------------------------------------------------------------------------------------
editor-config.php :

$cacti_base = "/usr/share/cacti";
$cacti_url = "./../../";
$mapdir= $cacti_base."/plugins/weathermap/configs";
---------------------------------------------------------------------------------------

Please advise as I keep getting this error message "The map config directory is not writable by the web server user. You will not be able to edit any files until this is corrected. [WMEDIT01]" even tried on the nobody:nobody and 777 permissions.

Quote:
Cacti Version - 0.8.7a
Plugin Architecture - 1.4
Poller Type - CMD.php
Server Info - Linux 2.6.23.8-63.fc8
Web Server - Apache/2.2.6 (Fedora)
PHP - 5.2.4
PHP Extensions - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, pcre, SimpleXML, sockets, SPL, shmop, standard, Reflection, pspell, posix, iconv, hash, gmp, gettext, ftp, filter, exif, date, curl, ctype, calendar, bz2, zlib, openssl, apache2handler, dbase, gd, json, mbstring, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, rrdtool, snmp, zip
MySQL - 5.0.45
RRDTool - 1.2.99907080300
SNMP - 5.4.1
Plugins
    Global Plugin Settings (settings - v0.3)
    Device Monitoring (monitor - v0.8.1)
    Thresholds (thold - v0.3.
    PHP Network Weathermap (weathermap - v0.941)
    Network Discovery (discovery - v0.8.2)
    Documents (docs - v0.1)
    Host Info (hostinfo - v0.2)
    Network Tools (tools - v0.2)
    IP subnet Calculator IPv4 IPv6 (ipsubnet - v.4c)



editor.JPG
 Description:
 Filesize:  62.71 KB
 Viewed:  1149 Time(s)

editor.JPG


Back to top
llow
Cacti User


Joined: 05 Oct 2007
Posts: 88

PostPosted: Mon Dec 10, 2007 12:47 am    Post subject: Reply with quote

Are you using SELinux? Make sure the correct context is being used? (ls -Z)
Back to top
at9483mph



Joined: 23 Apr 2007
Posts: 12

PostPosted: Mon Dec 10, 2007 1:31 am    Post subject: Reply with quote

Thank you very much!! llow, it solved after I disabled the SELinux. Btw, what cause the weathermap unable to function when running SELinux ?

drwxrwxrwx apache apache system_u:object_r:usr_t:s0 configs
Back to top
llow
Cacti User


Joined: 05 Oct 2007
Posts: 88

PostPosted: Mon Dec 10, 2007 1:47 am    Post subject: Reply with quote

The files need to have a context that the web server is able to read/write. Most likely running a restorecon on the files will fix it for you. If not you can manualy change the context with chcon to something the web server can write to.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group