apache2 install with useful modules

作者: 2hei 发表于2007年11月22日 01:03
版权声明: 可以转载, 转载时务必以超链形式标明文章原始出处和作者信息及版权声明
http://www.2hei.net/mt/2007/11/apache2-install-with-useful-mo.html

我的安装配置环境是apache2.0.59+openssl-0.9.8g+mod_expires+mod_deflate等等。

 

donw openssl-0.9.8g.tar.gz from http://www.openssl.org/
tar -zxvf openssl-0.9.8g.tar.gz
cd openssl-0.9.8g
./config
make && make install

install apr and apr-util

cd httpd-2.0.59/srclib/apr
./configure --prefix=/usr/local/apache-apr
make
make install

Install Then apr-util:
cd httpd-2.0.59/srclib/apr-util
./configure --prefix=/usr/local/apache-apr-util --with-apr=/usr/local/apache-apr
make
make install

  • install httpd-2.0.59

这里使用个shell脚本来统一配置 configure。

cd httpd-2.0.59

cat My_config.sh
#/bin/sh
#2hei‘s_configure.sh for httpd-2.0.59
path_apache=`pwd`
$path_apache/configure --prefix=/usr/local/apache --with-perl=/usr/bin/perl --with-ssl=/usr/local/ssl --disable-userdir --disable-actions --disable-negotiation --disable-cgi --disable-asis --disable-autoindex --disable-status --disable-env --disable-filter --disable-include --disable-mod_authn_file --disable-mod_authn_default --disable-mod_authz_host --disable-mod_authz_groupfile --disable-mod_authz_user --disable-mod_authz_default --disable-mod_auth_basic --disable-mod_log_config --disable-mod_mime --disable-mod_dir --disable-mod_alias --enable-mods-shared='cgi setenvif headers rewrite deflate authn_file authn_default authz_host authz_groupfile authz_user authz_default auth_basic log_config mime dir autoindex userdir expires negotiation alias' --enable-ssl

sh My_config.sh

make && make install

至于modules的安装,可以使用静态方式,如:--with-alias=share ,也可以使用DSO方式来动态配置,使用apxs来手动安装。

 

| | Comments (0) | TrackBacks (0)

发表一个评论

关于这篇文章

这篇文章由2hei2007年11月22日 01:03发布.

上一篇:部署resin3的一些注意事项

下一篇:apache mod_deflate 模块使用总结

回到首页 或者查看归档文章

  • Powered by FeedBurner
  • Add to Google Reader or Homepage
  • Add to My AOL
  • Subscribe in NewsGator Online
  • del.icio.us/2heidel.icio.us/2hei
  • Subscribe to feed feeds