Installation failed 403

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
cockraml
Posts: 28
Joined: Tue May 07, 2013 8:10 am

Installation failed 403

Post by cockraml »

Installed first time to test out the software. Script ran succesfully, but got 403 error on hitting the initial url /nagioslogserver. The umask on the server is 077. It seems to be a file permission issue which the installation script did not account for. What is the solution?


Also is selinux supposed to be disabled? The installation script looks like it tries to disable but doesn't actually happen until after reboot.
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Installation failed 403

Post by jomann »

Does your system not allow you to go to http://<ip>/nagioslogserver ? or that without the /nagioslogserver it doesn't work? There was an issue with placing the redirect file in /var/www/html at one point.

Yes, it should disable selinux - when you disable it, it goes into permissive mode and it actually becomes disabled once you restart.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
cockraml
Posts: 28
Joined: Tue May 07, 2013 8:10 am

Re: Installation failed 403

Post by cockraml »

No. The url returns a permission error 403.
[Thu Jul 19 11:41:55.206662 2018] [core:error] [pid 3051] (13)Permission denied: [client XXXXXXXXX:60619] AH00035: access to /nagioslogserver denied (filesystem path '/var/www/html/nagioslogserver/www') because search permissions are missing on a component of the path
cockraml
Posts: 28
Joined: Tue May 07, 2013 8:10 am

Re: Installation failed 403

Post by cockraml »

I believe the issue is with file permissions in /var/www since my umask is 0077. What should the umask be on the server before the installation script is run?
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Installation failed 403

Post by jomann »

It looks like it is the umask, normally the umask on a linux system is 022 and we don't test it on anything other than that.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
cockraml
Posts: 28
Joined: Tue May 07, 2013 8:10 am

Re: Installation failed 403

Post by cockraml »

I disabled selinux ahead of time and set the umask to 0022 prior to the install. It may be a good idea to put this in the installation document as a prereq requirement.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Installation failed 403

Post by scottwilkerson »

cockraml wrote:I disabled selinux ahead of time and set the umask to 0022 prior to the install. It may be a good idea to put this in the installation document as a prereq requirement.
We will have that added. Did this resolve your issue?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cockraml
Posts: 28
Joined: Tue May 07, 2013 8:10 am

Re: Installation failed 403

Post by cockraml »

It did resolve the issue. Thank you for your help.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Installation failed 403

Post by scottwilkerson »

cockraml wrote:It did resolve the issue. Thank you for your help.
Closing
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked