cd/lamp/libxml2-2.6.30
./configure--prefix=/usr/local/libxml2/
Make
Make install
cd/lamp/libmcrypt-2.5.8
./configure--prefix=/usr/local/libmcrypt/
Make
Make install
Cd/lamp/libmcrypt-2.5.8/libltdl
./configure--enable-ltdl-install
Make
Make install
cd/lamp/zlib-1.2.3
./configure
Make
Make install
cd/lamp/libpng-1.2.31
./configure--prefix=/usr/local/libpng/
Make
Make install
Mkdir/usr/local/jpeg6
Mkdir/usr/local/jpeg6/bin
Mkdir/usr/local/jpeg6/lib
Mkdir/usr/local/jpeg6/include
Mkdir-p/usr/local/jpeg6/man/man1
cd/lamp/jpeg-6b
./configure--prefix=/usr/local/jpeg6/--enable-shared--enable-static
Make
Make install
cd/lamp/freetype-2.3.5
./configure--prefix=/usr/local/freetype/
Make
Make install
cd/lamp/autoconf-2.61
./configure
Make
Make install
cd/lamp/gd-2.0.35
./configure--prefix=/usr/local/gd2/--with-jpeg=/usr/local/jpeg6/--with-freetype=/usr/local/freetype/
Make
Make install
cd/lamp/httpd-2.2.9
./configure--prefix=/usr/local/apache2/--sysconfdir=/etc/httpd/--with-included-apr--disable-userdir--enable-so --enable-deflate=shared--enable-expires=shared--enable-rewrite=shared--enable-static-support
Make
Make install
/usr/local/apache2/bin/apachectl start
echo "/usr/local/apache2/bin/apachectl start" >>/etc/rc.d/rc.sysinit
cd/lamp/ncurses-5.6
./configure--with-shared--without-debug--without-ada--enable-overwrite
Make
Make install
Groupadd MySQL
useradd-g MySQL MySQL
cd/lamp/mysql-5.0.41
./configure--prefix=/usr/local/mysql/--with-extra-charsets=all
Make
Make install
CP SUPPORT-FILES/MY-MEDIUM.CNF/ETC/MY.CNF
/usr/local/mysql/bin/mysql_install_db--user=mysql
Chown-r Root/usr/local/mysql
Chown-r Mysql/usr/local/mysql/var
Chgrp-r Mysql/usr/local/mysql
/usr/local/mysql/bin/mysqld_safe--user=mysql &
Cp/lamp/mysql-5.0.41/support-files/mysql.server/etc/rc.d/init.d/mysqld
Chown Root.root/etc/rc.d/init.d/mysqld
chmod 755/etc/rc.d/init.d/mysqld
Chkconfig--add mysqld
Chkconfig--list mysqld
Chkconfig--levels 245 mysqld off
cd/lamp/php-5.2.6
./configure--prefix=/usr/local/php/--with-config-file-path=/usr/local/php/etc/--with-apxs2=/usr/local/apache2/ Bin/apxs--with-mysql=/usr/local/mysql/--with-libxml-dir=/usr/local/libxml2/--with-jpeg-dir=/usr/local/jpeg6/-- with-freetype-dir=/usr/local/freetype/--with-gd=/usr/local/gd2/--with-mcrypt=/usr/local/libmcrypt/-- With-mysqli=/usr/local/mysql/bin/mysql_config--enable-soap--enable-mbstring=all--enable-sockets
Make
Make install
CP Php.ini-dist/usr/local/php/etc/php.ini
echo "AddType application/x-httpd-php. php. phtml" >>/etc/httpd/httpd.conf
/usr/local/apache2/bin/apachectl restart