当前位置: 首页 > OpenSource > 正文

apache2 install with useful modules

我的安装配置环境是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来手动安装。

 

本文固定链接: https://www.2hei.net/2007/11/22/apache2_install_with_useful_mo/ | 2hei.net

该日志由 u2 于2007年11月22日发表在 OpenSource 分类下,
原创文章转载请注明: apache2 install with useful modules | 2hei.net
关键字: , ,

报歉!评论已关闭.