7

I'm getting "No apache MPM package installed" when trying to configure virtual hosts on apache2.2.

I was doing vhost configuration as per this example. What does this error mean?

EDIT: prefork is installed. The question is, why after a2ensite / a2dissite and /etc/init.d/apache2 reload I still get error "No MPM package installed"...

2
  • There is a reference in this question about an example, but I can't see it.
    – mdpc
    Jan 31, 2010 at 4:10
  • Well example I linked uses a2ensite/a2dissite to add/remove virtual hosts and so did I. Now I see that probably a2ensite uses MPM in turn. Thank you for your answers, I will try to enable MPM or to learn to do without it.
    – Sejanus
    Feb 1, 2010 at 10:39

4 Answers 4

3

In looking at the documentation at http://httpd.apache.org, I found that the virtual host is a core option. MPM is a process/thread management issue within the apache web server. Having or not having MPM should not be a determining factor in the support of virtual hosts.

My guess therefore is that there are directives contained within your httpd.conf file are not consistent with the type of MPM modules are compiled into the apache server. For instance, you might be using the prefork MPM but the directives in the httpd.conf file would contain something like ThreadsperChild which is not appropriate. This could be the source of your error message.

The Apache documentation further indicates that depending on the platform, there is a default MPM always selected by the configure process you go through. In Linux it is prefork.

0
24

sudo apt-get install apache2

4
  • I was having the same problem, and this fixed it. May 6, 2010 at 23:32
  • 1
    It will install apache2-mpm-worker if missed. May 14, 2011 at 4:45
  • lol, this worked!
    – nalply
    Nov 14, 2011 at 10:12
  • Worked for me too, Ubuntu 10.4's package manager must not be up to the task. Jul 4, 2012 at 23:15
3

Seems the latest debian upgrade broke this again, so here's a quick fix for anyone coming to this from google for the latest repeat of this issue:

apt-get install apache2-mpm-prefork
cd /etc/apache2/mods-enabled
ln -s ../mods-available/mpm_prefork.* ./
/etc/init.d/apache2 restart

(prefix with sudo as appropriate if you're not root)

2

If you compiled it from source on Linux the default prefork mpm should have been installed. You should be able to list all modules including mpm's by running httpd -l. See the MPM documentation for more details

1
  • Thanks. Thats right, it shows that prefork.c is compiled in indeed.
    – Sejanus
    Feb 1, 2010 at 10:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .