2009년 01월 05일
Which Apache MPM is being loaded with Red Hat Enterprise Linux 3 default apache installation: prefor
Apache 2 in Red Hat Enterprise Linux 3 ships with the 'prefork' MPM loading by default.
In order to use the 'worker' MPM, you will need to create the file: /etc/sysconfig/httpd as teh root user and add the following line to that file:
HTTPD=/usr/sbin/httpd.worker
This will tell the httpd service to use the binary that is compiled to use the 'worker' MPM. (For more information, you will want to look at: /etc/rc.d/init.d/httpd)
Please keep in mind that the 'worker' MPM is a threaded environment andthat PHP is not considered thread-safe. Thus, if you have the followingfile: /etc/httpd/conf.d/php.conf then Apache will protest when you attempt to start it.
The work-around for this behavior (if you do not need PHP), is to rename the file to something that does not end in '.conf'.
So the following command (after making the above change to /etc/sysconfig/httpd):
mv /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php.conf.old
should allow you to start up Apache with this:
service httpd start
# by | 2009/01/05 15:35 | 하쿠마의삽질신공 | 트랙백 | 덧글(0)





☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]