#!bin/bashmount /dev/cdrom /mntyum install gcc*tar fvxj httpd-2.2.16.tar.bz2cd httpd-2.2.16./configure --prefix=/usr/local/http --enable-so --enable-rewrite --with-pmp=worker makemake install/usr/local/http/bin/apachectl startcd ../yum install ncurses-develuseradd -r mysql echo "123456"|passwd mysql --stdintar fvxz mysql-5.1.44.tar.gzcd mysql-5.1.44./configure --prefix=/usr/local/mysql --with-extra-charsets=gbk,gb2312,utf8 --with-mysqld-user=mysql --enable-thread-safe-clientmakemake installcd /usr/local/mysql/bin./mysql_install_dbcd ../../chown -R mysql mysql/cd mysql/bin./mysqld_safe./mysqladmin -u root passwd "123456"cd ../tar fvxj libpng-1.4.4.tar.bz2cd libpng-1.4.4./configure --prefix=/usr/local/libpngmakemake installcd ../tar fvxz jpegsrc.v8b.tar.gzcd jpegsrc.v8b./configure --prefix=/usr/local/jpegmake make installcd ../tar fvxz freetype-2.1.10.tar.gzcd freetype-2.1.10./configure --prefix=/usr/local/freetypemake make installcd ../tar fvxz gd-2.0.36RC1.tar.gzcd gd-2.0.36RC1./configure --prefix=/usr/local/gd --with-png=/usr/local/libpng --with-jpeg=/usr/local/jpeg --with-freetype=/usr/local/freetypemakemake installcd ../tar fvxj php-5.2.5.tar.bz2cd php-5.2.5./configure --prefix=/usr/local/php --enable-mbstring --with-apxs2=/usr/local/http/bin/apxs --with-mysql=/usr/local/mysql --with-config-file-path=/usr/local/php --with-jpeg-dir=/usr/local/jpeg --with-png-dir=/usr/local/libpng --with-freetype-dir=/usr/local/freetype --with-gd=/usr/local/gd --enable-soap --enable-gd-native-ttf  --enable-ftp --enable-exif  --enable-sockets --enable-ucd-snmp-hackmakemake installcd /rootecho "AddType application/x-httpd-php .php">>/usr/local/httpd.confecho "
">/usr/local/http/htdocs/index.phpfirefox http://localhost/index.php