It seems that the module apache-php (don't know the exactly name for your os) is missing. After the installation of this module, the apache daemon has to be restarted.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
After following alle the installation instructions I get the following in the error_log.
[Wed Mar 18 10:53:59.814139 2020] [core:notice] [pid 182571] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//
loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -D SYSTEMD -D FOREGROUND'
[Wed Mar 18 10:54:12.336240 2020] [php7:error] [pid 182579] [client 172.16.100.20:63373] PHP Fatal error: Uncaught Error: Call to undefined function install\functions\gettext() in /usr/l
ocal/nagiosql-3.4.1/install/functions/NagInstallClass.php:86\nStack trace:\n#0 /usr/local/nagiosql-3.4.1/install/index.php(142): install\functions\NagInstallClass->translate('Settings fil
e n...')\n#1 {main}\n thrown in /usr/local/nagiosql-3.4.1/install/functions/NagInstallClass.php on line 86
[Wed Mar 18 10:58:44.894407 2020] [autoindex:error] [pid 182577] [client 127.0.0.1:49224] AH01276: Cannot serve directory /srv/www/htdocs/: No matching DirectoryIndex (index.html,index.html
.var,index.php4,index.php5,index.php) found, and server-generated directory index forbidden by Options directive
[Wed Mar 18 11:03:44.901385 2020] [autoindex:error] [pid 182578] [client 127.0.0.1:49294] AH01276: Cannot serve directory /srv/www/htdocs/: No matching DirectoryIndex (index.html,index.html
.var,index.php4,index.php5,index.php) found, and server-generated directory index forbidden by Options directive
[Wed Mar 18 11:08:44.907678 2020] [autoindex:error] [pid 182580] [client 127.0.0.1:49380] AH01276: Cannot serve directory /srv/www/htdocs/: No matching DirectoryIndex (index.html,index.html
.var,index.php4,index.php5,index.php) found, and server-generated directory index forbidden by Options directive
[Wed Mar 18 11:08:48.749182 2020] [php7:error] [pid 182576] [client 172.16.100.20:63574] PHP Fatal error: Uncaught Error: Call to undefined function install\functions\gettext() in /usr/l
ocal/nagiosql-3.4.1/install/functions/NagInstallClass.php:86\nStack trace:\n#0 /usr/local/nagiosql-3.4.1/install/index.php(142): install\functions\NagInstallClass->translate('Settings fil
e n...')\n#1 {main}\n thrown in /usr/local/nagiosql-3.4.1/install/functions/NagInstallClass.php on line 86
[Wed Mar 18 11:13:44.914415 2020] [autoindex:error] [pid 182586] [client 127.0.0.1:49450] AH01276: Cannot serve directory /srv/www/htdocs/: No matching DirectoryIndex (index.html,index.html
.var,index.php4,index.php5,index.php) found, and server-generated directory index forbidden by Options directive
Any good tip for me to resolve this?
Last edit: Morten Bergmann 2020-03-18
The site http://gf-nagios-11.grilstad.no/nagios/ works fine but http://gf-nagios-11.grilstad.no/nagiosql/ give the error and I can not finish the configuration.
It seems that the module apache-php (don't know the exactly name for your os) is missing. After the installation of this module, the apache daemon has to be restarted.
Yes I know and I have restarted several times. I have confirmed that php i ok using the php_info scirpt.
Thanks for the reply!
Any other ideas?
Last edit: Morten Bergmann 2020-03-20
Call to undefined function install\functions\gettext()
-> That means, that php-gettext module ist not installed
/srv/www/htdocs/: No matching DirectoryIndex (index.html,index.html
.var,index.php4,index.php5,index.php)
Ist Nagiosql installed in /srv/www/htdocs/? Probably the DocumentRoot directive of your Apache configuration points to the wrong directory.
Nagios is installed in /usr/local/nagiosql-3.4.1/.
Here's the nagisql.conf file in /etc/apache2/conf.d/:
Last edit: Martin 2020-03-20
the nagios installation is in /etc/local/nagios and have almost an identical .conf file and it works just fine
You can find a documentation here:
https://sourceforge.net/projects/nagiosql/files/nagiosql/Documentation/
This file includes a Apache Example for NagiosQL
Thats's the installation guide I've used ....
Really?
But there is no statement like this in your Apache configuration file above as described in the decumentation:
Alias /nagiosql "/usr/local/nagiosql-3.4.1/"