Page 1 of 1

Installation failed 403

Posted: Thu Jul 19, 2018 11:04 am
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.

Re: Installation failed 403

Posted: Thu Jul 19, 2018 11:07 am
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.

Re: Installation failed 403

Posted: Thu Jul 19, 2018 11:11 am
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

Re: Installation failed 403

Posted: Thu Jul 19, 2018 11:14 am
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?

Re: Installation failed 403

Posted: Thu Jul 19, 2018 11:14 am
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.

Re: Installation failed 403

Posted: Thu Jul 19, 2018 11:32 am
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.

Re: Installation failed 403

Posted: Thu Jul 19, 2018 12:34 pm
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?

Re: Installation failed 403

Posted: Thu Jul 19, 2018 1:26 pm
by cockraml
It did resolve the issue. Thank you for your help.

Re: Installation failed 403

Posted: Thu Jul 19, 2018 1:37 pm
by scottwilkerson
cockraml wrote:It did resolve the issue. Thank you for your help.
Closing