Author |
|
niraj_vara
Joined: 03 Feb 2014 Posts: 6 Location: India
|
Posted: Mon 03 Feb '14 15:00 Post subject: Which MPM used by apache bydefalt |
|
|
Hi
I have question for apache in centos. I loaded the apache and I want to know that which MPM used by default two MPM defined in apache but which MPM apache actually used for request server.
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>
<IfModule worker.c>
StartServers 4
MaxClients 300
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule> |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 03 Feb '14 17:03 Post subject: |
|
|
Well by default CentOS uses prefork mpm.
but you can find out using the shell
Code: |
user:@host:~$which httpd
user:@host:~$/usr/sbin/httpd -V
/usr/sbin/httpd -V
Server version: Apache/2.4.7 (Unix)
Server built: Nov 20 2013 15:08:36
Server's Module Magic Number: 20120211:27
Server loaded: APR 1.5.0, APR-UTIL 1.5.3
Compiled using: APR 1.5.0, APR-UTIL 1.5.3
Architecture: 64-bit
Server MPM: event
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/opt/apache2"
-D SUEXEC_BIN="/opt/apache2/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
|
|
|
Back to top |
|
niraj_vara
Joined: 03 Feb 2014 Posts: 6 Location: India
|
Posted: Tue 04 Feb '14 9:25 Post subject: |
|
|
Hi
Thnks It help me to decide the same. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 04 Feb '14 10:50 Post subject: |
|
|
However I recommend to use worker mpm with php over mod_fcgid. |
|
Back to top |
|
niraj_vara
Joined: 03 Feb 2014 Posts: 6 Location: India
|
Posted: Tue 04 Feb '14 11:40 Post subject: |
|
|
Hi
I have the application with perl . would tell me how to enable the worker? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 04 Feb '14 12:43 Post subject: |
|
|
edit /etc/sysconfig/httpd
Uncomment:
Code: |
HTTPD=/usr/sbin/httpd.worker
|
service httpd restart |
|
Back to top |
|
niraj_vara
Joined: 03 Feb 2014 Posts: 6 Location: India
|
Posted: Wed 05 Feb '14 8:24 Post subject: |
|
|
Hi
Tnks |
|
Back to top |
|