Menu

Nagiosql 3.4.1 installation issue on opensuse 15.1 witj php7

2020-03-18
2020-03-20
  • Morten Bergmann

    Morten Bergmann - 2020-03-18

    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
  • Martin

    Martin - 2020-03-20

    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.

     
  • Morten Bergmann

    Morten Bergmann - 2020-03-20

    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
  • Martin

    Martin - 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.

     
  • Morten Bergmann

    Morten Bergmann - 2020-03-20

    Nagios is installed in /usr/local/nagiosql-3.4.1/.
    Here's the nagisql.conf file in /etc/apache2/conf.d/:

    <Directory "/usr/local/nagiosql-3.4.1">
    #  SSLRequireSSL
       Options None
    <IfVersion >= 2.3>
          <RequireAll>
             Require all granted
    #        Require host 127.0.0.1
    
             AuthName "Nagios Access"
             AuthType Basic
             AuthUserFile /usr/local/nagios/etc/htpasswd.users
             Require valid-user
          </RequireAll>
       </IfVersion>
       <IfVersion < 2.3>
          Order allow,deny
          Allow from all
    #     Order deny,allow
    #     Deny from all
    #     Allow from 127.0.0.1
    
          AuthName "Nagios Access"
          AuthType Basic
          AuthUserFile /usr/local/nagios/etc/htpasswd.users
          Require valid-user
       </IfVersion>
    #   AllowOverride None
    #   Order allow,deny
    #   Allow from all
    #  Order deny,allow
    #  Deny from all
    #  Allow from 127.0.0.1
    #   AuthName "Nagios Access"
    #   AuthType Basic
    #   AuthUserFile /usr/local/nagios/etc/htpasswd.users
    #   Require valid-user
    </Directory>
    
     

    Last edit: Martin 2020-03-20
  • Morten Bergmann

    Morten Bergmann - 2020-03-20

    the nagios installation is in /etc/local/nagios and have almost an identical .conf file and it works just fine

     
  • Morten Bergmann

    Morten Bergmann - 2020-03-20

    Thats's the installation guide I've used ....

     
  • Martin

    Martin - 2020-03-20

    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/"

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.