← Back to team overview

touch-packages team mailing list archive

[Bug 1336713] Re: Nginx+PHP-FPM - Apache gets installed automatically on PHP update

 

I've also done some testing in a system with nginx and php5-fpm
installed - nginx from the (stable) PPA, and php5-fpm from the
repositories, on a Trusty system.  This is in a production environment,
on a VPS from RamNode, and the php5-fpm and nginx haven't been updated
in a while (at least three months).

Attached is a logfile from a dry-run of the `apt-get dist-upgrade --dry-
run` and that there are no apache2 packages (other than apache2-utils
which I use to generate htpasswd compatible items for nginx, and can
exist separately from the apache2 binaries).  (This shows it's not an
nginx problem, nor does it appear to be a php5 problem, and that this
needs to be dug into more deeply to identify potential causes.)

** Attachment added: "Dry-Run of dist-upgrade on a production Trusty server that has nginx (from PPA) and php5-fpm (from repositories) installed"
   https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1336713/+attachment/4354705/+files/dry-run-dist-upgrade.txt

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1336713

Title:
  Nginx+PHP-FPM - Apache gets installed automatically on PHP update

Status in apt package in Ubuntu:
  Incomplete
Status in php5 package in Ubuntu:
  Incomplete

Bug description:
  This was originally posted as a question. See: https://answers.launchpad.net/ubuntu/+source/php5/+question/250691
  ---

  My 14.04 machine that runs Nginx with PHP-FPM received updates for PHP
  and somehow Apache was automatically installed.

  Here is an excerpt from APT history log:
  Install: libapache2-mod-php5:amd64 (5.5.9+dfsg-1ubuntu4.1, automatic), libaprutil1-dbd-sqlite3:amd64 (1.5.3-1, automatic), libaprutil1-ldap:amd64 (1.5.3-1, automatic), apache2-data:amd64 (2.4.7-1ubuntu4, automatic), apache2:amd64 (2.4.7-1ubuntu4, automatic), apache2-bin:amd64 (2.4.7-1ubuntu4, automatic)

  Looking at the dependencies for the php5 package I don't understand why this happened:
  Depends: libapache2-mod-php5 (>= 5.5.9+dfsg-1ubuntu4.1) | libapache2-mod-php5filter (>= 5.5.9+dfsg-1ubuntu4.1) | php5-cgi (>= 5.5.9+dfsg-1ubuntu4.1) | php5-fpm (>= 5.5.9+dfsg-1ubuntu4.1), php5-common (>= 5.5.9+dfsg-1ubuntu4.1)

  With Nginx configured to listen on port 80, this unwanted Apache
  installation would interfere at startup (this exactly happened
  sometime ago on an older release). I don't think that this behaviour
  is correct.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1336713/+subscriptions