LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   compile in prefork (https://www.linuxquestions.org/questions/linux-server-73/compile-in-prefork-746601/)

cbtshare 08-10-2009 09:53 PM

compile in prefork
 
been searcing everywhere , i wanna know how to instaall, apache prefork module.or any documentation?

anomie 08-11-2009 05:49 PM

The prefork MPM should be enabled by default on unix / unix-like systems.

You can follow the compile and install instructions or install a package via the mechanism provided by whatever distro it is you are using...

cbtshare 08-11-2009 06:20 PM

thanks for answering, but I still dont understand what you mean,I read the page but dont understand, could you give an example plz.

Thanks

knudfl 08-13-2009 12:29 AM

http://httpd.apache.org/docs/2.2/pro...iondirectories
" --with-mpm=MPM
Choose the process model for your server. You have to select exactly one
Multi-Processing Module. Otherwise the default MPM for your operating system
will be taken. Possible MPMs are beos, mpmt_os2, prefork, and worker. "
... > > --with-mpm=prefork
.....
http://httpd.apache.org/docs/2.0/mod/prefork.html
.....

http://packages.debian.org/lenny/apache2-mpm-prefork
" Apache HTTP Server - traditional non-threaded model

Each Apache Multi-Processing Module provides a different "flavor" of web server binary,
compiled with a different processing model.

The prefork MPM provides a non-threaded, pre-forking implementation that handles
requests in a manner similar to Apache 1.3. It is not as fast as threaded models,
but is considered to be more stable. It is appropriate for sites that need to maintain
compatibility with non-thread-safe libraries, and is the best MPM for isolating each
request, so that a problem with a single request will not affect any other. "
.....

cbtshare 08-14-2009 10:52 PM

thanks got it now, makes more sense....but what if apache is already installed with default mpm, how do I change it to prefork mpm? I would have to install apache over again?

anomie 08-15-2009 11:21 AM

Post the output of: # httpd -l

(that is a lowercase "L", not a number 1)

The prefork MPM probably already is the default in your case.


All times are GMT -5. The time now is 10:24 AM.