linux - 403 Forbidden and 13 Permission Denied -


i running problem of setting nagios, followed quick install guide http://nagios.sourceforge.net/ @ web interface prompt pc tring login web interface not local one, happen before prompt enter username , password.

forbidden  don't have permission access /nagios on server.  apache/2.2.3 (red hat) server @ xx.x.x.xxx port 80 

and

[error] [client xx.xxx.xx.xxx] (13)permission denied: access /nagios denied 

things have done try resolve it

sudo chmod 755 /home/me/nagios selinux=disabled   scriptalias /nagios/cgi-bin "/home/me/nagios/sbin"  <directory "/home/me/nagios/sbin"> #  sslrequiressl    options +execcgi    allowoverride none    order allow,deny    allow #  order deny,allow #  deny #  allow 127.0.0.1    authname "nagios access"    authtype basic    authuserfile /home/me/nagios/etc/htpasswd.users    require valid-user </directory>   alias /nagios "/home/me/nagios/share"  <directory "/home/me/nagios/share"> #  sslrequiressl    directoryindex index.html index.php    options none    allowoverride none    order allow,deny    allow #  order deny,allow #  deny #  allow 127.0.0.1    authname "nagios access"    authtype basic    authuserfile /home/me/nagios/etc/htpasswd.users    require valid-user </directory>  ls -l /home/me/nagios total 28 drwxrwxr-x  2 me me 4096 jun  9 13:55 bin drwxrwxr-x  5 me me 4096 jun  9 14:42 etc drwxr-xr-x  2 root    root    4096 jun  9 11:19 include drwxrwxr-x  2 me me 4096 jun  9 12:37 libexec drwxrwxr-x  2 me me 4096 jun  9 12:35 sbin drwxrwxr-x 11 me me 4096 jun 10 10:05 share drwxrwxr-x  5 me me 4096 jun 10 11:24 var 

as these installed

installed packages gcc.x86_64                                      4.1.2-55.el5                                           installed gd.i386                                         2.0.33-9.4.el5_4.2                                     installed gd.x86_64                                       2.0.33-9.4.el5_4.2                                     installed httpd.x86_64                                    2.2.3-91.el5                                           installed php.x86_64                                      5.1.6-44.el5_10                                        installed 

okay solve it...not sure how did lot of permission given manipulating ipconfig file did it

give 755 permission /home/me add nagios:506:nagios,apache add nagcmd:510:nagios,apache 

and change 500 error change nagios.conf overide indexes , worked


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -