LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-11-2014, 03:59 AM   #1
kumartnj
LQ Newbie
 
Registered: Apr 2009
Posts: 15

Rep: Reputation: 0
Post How to change the server MPM from event to worker on Apache 2.4.2


Hi All,

I need a help from anyone !!

We are using apache 2.4.2 and this apache is download/installed from source.

I want to know how to change the server MPM from event to worker in RHEL 5.8. I mean, In which file do we need to change this settings?

Below is the current output in my server:

Server version: Apache/2.4.2 (Unix)
Server built: Jul 29 2012 19:12:37
Server loaded: APR 1.4.6, APR-UTIL 1.4.1
Compiled using: APR 1.4.6, APR-UTIL 1.4.1
Architecture: 64-bit
Server MPM: event

Thanks in Advance !

- Kumar
 
Old 03-11-2014, 05:34 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

You need to comment out the mpm_event_module loading and uncomment the mpm_worker_module from httpd.conf:
Code:
#LoadModule mpm_event_module modules/mod_mpm_event.so
LoadModule mpm_worker_module modules/mod_mpm_worker.so
Also make sure that you include in httpd.conf the file httpd-mpm.conf

Regards
 
Old 03-11-2014, 05:43 AM   #3
kumartnj
LQ Newbie
 
Registered: Apr 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Hi,

Thanks for your reply !

Also, need to check one more thing - If its need to change the server MPM for prefork, How it could be changed ?

Its same like do we have module.so for prefork on httpd.conf file.
 
Old 03-11-2014, 05:55 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by kumartnj View Post
Hi,

Thanks for your reply !

Also, need to check one more thing - If its need to change the server MPM for prefork, How it could be changed ?

Its same like do we have module.so for prefork on httpd.conf file.
Yes, it's the same, (assuming that you have compiled all MPMs as modules):
Code:
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
 
Old 03-11-2014, 06:49 AM   #5
kumartnj
LQ Newbie
 
Registered: Apr 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Hi,

I couldn't see this modules in my httpd.conf file. Do I need to load these modules ?

- mod_mpm_event.so
- mod_mpm_worker.so
- mod_mpm_prefork.so

Thanks.
 
Old 03-11-2014, 07:27 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
I couldn't see this modules in my httpd.conf file. Do I need to load these modules ?

- mod_mpm_event.so
- mod_mpm_worker.so
- mod_mpm_prefork.so
You need to load only one of them, depending on the mpm you want to use.
If you can't find these files under the modules/ subdirectory, chances are that you have compiled mpm_event as static and built-in apache.
 
  


Reply



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
Apache using worker mpm curious06 Linux - Server 2 03-23-2011 05:15 AM
apache MPM prefork or worker mario.almeida Linux - Server 2 11-25-2009 11:45 PM
Apache 2.2.9 mpm worker and php5 source formatting siggma Linux - Server 0 03-22-2009 12:41 AM
Apache - change to worker MPM rjcrews Linux - Software 2 03-22-2006 06:28 AM
Apache + Suse 9.3 + MPM worker Suinatsa Linux - Software 1 01-31-2006 02:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:49 AM.

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