lamp环境安装shell脚本
cd /lamp/libxml2-2.6.30./configure --prefix=/gxlweb/lamp/libxml2/makemake installcd /lamp/libmcrypt-2.5.8./configure --prefix=/gxlweb/lamp/libmcrypt/makemake installcd /lamp/libmcrypt-2.5.8/libltdl./configure --enable-ltdl-installmakemake installcd /lamp/zlib-1.2.3./configuremakemake installcd /lamp/libpng-1.2.31./configure --prefix=/gxlweb/lamp/libpng/makemake installmkdir /gxlweb/lamp/jpeg6mkdir /gxlweb/lamp/jpeg6/binmkdir /gxlweb/lamp/jpeg6/libmkdir /gxlweb/lamp/jpeg6/includemkdir -p /gxlweb/lamp/jpeg6/man/man1cd /lamp/jpeg-6b./configure --prefix=/gxlweb/lamp/jpeg6/ --enable-shared --enable-staticmakemake installcd /lamp/freetype-2.3.5./configure --prefix=/gxlweb/lamp/freetype/makemake installcd /lamp/autoconf-2.61./configuremakemake installcd /lamp/gd-2.0.35./configure --prefix=/gxlweb/lamp/gd2/ --with-jpeg=/gxlweb/lamp/jpeg6/ --with-freetype=/gxlweb/lamp/freetype/makemake installcd /lamp/httpd-2.2.9./configure --prefix=/gxlweb/lamp/apache2/ --sysconfdir=/etc/httpd/ --with-included-apr --disable-userdir --enable-so --enable-deflate=shared --enable-expires=shared --enable-rewrite=shared --enable-static-supportmakemake install/gxlweb/lamp/apache2/bin/apachectl startecho "/gxlweb/lamp/apache2/bin/apachectl start" >> /etc/rc.d/rc.sysinitcd /lamp/ncurses-5.6./configure --with-shared --without-debug --without-ada --enable-overwritemakemake installgroupadd mysqluseradd -g mysql mysqlcd /lamp/mysql-5.0.41./configure --prefix=/gxlweb/lamp/mysql/ --with-extra-charsets=allmakemake installcp support-files/my-medium.cnf /etc/my.cnf/gxlweb/lamp/mysql/bin/mysql_install_db --user=mysqlchown -R root /gxlweb/lamp/mysqlchown -R mysql /gxlweb/lamp/mysql/varchgrp -R mysql /gxlweb/lamp/mysql/gxlweb/lamp/mysql/bin/mysqld_safe --user=mysql &cp /lamp/mysql-5.0.41/support-files/mysql.server /etc/rc.d/init.d/mysqldchown root.root /etc/rc.d/init.d/mysqldchmod 755 /etc/rc.d/init.d/mysqldchkconfig --add mysqldchkconfig --list mysqldchkconfig --levels 245 mysqld offcd /lamp/php-5.2.6./configure --prefix=/gxlweb/lamp/php/ --with-config-file-path=/gxlweb/lamp/php/etc/ --with-apxs2=/gxlweb/lamp/apache2/bin/apxs --with-mysql=/gxlweb/lamp/mysql/ --with-libxml-dir=/gxlweb/lamp/libxml2/ --with-jpeg-dir=/gxlweb/lamp/jpeg6/ --with-freetype-dir=/gxlweb/lamp/freetype/ --with-gd=/gxlweb/lamp/gd2/ --with-mcrypt=/gxlweb/lamp/libmcrypt/ --with-mysqli=/gxlweb/lamp/mysql/bin/mysql_config --enable-soap --enable-mbstring=all --enable-socketsmakemake installcp php.ini-dist /gxlweb/lamp/php/etc/php.iniecho "Addtype application/x-httpd-php .php .phtml" >> /etc/httpd/httpd.conf/gxlweb/lamp/apache2/bin/apachectl restart
页:
[1]