到apache2-mpm-itk网站下载最新版的补丁http://mpm-itk.sesse.net/。
wget http://apache.ziply.com/httpd/httpd-2.2.21.tar.gz
tar xzvf httpd-2.2.21.tar.gz
wget http://mpm-itk.sesse.net/apache2.2-mpm-itk-2.2.17-01.patch
2、为apache2打上mpm-itk补丁
cd httpd-2.2.21 patch -p1 < ../apache2.2-mpm-itk-2.2.17-01.patch
autoconf
3、编译apache2
编译apache2时,带上编译选项–with-mpm=itk,如:
./configure --with-mpm=itk make make install
4、配置apache2
<VirtualHost *:80> ServerName www.server110.com ...
<IfModule mpm_itk_module>
AssignUserId siteuser sitegroup
</IfModule>
</VirtualHost>
sitesuer是指apache以siteuser用户运行 sitegroup是指apache以sitegroup用户组运行
声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。