yum -y install gcc zlib-devel openssl-devel libssl-dev libxml2-dev libXpm libXpm-devel
tar -jxvf httpd-2.2.15.tar.bz2
cd httpd-2.2.15
./configure --enable-so --enable-mods-shared=all --enable-rewrite --enable-deflate --enable-ssl=static $@
make
make install
cd /usr/local/apache2/
cp bin/apachectl /usr/sbin/
apachectl restart
tar -jxvf php-5.3.2.tar.bz2
rpm -ivh freetype-devel-2.2.1-21.el5_3.x86_64.rpm
yum install freetype-devel
rpm -ivh libjpeg-devel-6b-37.x86_64.rpm
rpm -ivh libpng-1.2.10-7.1.el5_3.2.x86_64.rpm
rpm -ivh libpng-devel-1.2.10-7.1.el5_3.2.x86_64.rpm
yum install libpng-devel
rpm -ivh sysstat-7.0.2-3.el5.x86_64.rpm
rpm -ivh libXpm-3.5.5-3.x86_64.rpm
rpm -ivh libXpm-devel-3.5.5-3.x86_64.rpm/
yum install perl
yum install libxml2 libxml2-devel gd-devel libcurl-devel
./configure --with-libdir=lib64 --enable-magic-quotes --with-iconv --enable-mbstring=all --with-apxs2=/usr/local/apache2/bin/
apxs --enable-ftp --enable-sockets --enable-bcmath --with-openssl=/usr --enable-ftp --enable-sqlite-utf8 --with-mysqli=mysqlnd --wit
h-mysql=mysqlnd --enable-embedded-mysqli --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-curl $@
make
make install