Click to See Complete Forum and Search --> : Replacing apache2-mpm-prefork


Architect
02-05-2006, 09:27 AM
I want to replace apache2-mpm-prefork with the faster "apache2-mpm-worker" but cannot seem to do.
Here is what I tried.
localhost:~/debs# dpkg -i apache2-mpm-worker_2.0.55-4_i386.deb
dpkg: regarding apache2-mpm-worker_2.0.55-4_i386.deb containing apache2-mpm-worker:
apache2-mpm-worker conflicts with apache2-mpm-prefork
apache2-mpm-prefork (version 2.0.54-4) is installed.
dpkg: error processing apache2-mpm-worker_2.0.55-4_i386.deb (--install):
conflicting packages - not installing apache2-mpm-worker
Errors were encountered while processing:
apache2-mpm-worker_2.0.55-4_i386.deb

localhost:~/debs# dpkg -r apache2-mpm-prefork
dpkg: dependency problems prevent removal of apache2-mpm-prefork:
libapache2-mod-php4 depends on apache2-mpm-prefork (>> 2.0.52).
apache2 depends on apache2-mpm-worker (= 2.0.54-4) | apache2-mpm-prefork (= 2.0.54-4) | apache2-mpm-perchild (= 2.0.54-4); however:
Package apache2-mpm-worker is not installed.
Package apache2-mpm-prefork is to be removed.
Package apache2-mpm-perchild is not installed.
bugzilla depends on apache | apache-ssl | cern-httpd | boa | wn | aolserver | roxen | thttpd | caudium | apache-perl | apache2-mpm-perchild | apache2-mpm-threadpool | apache2-mpm-prefork | apache2-mpm-worker | bozohttpd | httpd; however:
Package apache is not installed.
Package apache-ssl is not installed.
Package cern-httpd is not installed.
Package boa is not installed.
Package wn is not installed.
Package aolserver is not installed.
Package roxen is not installed.
Package thttpd is not installed.
Package caudium is not installed.
Package apache-perl is not installed.
Package apache2-mpm-perchild is not installed.
Package apache2-mpm-threadpool is not installed.
Package apache2-mpm-prefork is to be removed.
Package apache2-mpm-worker is not installed.
Package bozohttpd is not installed.
Package httpd is not installed.
Package apache2-mpm-prefork which provides httpd is to be removed.
bugzilla depends on apache | apache-ssl | cern-httpd | boa | wn | aolserver | roxen | thttpd | caudium | apache-perl | apache2-mpm-perchild | apache2-mpm-threadpool | apache2-mpm-prefork | apache2-mpm-worker | bozohttpd | httpd; however:
Package apache is not installed.
Package apache-ssl is not installed.
Package cern-httpd is not installed.
Package boa is not installed.
Package wn is not installed.
Package aolserver is not installed.
Package roxen is not installed.
Package thttpd is not installed.
Package caudium is not installed.
Package apache-perl is not installed.
Package apache2-mpm-perchild is not installed.
Package apache2-mpm-threadpool is not installed.
Package apache2-mpm-prefork is to be removed.
Package apache2-mpm-worker is not installed.
Package bozohttpd is not installed.
Package httpd is not installed.
Package apache2-mpm-prefork which provides httpd is to be removed.
dpkg: error processing apache2-mpm-prefork (--remove):
dependency problems - not removing
Errors were encountered while processing:
apache2-mpm-prefork
localhost:~/debs#
How do I do this?

cybertron
02-08-2006, 02:37 AM
Well, two things I'm seeing. First, PHP is likely to break if you install the worker version of Apache because PHP is not threadsafe. That looks to be one of the dependency issues, the other being that apache2 depends on the package you're trying to replace so apparently it won't let you remove it. If you can either uninstall Apache until you get the new one installed, or force it to do the uninstall anyway and then install the new one, that will probably help.

Architect
02-08-2006, 10:27 AM
Whoops! I didn't know that.
BTW (just to see if anyone was brave enough) has anyone used PHP with the MPM-Worker model?

cybertron
02-08-2006, 10:48 AM
I actually did for a while, but Apache crashed every time it tried to serve a page. I can't remember whether it was just PHP or all pages. Also, I think I was using PHP4, so 5 may be threadsafe but I don't know for sure.

Architect
02-08-2006, 12:07 PM
Tried searching their site as well as google but neither seems to indicate that 5 is thread safe.
So looks like we stick to the prefork model for now at least. :(