954,242 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to actually switch from the default MPM ("prefork") to the "worker" MPM?

Its weired that even after I 1) changed the file name from "php.conf" to "php.bak" (so that the php module wouldn't be loaded); and 2) enabled
"HTTPD=/usr/sbin/httpd.worker" in "/etc/sysconfig/httpd".

After I restarted the httpd service successfully (no conflict with php), I still found that the "prefork" MPM was running in the server.
[root@poplar sysconfig]# httpd -l
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c

Any ideas?

gbs
Newbie Poster
12 posts since May 2006
Reputation Points: 10
Solved Threads: 0
 

you need to recompile with the desired modules.
Also, it is a really really really bad idea to rename a script witha .bak extension since the server will deliver the script unparsed and exposing all your logic and or the keys to your server.

sn4rf3r
Junior Poster
135 posts since Sep 2006
Reputation Points: 10
Solved Threads: 2
 

How to recompile?

How to appropriately handle the conflict between "work" and php?


Thanks.

you need to recompile with the desired modules. Also, it is a really really really bad idea to rename a script witha .bak extension since the server will deliver the script unparsed and exposing all your logic and or the keys to your server.
gbs
Newbie Poster
12 posts since May 2006
Reputation Points: 10
Solved Threads: 0
 

http://www.php.net/manual/en/install.php

you can also google for a howto on compileing php from source.

I dont understand your second question, what do you mean by work and php?

sn4rf3r
Junior Poster
135 posts since Sep 2006
Reputation Points: 10
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: