Enabling mpm_prefork: ERROR: Module mpm_itk is enabled - cannot proceed due to conflicts. It needs to be disabled first!

Bug #1310279 reported by Raoul Bhatia
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

> # a2enmod mpm_prefork
> Considering conflict mpm_event for mpm_prefork:
> Considering conflict mpm_worker for mpm_prefork:
> Considering conflict mpm_itk for mpm_prefork:
> ERROR: Module mpm_itk is enabled - cannot proceed due to conflicts. It needs to be disabled first!

/usr/share/doc/libapache2-mpm-itk/README.Debian states, that mpm_itk is an "addon" to prefork, however, if mpm_itk is enabled, I failed to "a2enmod mpm_prefork".

System: Ubuntu 14.04
> # cat /etc/lsb-release
> DISTRIB_ID=Ubuntu
> DISTRIB_RELEASE=14.04
> DISTRIB_CODENAME=trusty
> DISTRIB_DESCRIPTION="Ubuntu 14.04 LTS"

Apache2 Version
> # dpkg -l | grep apache2
> ii apache2 2.4.7-1ubuntu4 amd64 Apache HTTP Server
> ii apache2-bin 2.4.7-1ubuntu4 amd64 Apache HTTP Server (binary files and modules)
> ii apache2-data 2.4.7-1ubuntu4 all Apache HTTP Server (common files)
> ii apache2-mpm-prefork 2.4.7-1ubuntu4 amd64 transitional prefork MPM package for apache2
> ii apache2-utils 2.4.7-1ubuntu4 amd64 Apache HTTP Server (utility programs for web servers)
> ii libapache2-mod-php5 5.5.9+dfsg-1ubuntu4 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
> ii libapache2-mod-xsendfile 0.12-2 amd64 Serve large static files efficiently from web applications
> ii libapache2-mpm-itk 2.4.6-01-1 amd64 multiuser module for Apache

Cheers,
Raoul

PS: libapache2-mpm-itk is "out of sync" with apache2 (2.4.6 vs 2.4.7). A more recent release can be found at http://mpm-itk.sesse.net/ - maybe it is worth having a look.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apache2 (Ubuntu):
status: New → Confirmed
Revision history for this message
Dan Lee (danlee) wrote :

Cant set up cups cos of this error; please fix

The following packages were automatically installed and are no longer required:
  foomatic-db-gutenprint ijsgutenprint libapreq2-3 libjbig-dev libjpeg-dev
  libjpeg-turbo8-dev libjpeg8-dev liblzma-dev libpng12-dev libtiff5-dev
  libtiffxx5
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  apache2-bin apache2-data
Suggested packages:
  apache2-doc apache2-suexec-pristine apache2-suexec-custom apache2-utils
The following NEW packages will be installed
  apache2 apache2-bin apache2-data
0 to upgrade, 3 to newly install, 0 to remove and 0 not to upgrade.
Need to get 0 B/1,127 kB of archives.
After this operation, 4,722 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Selecting previously unselected package apache2-bin.
(Reading database ... 240963 files and directories currently installed.)
Preparing to unpack .../apache2-bin_2.4.10-1ubuntu1_amd64.deb ...
Unpacking apache2-bin (2.4.10-1ubuntu1) ...
Selecting previously unselected package apache2-data.
Preparing to unpack .../apache2-data_2.4.10-1ubuntu1_all.deb ...
Unpacking apache2-data (2.4.10-1ubuntu1) ...
Selecting previously unselected package apache2.
Preparing to unpack .../apache2_2.4.10-1ubuntu1_amd64.deb ...
Unpacking apache2 (2.4.10-1ubuntu1) ...
Processing triggers for man-db (2.7.0.2-2) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Processing triggers for ufw (0.34~rc-0ubuntu4) ...
Setting up apache2-bin (2.4.10-1ubuntu1) ...
Setting up apache2-data (2.4.10-1ubuntu1) ...
Setting up apache2 (2.4.10-1ubuntu1) ...
ERROR: Module mpm_prefork is enabled - cannot proceed due to conflicts. It needs to be disabled first!
dpkg: error processing package apache2 (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 apache2
E: Sub-process /usr/bin/dpkg returned an error code (1)

Changed in apache2 (Ubuntu):
assignee: nobody → farhan saleh robleh (farhn)
Colin Watson (cjwatson)
Changed in apache2 (Ubuntu):
assignee: farhan saleh robleh (farhn) → nobody
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

It looks like it's working now in trusty:

root@trusty-apache-itk:~# a2enmod mpm_prefork
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Module mpm_prefork already enabled
root@trusty-apache-itk:~# a2enmod mpm_itk
Considering dependency mpm_prefork for mpm_itk:
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Module mpm_prefork already enabled
Module mpm_itk already enabled

I installed libapache2-mod-php5 libapache2-mpm-itk libapache2-mod-xsendfile apache2-mpm-prefork apache2 apache2-bin apache2-data apache2-utils

All are at version 2.4.7-1ubuntu4.20, and the others are at:
ii libapache2-mod-php5 5.5.9+dfsg-1ubuntu4.25
ii libapache2-mod-xsendfile 0.12-2
ii libapache2-mpm-itk 2.4.6-01-1ubuntu1

I'll mark this bug as fix released. If you guys have information saying otherwise, or a better test case, please reopen.

Changed in apache2 (Ubuntu):
status: Confirmed → Fix 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.