Hi,
I have been trying to set up Nagios on my virtualmin server, the install was pretty easy as I ran a yum install, but after that came the suexec issue and I have run into heavy weather. I am on Virtualmin 3.79 GPL.
I transferred all the html files from /usr/share/nagios/html to my main website folder and that changed things cosmetically, by allowing me to "see" the nagios web page. However clicking on any link gives this error:
Forbidden
You don't have permission to access /nagios/cgi-bin//status.cgi on this server.
The logs indicate that
client denied by server configuration: /usr/lib/nagios/cgi-bin/status.cgi, referer: http://www.example.com/nagios/side.html
The CGI file permissions were changed to match those of the virtual host user, but to no avail. I tried to symlink the cgi files to the cgi folder of the virtual host but again it was a no go.
Googling didn't help much either. Anybody running Nagios with Virtualmin or am I way off course here ?
Howdy,
Yeah, files that are executed by suexec won't work if the exist outside of /home.
Your options there are:
or
Change this particular Virtual Server to use something like mod_php, which wouldn't use suexec. You can change that by going into Server Configuration -> Website Options, and setting "PHP script execution mode" to use mod_php.
-Eric
Hi,
Thanks for the reply. I will disable suexec for the Virtual Server and look into the matter.