LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-10-2009, 09:53 PM   #1
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Rep: Reputation: 42
compile in prefork


been searcing everywhere , i wanna know how to instaall, apache prefork module.or any documentation?
 
Old 08-11-2009, 05:49 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
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...
 
Old 08-11-2009, 06:20 PM   #3
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Original Poster
Rep: Reputation: 42
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
 
Old 08-13-2009, 12:29 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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. "
.....
 
Old 08-14-2009, 10:52 PM   #5
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Original Poster
Rep: Reputation: 42
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?
 
Old 08-15-2009, 11:21 AM   #6
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure apache prefork MPM LinuxCommandos Linux - Server 1 11-07-2008 10:09 AM
how can i tell if apache 2 is prefork or worker? sneakyimp Linux - Software 4 09-15-2007 02:15 PM
Replacing apache2-mpm-prefork iNeo Debian 1 02-06-2006 02:17 PM
what if I use worker and prefork on apache? gottin Linux - Software 1 10-15-2004 03:19 PM
apache2 prefork + php4 + mysql rymonree Linux - Software 1 09-06-2003 02:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration