[ZBX-17021] Ubuntu with NGINX installation steps with configuration files are incorrect Created: 2019 Dec 02  Updated: 2024 Apr 10  Resolved: 2019 Dec 04

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Documentation (D), Frontend (F)
Affects Version/s: 4.4.3
Fix Version/s: 5.0 (plan)

Type: Problem report Priority: Trivial
Reporter: Edgar Akhmetshin Assignee: Jurijs Klopovskis
Resolution: Fixed Votes: 0
Labels: NGINX, PHP-FPM, documentation, ubuntu
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Team: Team I
Sprint: Sprint 59 (Dec 2019)
Story Points: 0.125

 Description   

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


Generated at Fri Apr 04 20:18:39 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.