apache2.4安装

最近发现,搞一个东西之后,忘的一干二净....以后必须的记录下拉...

先安装apr,apr-util,pcre

下载apache2.4解压

cd apache2.4

./configure --prefix=/usr/local/webserver/apache2 --enable-rewrite --enable-so --enable-mods-shared=all --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr/

make 

mak install

 

 

 

到 apache 的安装目录

./apachectl -f start

出错了

httpd: Could not open configuration file /usr/local/apache2/start: No such file or directory

做个连接就好了

 ln -s /usr/local/webserver/apache2/ /usr/local/apache2

 

64位上安装需要 从新生成apr-util的configure文件,

 ./configure --prefix=/usr/local/webserver/apache2 --with-apr=/usr/local/apr/bin/apr-1-config --with-apr-util=/usr/local/apr-util/bin/apu-1-config --with-pcre=/usr/local --enable-so --enable-dav --enable-ssl --enable-deflate --enable-maintainer-mode --enable-dav-fs --enable-rewrite --enable-dav-lock --with-port=8081 --with-sslport=443 --enable-lib64 --libdir=/usr/lib64




你可能感兴趣的:(Apache2.4,deban)