SOURCE Build lamp (linux+apache+mysql+php) environment

Source: Internet
Author: User
Tags bz2 mysql linux

Linux+apache+mysql+perl/php/python a group of commonly used to build Dynamic Web site or server open source software, itself are separate programs, but because often put together to use, has more and more high compatibility, Together form a powerful Web application platform. With the development of Open-source power, the open source lamp has become tripod with Java EE and. NET commercial software, and the Software development project has low cost in software investment, so it is the focus of the whole IT industry. From the traffic on the website, more than 70% of the traffic is provided by lamp, lamp is the most powerful web site solution. Today to Lamp (linux+apache+mysql+php) as an example for you to explain the building of lamp environment, this training Apache and PHP in the form of source code, and Mysql compiled in binary way, the platform is Red Hat Enterprise Linux Server Release 5.4.

First, preparatory work

1, the need to classify the package into the/root/directory

2, all the source code package to be disassembled to the corresponding directory under the directory (except phpMyAdmin)

Cd/root

TAR-ZXVF apr-1.4.6.tar.gz-c/USR/LOCAL/SRC

Tar zxvf apr-util-1.5.1.tar.gz-c/usr/local/src/

Tar jxvf httpd-2.4.4.tar.bz2-c/usr/local/src/

Tar zxvf mysql-5.5.15-linux2.6-i686.tar.gz-c/usr/local/src/

Tar jxvf php-5.4.13.tar.bz2-c/usr/local/src/

Cd/usr/local/src and view

Second, the source code Apache

1, Apache compiler needs APR and apr-util support, so need to compile these two source code

Source Installation Apr

CD./apr-1.4.6

./configure--PREFIX=/USR/LOCAL/APR

(Specify the APR installation directory to run./configure--help|less to see more parameters)

Make && make install

2, the source code installation Apr-util

CD./apr-util-1.5.1

./configur--prefix=/usr/local/apr-util

--with-apr=/usr/local/apr/bin/apr-1-config

(Specify the installation directory for the Apr-util and specify the path to the APR's configuration file)

Make && make install

3, the source code installation configuration httpd

1) CD./httpd-2.4.4

Make && make install

Related Article

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.