Nginx 1.24, 1.26, 1.27.3 incomplete install

Bug #2096833 reported by ronald
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nginx (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Using Ubuntu 24.0.4.1

Beside that the menitioned versions does not create the directories sites-available, sites-enabled and snippets

It also does not make virtual hsosts, working on different IPaddresses and port numbers, working

What is only working is ipaddress 0.0.0.0 with port 80 other selections does not work as the Nginx software does not create to host in the network

Also modules can't be installed like the Maxmind GEOIP one.

Revision history for this message
John Chittum (jchittum) wrote :

Thanks for reaching out. on Ubuntu 24.04, the only Ubuntu supported version of nginx is

apt-cache policy nginx
nginx:
  Installed: 1.24.0-2ubuntu7.1
  Candidate: 1.24.0-2ubuntu7.1

in a fresh 24.04 vm, I installed nginx and see everything in /etc/nginx

sudo apt install nginx
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  nginx-common
Suggested packages:
  fcgiwrap nginx-doc ssl-cert
The following NEW packages will be installed:
  nginx nginx-common
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 552 kB of archives.

... <snip> ...

service nginx status
● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; preset: enabled)
     Active: active (running) since Wed 2025-01-29 15:37:42 UTC; 28s ago
       Docs: man:nginx(8)
    Process: 1115 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
    Process: 1117 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
   Main PID: 1118 (nginx)
      Tasks: 2 (limit: 1102)
     Memory: 1.7M (peak: 1.9M)
        CPU: 8ms
     CGroup: /system.slice/nginx.service
             ├─1118 "nginx: master process /usr/sbin/nginx -g daemon on; master_process on;"
             └─1119 "nginx: worker process"
ls -al /etc/nginx
total 76
drwxr-xr-x 8 root root 4096 Jan 29 15:37 .
drwxr-xr-x 107 root root 4096 Jan 29 15:37 ..
drwxr-xr-x 2 root root 4096 Sep 10 13:27 conf.d
-rw-r--r-- 1 root root 1125 Nov 30 2023 fastcgi.conf
-rw-r--r-- 1 root root 1055 Nov 30 2023 fastcgi_params
-rw-r--r-- 1 root root 2837 Nov 30 2023 koi-utf
-rw-r--r-- 1 root root 2223 Nov 30 2023 koi-win
-rw-r--r-- 1 root root 5465 Nov 30 2023 mime.types
drwxr-xr-x 2 root root 4096 Sep 10 13:27 modules-available
drwxr-xr-x 2 root root 4096 Sep 10 13:27 modules-enabled
-rw-r--r-- 1 root root 1446 Nov 30 2023 nginx.conf
-rw-r--r-- 1 root root 180 Nov 30 2023 proxy_params
-rw-r--r-- 1 root root 636 Nov 30 2023 scgi_params
drwxr-xr-x 2 root root 4096 Jan 29 15:37 sites-available
drwxr-xr-x 2 root root 4096 Jan 29 15:37 sites-enabled
drwxr-xr-x 2 root root 4096 Jan 29 15:37 snippets
-rw-r--r-- 1 root root 664 Nov 30 2023 uwsgi_params
-rw-r--r-- 1 root root 3071 Nov 30 2023 win-utf

within sites-available, i see a default vhost with [::80] enabled and root /var/www/html

Could you provide your installation methods?

Changed in nginx (Ubuntu):
status: New → Incomplete
Revision history for this message
ronald (gentlerrv) wrote :

I see that the email feedback is not added in this bug report
Herewith I added my reply:

Dear John Chittum,
Thanks for your reaction

This I see when executing apt-cache policy nginx
nginx:
  Installed: 1.27.3-1~noble
  Candidate: 1.27.3-1~noble
  Version table:
 *** 1.27.3-1~noble 900
        900 http://nginx.org/packages/mainline/ubuntu noble/nginx amd64 Packages
        100 /var/lib/dpkg/status
     1.27.2-1~noble 900
        900 http://nginx.org/packages/mainline/ubuntu noble/nginx amd64 Packages
     1.27.1-1~noble 900
        900 http://nginx.org/packages/mainline/ubuntu noble/nginx amd64 Packages
     1.27.0-2~noble 900
        900 http://nginx.org/packages/mainline/ubuntu noble/nginx amd64 Packages
     1.27.0-1~noble 900
        900 http://nginx.org/packages/mainline/ubuntu noble/nginx amd64 Packages
     1.26.2-1~noble 900
        900 http://nginx.org/packages/ubuntu noble/nginx amd64 Packages
     1.26.1-2~noble 900
        900 http://nginx.org/packages/ubuntu noble/nginx amd64 Packages
     1.26.1-1~noble 900
        900 http://nginx.org/packages/ubuntu noble/nginx amd64 Packages
     1.26.0-1~noble 900
        900 http://nginx.org/packages/ubuntu noble/nginx amd64 Packages
     1.25.5-1~noble 900
        900 http://nginx.org/packages/mainline/ubuntu noble/nginx amd64 Packages
     1.24.0-2ubuntu7.1 500
        500 http://nl.archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages
     1.24.0-2ubuntu7 500
        500 http://nl.archive.ubuntu.com/ubuntu noble/main amd64 Packages
     1.18.0-0ubuntu1.6 500
        500 http://nl.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://nl.archive.ubuntu.com/ubuntu focal-security/main amd64 Packages
     1.17.10-0ubuntu1 500
        500 http://nl.archive.ubuntu.com/ubuntu focal/main amd64 Packages

Beside this:
I received two days ago a update for NGINX 1.27.3 including many other updates
Focused on NGINX I see that nothing is changed and netstat -lntp still give only listen 0.0.0.0 port 80 /nginx master.
No other defined ports or IP addresses are used and still php does not work

Revision history for this message
Thomas Ward (teward) wrote :

By installing the NGINX main repositories for NGINX, all bugs or issues with the package need to be sent to NGINX upstream directly, as you are using third-party repositories.

This is an Invalid bug against the Ubuntu packages of nginx.

Changed in nginx (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Thomas Ward (teward) wrote :

Additionally, the NGINX upstream repositories **will not** work with third party modules in the repositories that only work with the older NGINX that is in the Ubuntu repositories - this is due to version mismatch, and NOT an Ubuntu issue.

Revision history for this message
ronald (gentlerrv) wrote :

Thanks for the answer, I send two emails to people working @nginx.com with cokplete details what is going wrong, two days I gao I received a update for NGINX 1.27.3 and nothing was changed.
Just now I started a discussion on Github nginx.

What you say I understand but using Ubuntu 24.04 (Noble) and get the latest NGINX version 1.27.3 and this combination does not work, then why they got released?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.