ubuntu 10 安装 apache http server 2.4.7 小记
1. wget?http://archive.apache.org/dist/httpd/httpd-2.4.7.tar.gz?
2. wget?http://archive.apache.org/dist/apr/apr-1.5.0.tar.gz3. wget?http://archive.apache.org/dist/apr/apr-util-1.5.3.tar.gz4. wget pcre-8.33.tar.gz5.?apt-get install build-essential6. tar -zxvf *.tar.gz7. 安装 apr-1.5.0? ? 1) cd apr-1.5.0? ? 2) ./configure --prefix=/usr/local/apr? ? 3) make ?-> sudo make install8. 安装 apr-util-1.5.3? ? 1) cd ../apr-util-1.5.3? ? 2) ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr? ? 3) make -> sudo make install9. 安装pcre , 同apr-1.5.010. 安装apache? ? 1) cd ../httpd2.4.7? ? 2) ./configure --prefix=/usr/local/apache2.4.7 --with-apr=* --with-apr-util=* --with-pcre=* ...otherparams? ? 3) make? ? 4) sudo make install11. 配置? ? 1) cd /usr/local/apache2.4.7/conf
? ? 2) sudo cp httpd.conf httpd.conf.bak? ? 3) sudo vi httpd.conf ?添加 ServerName 127.0.0.1:8012. 验证? ? 1) cd /usr/local/apache2.4.7/bin? ? 2) sudo ./apachectl -k start? ? 3) 访问?http://localhost? it works? ? 4) sudo ./apachectl -k stop