lamp

#!bin/bash mount /dev/cdrom /mnt yum install gcc* tar fvxj httpd-2.2.16.tar.bz2 cd httpd-2.2.16 ./configure --prefix=/usr/local/http --enable-so --enable-rewrite --with-pmp=worker make make install /usr/local/http/bin/apachectl start cd ../ yum install ncurses-devel useradd -r mysql echo "123456"|passwd mysql --stdin tar fvxz mysql-5.1.44.tar.gz cd mysql-5.1.44 ./configure --prefix=/usr/local/mysql --with-extra-charsets=gbk,gb2312,utf8 --with-mysqld-user=mysql --enable-thread-safe-client make make install cd /usr/local/mysql/bin ./mysql_install_db cd ../../ chown -R mysql mysql/ cd mysql/bin ./mysqld_safe ./mysqladmin -u root passwd "123456" cd ../ tar fvxj libpng-1.4.4.tar.bz2 cd libpng-1.4.4 ./configure --prefix=/usr/local/libpng make make install cd ../ tar fvxz jpegsrc.v8b.tar.gz cd jpegsrc.v8b ./configure --prefix=/usr/local/jpeg make make install cd ../ tar fvxz freetype-2.1.10.tar.gz cd freetype-2.1.10 ./configure --prefix=/usr/local/freetype make make install cd ../ tar fvxz gd-2.0.36RC1.tar.gz cd gd-2.0.36RC1 ./configure --prefix=/usr/local/gd --with-png=/usr/local/libpng --with-jpeg=/usr/local/jpeg --with-freetype=/usr/local/freetype make make install cd ../ tar fvxj php-5.2.5.tar.bz2 cd 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-hack make make install cd /root echo "AddType application/x-httpd-php .php">>/usr/local/httpd.conf echo "">/usr/local/http/htdocs/index.php firefox http://localhost/index.php
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章