The test is a newly installed system to ensure purity, standing in the first compilation of lamp installation angle, analysis of various errors, starting from the wrong start.
As for what the lamp is for, I will not repeat it and start straight.
I've already done the software in this article and packaged it, and if you need a friend, you can download my package myself.
First, explain the system version.
[Root@localhost libevent-2.0.18-stable]# Lsb_release-a
LSB Version:: core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32: Printing-4.0-noarch
Distributor Id:redhatenterpriseserver
description:red Hat Enterprise Linux Server Release 6.0 (Santiago)
release:6.0
Codename:santiago
First, the Apache compilation installation
In order to facilitate management, compile the installation of the best way to develop the habit of centralized management, where I first define a folder/usr/src/lamp
[Root@localhost ~]# Mkdir/usr/local/lamp
The Apache compilation installation is simple, but we need to install some packages to facilitate the expansion of the Apache feature
1, the installation of apr-1.4.6.tar.gz
[Root@localhost lamp]# tar XF apr-1.4.6.tar.gz-c/usr/src/lamp/
[Root@localhost apr-1.4.6]# pwd
/usr/src/lamp/apr-1.4.6
[Root@localhost apr-1.4.6]#./configure--enable-threads--disable-ipv6--with-devrandowm=/dev/random && make && make Install
2, the installation of libiconv-1.13.tar.gz
[Root@localhost libiconv-1.13]#./configure--enable-static && make && make install
3, the installation of apr-iconv-1.2.1.tar.gz
[Root@localhost lamp]# tar XF apr-iconv-1.2.1.tar.gz-c/usr/src/lamp/
[Root@localhost apr-iconv-1.2.1]#./configure--with-apr=/usr/local/apr/bin/apr-1-config
[Root@localhost lamp]# make && make install
[Root@localhost apr-iconv-1.2.1]# ln-s/usr/src/lamp/apr-iconv-1.2.1/lib/libapriconv-1.la/usr/src/lamp/ Apr-iconv-12.1/lib/libapriconv.la
4, installation OpenSSL Nss-devel
[Root@localhost lamp]# yum install openssl* nss-devel-y
5. Installation apr-util-1.4.1.tar.gz
[Root@localhost lamp]# tar XF apr-util-1.4.1.tar.gz-c/us
r/src/lamp/
[Root@localhost apr-util-1.4.1]#./configure--with-apr=/usr/local/apr/bin/apr-1-config--with-apr-iconv=./ Apr-iconv--with-openssl=/usr--with-nss=/usr--with-mysql=/usr/local/mysql--with-iconv=/usr/local && make && make Install
More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/web/