Find the answer to your Linux question:
Results 1 to 3 of 3
Hello all, The installation went well but when ever I try to access through webpage ... Forbidden you don't have permission to access /nagios/ on this server. Apache/2.2.15 (CentOS) Server ...
  1. #1
    Just Joined!
    Join Date
    Jul 2008
    Posts
    1

    Nagios 403 Forbidden error on centos vm

    Hello all,

    The installation went well but when ever I try to access through webpage ...


    Forbidden

    you don't have permission to access /nagios/ on this server.

    Apache/2.2.15 (CentOS) Server at 159.92.5.64 port 80


    Any advice pl..

    Thanks

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,970
    You will need to set the nagios directory execute permissions for other users. Try "chmod 775 /nagios"
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Linux Newbie
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    103
    Hello,

    If you're running CentOS 6, then SELinux is enforcing by default. You'll have to make sure you have your contexts set properly for the new files you have installed in your web directory.
    Since you're getting a 403 error, you also need to make sure the 'apache' user has read and execute permissions on that directory. Generally, if you installed the files via command line as root, root will be the owner. You can chown apache /path/to/www_root/nagios -R
    I don't recommend giving 'other' any permissions unless absolutely necessary.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...