Installation and error explanation of lamp architecture

Source: Internet
Author: User
Tags config install openssl openssl

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/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.