I cannot figure out what are the correct ./configure
options to build apache on an (oldish) ubuntu distribution that would preserve the same configuration file system.
I need apache with MPM Worker and mod_WSGI
I've found this No apache MPM package installed error related question but there's no answer solving my issue. httpd -l says "prefork.c" which sounds like my desired 'mpm-worker' has not been compiled.
So far:
# get latest tar from a mirror
wget http://apache.crihan.fr/dist//httpd/httpd-2.2.19.tar.gz
# untar
tar -xf httpd-2.2.19.tar.gz
# get inside
cd httpd-2.2.19
the current configure:
./configure --enable-shared-mods=all --prefix=/usr/lib/apache2 --with-mpm=worker
(it actually say in the doc that 'all' does not build the modules, so I guess I'll have to fix that later)
and of course:
make
sudo make install
But then:
No apache MPM package installed
and indeed no MPM exists under /usr/lib/apache2/mpm-worker/apache2
How do I compile/build MPM-worker? Is there any other configuration parameter I am missing?
Should I create a ln -s PATH /usr/sbin/apache2
to be compliant with ubuntu /etc/init.d/apache2 , or is there another suggested way?
Best Answer
I hunted down this url which is the rules file for the deb from dapper (before you replied to my comment.)
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/dapper/apache2/dapper/view/head:/debian/rules
Here is the home for apache2 in ubuntu.
https://launchpad.net/ubuntu/+source/apache2
I couldn't find a link to Karmic from there, but i just replaced the name in the url.
https://launchpad.net/ubuntu/karmic/+source/apache2
Browse a version and click the code tab and see the rules file in the code repository for the karmic release.
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/karmic/apache2/karmic/view/head:/debian/rules SAYS:
AND
That will let you build apache with the same options as the installed deb.
Although, I think an easier approach would be to use a backports build, or make one yourself. Get the source deb and build it under Karmic.