Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

which Server MPM of Apache is better, prefork or worker ?

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

which Server MPM of Apache is better, prefork or worker ?
  • Quote

Post by baijianpeng » Thu Apr 27, 2017 8:56 am

I came across an article about Server MPM of Apache here:

http://m.fx114.net/qa-1-243627.aspx

According to that article, Worker mode is better than Prefork mode for Apache.

However, the Apache installed by VestaCP uses "prefork" by default. You can confirm this by run following command on SSH terminal:

Code: Select all

root@:~# apache2ctl -V
Server version: Apache/2.4.18 (Ubuntu)
Server built:   2016-07-14T12:32:26
Server's Module Magic Number: 20120211:52
Server loaded:  APR 1.5.2, APR-UTIL 1.5.4
Compiled using: APR 1.5.2, APR-UTIL 1.5.4
Architecture:   64-bit
Server MPM:     prefork
  threaded:     no
    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="/etc/apache2"
 -D SUEXEC_BIN="/usr/lib/apache2/suexec"
 -D DEFAULT_PIDLOG="/var/run/apache2.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="mime.types"
 -D SERVER_CONFIG_FILE="apache2.conf"
I am not a Linux pro, so I want to discuss this topic here, hope someone will clarify this choice.

If you concluded that "worker" is better, then, hope VestaCP team will change it to Worker in next release, and, teach me how to safely switch to Worker mode now.

Thank you.
Top

ChaosHead
Posts: 7
Joined: Thu Jan 14, 2016 11:03 am

Re: which Server MPM of Apache is better, prefork or worker ?
  • Quote

Post by ChaosHead » Tue Mar 05, 2019 12:01 pm

Event is better
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password