(一)Apache 的安装
# /usr/sbin/groupadd -g 48 apache
# /usr/sbin/useradd -g 48 -u 48 -M -d /usr/local/httpd/htdocs -s /sbin/nologin apache
# /usr/sbin/groupadd -g 1000 vgroup
# /usr/sbin/useradd -g 1000 -u 1000 -M -s /bin/false vuser
# tar zxvf httpd-2.2.14.tar.gz
# cd httpd-2.2.14
# ./configure --prefix=/usr/local/httpd --enable-modules=all --enable-mods-shared=all --enable-so --enable-cache --enable-file-cache --enable-mem-cache --enable-disk-cache --enable-static-support --enable-static-htpasswd --enable-static-htdigest --enable-static-rotatelogs --enable-static-logresolve --enable-static-htdbm --enable-static-ab --enable-static-checkgid --enable-cgid --enable-cgi --disable-userdir --with-mpm=worker --with-pcre=/usr/bin/pcre-config --with-apr=/usr/bin/apr-1-config --with-apr-util=/usr/bin/apu-1-config --enable-ssl --enable-suexec --with-suexec-uidmin=500 --with-suexec-gidmin=100 --with-suexec-caller=apache --with-suexec-docroot=/usr/local/httpd --with-suexec-bin=/usr/local/httpd/bin/suexec --with-suexec-logfile=/usr/local/httpd/logs/suexec_log
# make
# make install
# cd ..
# rm -rf httpd-2.2.14
# cp /usr/local/httpd/bin/apachectl /etc/rc.d/init.d/httpd
# chmod 700 /etc/rc.d/init.d/httpd
# cd /usr/local/httpd/conf
把装好的 Apache 的默认使用用户,和使用组更改为 apache :
# sed -i -e "s/User daemon/User apache/" -e "s/Group daemon/Group apache/" httpd.conf
# /etc/rc.d/init.d/httpd start
| 引用(0)
CentOS 5.4 下完整功能邮件服务器系统 ExtMail 的搭建 (第三部分)(pcre 和其他模块)
CentOS 5.4 下完整功能邮件服务器系统 ExtMail 的搭建 (第五部分)(rrdtool)


2009-12-7
09:00
0
327


