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