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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-11-2014, 04:59 AM
|
#1
|
LQ Newbie
Registered: Apr 2009
Posts: 15
Rep:
|
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
|
|
|
03-11-2014, 06:34 AM
|
#2
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
|
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
|
|
|
03-11-2014, 06:43 AM
|
#3
|
LQ Newbie
Registered: Apr 2009
Posts: 15
Original Poster
Rep:
|
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.
|
|
|
03-11-2014, 06:55 AM
|
#4
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
|
Quote:
Originally Posted by kumartnj
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
|
|
|
03-11-2014, 07:49 AM
|
#5
|
LQ Newbie
Registered: Apr 2009
Posts: 15
Original Poster
Rep:
|
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.
|
|
|
03-11-2014, 08:27 AM
|
#6
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
|
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.
|
|
|
All times are GMT -5. The time now is 05:58 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|