FC6-X86-64下Apache2.2.3编译

在FC6-X86-64 操作系统下编译和安装Apache2.2.3

# tar -jxvf httpd-2.2.3.tar.bz2
# cd httpd-2.2.3
# ./configure LDFLAGS="-L/usr/lib64 -L/lib64" --enable-so --enable-rewrite --enable-cgi
# vi ./srclib/apr-util/Makefile


APRUTIL_LIBS = -lsqlite3 /usr/lib/libexpat.la /root/tar/httpd-2.2.3/srclib/apr/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl
改为
APRUTIL_LIBS = -lsqlite3 /usr/lib64/libexpat.la /root/tar/httpd-2.2.3/srclib/apr/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl

# make
# make install
# cd /usr/local/apache2/
# ./bin/apachectl -k start

在浏览器中输入
http://127.0.0.1/
如果能够看到
It works!
则表示安装成功