Red Hat Enterprise Linux 4 の httpd パッケージでの MPM の切り替え
Red Hat Enterprise Linux ES 4 の httpd パッケージ ( httpd-2.0.52-9.ent ) では、/etc/sysconfig/httpd が用意されている。そこには次のような記述がある。
# # The default processing model (MPM) is the process-based # 'prefork' model. A thread-based model, 'worker', is also # available, but does not work with some modules (such as PHP). # The service must be stopped before changing this variable. # #HTTPD=/usr/sbin/httpd.worker
/usr/sbin/httpd は prefork なので、worker を使いたい場合は次の行のコメントアウトを外すと良い。これで起動スクリプトがいい感じにやってくれる。
#HTTPD=/usr/sbin/httpd.worker