/etc/nginx/sites-enabled/default reference wrong php-fpm

Bug #1843968 reported by psl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nginx (Ubuntu)
New
Undecided
Unassigned

Bug Description

Ubuntu 18.04.3
nginx 1.14.0-0ubuntu1.6
php7.2-fpm

php7.2 is the default php for Ubuntu 18.04.3.

There is default file /etc/nginx/sites-enabled/default that installed with nginx. It has section for php, it points to php7.0-fpm but php7.2 is installed. With this configuration, nginx reports error "502, Bad Gateway".

        # fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;

BTW, the designs that points to version of php is not good, it is fragile. This bug is nice example how fragile it is...

Revision history for this message
psl (slansky) wrote :

Similar problem is with php-fpm service, it has version in the name. That is not good from my point of view and should be only php-fpm (or a symbolic link php-fpm->php7.2-fpm should be there...

/etc/init.d/php7.2-fpm

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

IF you want PHP to change, you need to file a bug against PHP.

We already have a duplicate of this bug you've filed, and the Server Team has determined that while yes, this should be fixed, it does not on its own stand as enough for an SRU to 'fix the issue'. You can edit your configurations yourself to fix paths in the interim.

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.