#1040195 nagios4-cgi: Downloads CGI files when mod_cgi is not enabled in Apache

Package:
nagios4-cgi
Source:
nagios4-cgi
Description:
cgi files for nagios4
Submitter:
Larsen
Date:
2024-02-07 13:21:03 UTC
Severity:
normal
#1040195#5
Date:
2023-07-03 09:28:12 UTC
From:
To:
Dear Maintainer,

I installed nagios4 in a Bookworm VM (where apache2 had not been installed
yet) and noticed that some links from the GUI downloaded the CGI files
instead of displaying their contents. Seems like this is caused by
"mod_cgi" not being enabled in Apache.

To fix this:
a2enmod cgi && apache2ctl -t && systemctl restart apache2

I think this should be done automatically or at least show a warning that
this needs to be done manually.

#1040195#10
Date:
2024-02-07 13:18:52 UTC
From:
To:
Dear Manteiner and Larsen,


Im using Nagios4 on a fresh install with repo packages. I want to ask if
you fixxed that with:

"a2enmod cgi && apache2ctl -t && systemctl restart apache2"

I dont know if I have the same problem , but I have the problem when I
go to "host" and "services" CGI status file is going to be downloaded.

I do "a2enmod cgi && apache2ctl -t && systemctl restart apache2" , and
another module active as "rewrite" , and the problem continue , if this
is another problem , I want to know to open a new bugreport.