Ad Widget

Collapse

The nginx configuration file is missing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cfoucher
    Junior Member
    • Oct 2024
    • 5

    #1

    The nginx configuration file is missing

    On a debian 11 server, nginx is up and running. I ran the following command.
    Code:
    [FONT=Courier New]apt install zabbix-nginx-conf[/FONT]
    The expected file /etc/zabbix/nginx.conf is missing.
    What can I do to complete the setup?
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    I don't there is such a file you are looking for...
    You are looking for the zabbix config file for nginx? That should me in /etc/nginx/conf.d/zabbix.conf

    Comment

    • cfoucher
      Junior Member
      • Oct 2024
      • 5

      #3
      The file should be in /etc/zabbix and a symbolic link in /etc/nginx should point to it.

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #4
        Fine, I stand corrected, for debians/ubuntus it seems a bit different ... (unpacked a .deb for ubuntu 22.04 to check...)

        Code:
        dpkg -c zabbix-nginx-conf_1%3a7.0.5-1+ubuntu22.04_all.deb
        drwxr-xr-x root/root         0 2024-10-21 15:46 ./
        drwxr-xr-x root/root         0 2024-10-21 15:46 ./etc/
        drwxr-xr-x root/root         0 2024-10-21 15:46 ./etc/zabbix/
        -rw-r--r-- root/root      1978 2024-10-21 15:46 ./etc/zabbix/nginx.conf
        -rw-r--r-- root/root       564 2024-10-21 15:46 ./etc/zabbix/php-fpm.conf
        drwxr-xr-x root/root         0 2024-10-21 15:46 ./usr/
        drwxr-xr-x root/root         0 2024-10-21 15:46 ./usr/share/
        drwxr-xr-x root/root         0 2024-10-21 15:46 ./usr/share/doc/
        drwxr-xr-x root/root         0 2024-10-21 15:46 ./usr/share/doc/zabbix-nginx-conf/
        -rw-r--r-- root/root      5949 2024-10-21 15:46 ./usr/share/doc/zabbix-nginx-conf/changelog.Debian.gz
        -rw-r--r-- root/root       301 2024-10-21 15:46 ./usr/share/doc/zabbix-nginx-conf/copyright
        But if you intalled and it is not there, then maybe your installation failed and you should try again...

        Comment

        • cfoucher
          Junior Member
          • Oct 2024
          • 5

          #5
          I have found a solution by running the installation on another server, then copying the configuration file to the target server.
          Thanks for your help.

          Comment

          Working...