Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-17021

Ubuntu with NGINX installation steps with configuration files are incorrect

XMLWordPrintable

    • Sprint 59 (Dec 2019)
    • 0.125

      Steps to reproduce:

      1. Follow official guide steps: https://www.zabbix.com/download?zabbix=4.4&os_distribution=ubuntu&os_version=18.04_bionic&db=mysql&ws=nginx
      2. Restart daemons before use (php-fpm not php7.2-fpm):
        [email protected]:~# systemctl restart zabbix-server zabbix-agent nginx php-fpm
        Failed to restart php-fpm.service: Unit php-fpm.service not found.
        
      3. Fix to php7.2-fpm and open web page: 404
        file /etc/nginx/sites-enabled/default  is in place
        
      4. remove file and open web page by suggested path: http://server_ip_or_name/zabbix - once again the same 404:
      # /etc/zabbix/nginx.conf
      ...
              root    /usr/share/zabbix;
      ...
                      fastcgi_param   DOCUMENT_ROOT   /usr/share/zabbix;
                      fastcgi_param   SCRIPT_FILENAME /usr/share/zabbix$fastcgi_script_name;
                      fastcgi_param   PATH_TRANSLATED /usr/share/zabbix$fastcgi_script_name;
      ...
      

      Web frotend installation can be continued using http://<server_name>/ without zabbix or:

      # /etc/zabbix/nginx.conf
      ...
              root    /usr/share;
      ...
                      fastcgi_param   DOCUMENT_ROOT   /usr/share;
                      fastcgi_param   SCRIPT_FILENAME /usr/share$fastcgi_script_name;
                      fastcgi_param   PATH_TRANSLATED /usr/share$fastcgi_script_name;
      ...
      

      Regards,
      Edgar

            yurii Jurijs Klopovskis
            edgar.akhmetshin Edgar Akhmetshin
            Team I
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: