php:
保存为php-setup.txt
在linux下执行: cat php-setup.txt |col -b > php-setup.sh
#------------------------------------------------------------------------------------------------------
#!/bin/sh
echo "########## Extract...... ####################"
tar -zxvf php-5.2.4.tar.gz
sleep 3
echo "########## Install...... ####################"
cd php-5.2.4
./configure /
--with-apxs2=/usr/local/httpd/bin/apxs /
--prefix=/usr/local/php /
--with-libdir=lib /
--disable-debug /
--with-pic /
--disable-rpath /
--without-pear /
--with-bz2 /
--with-curl /
--with-exec-dir=/usr/bin /
--with-freetype-dir=/usr /
--with-png-dir=/usr /
--with-gd /
--enable-gd-native-ttf /
--with-gettext /
--with-gmp /
--with-iconv /
--with-jpeg-dir=/usr /
--with-openssl /
--with-png /
--with-zlib /
--enable-exif /
--enable-ftp /
--enable-magic-quotes /
--enable-sockets /
--enable-sysvsem /
--enable-sysvshm /
--enable-sysvmsg /
--enable-track-vars /
--enable-trans-sid /
--enable-yp /
--enable-wddx /
--with-kerberos /
--enable-mbstring=all /
--enable-ucd-snmp-hack /
--enable-memory-limit /
--enable-shmop /
--enable-calendar /
--without-sqlite /
--with-libxml-dir=/usr /
--with-xml /
--with-mysql /
--with-mysqli /
--with-pdo-mysql
make
make install
cp ../php.ini /usr/local/php/lib/php.ini
sleep 3
echo "########## Install Succeed ####################"
#------------------------------------------------------------------------------------------------------
保存为php-setup.txt
在linux下执行: cat php-setup.txt |col -b > php-setup.sh
#------------------------------------------------------------------------------------------------------
#!/bin/sh
echo "########## Extract...... ####################"
tar -zxvf php-5.2.4.tar.gz
sleep 3
echo "########## Install...... ####################"
cd php-5.2.4
./configure /
--with-apxs2=/usr/local/httpd/bin/apxs /
--prefix=/usr/local/php /
--with-libdir=lib /
--disable-debug /
--with-pic /
--disable-rpath /
--without-pear /
--with-bz2 /
--with-curl /
--with-exec-dir=/usr/bin /
--with-freetype-dir=/usr /
--with-png-dir=/usr /
--with-gd /
--enable-gd-native-ttf /
--with-gettext /
--with-gmp /
--with-iconv /
--with-jpeg-dir=/usr /
--with-openssl /
--with-png /
--with-zlib /
--enable-exif /
--enable-ftp /
--enable-magic-quotes /
--enable-sockets /
--enable-sysvsem /
--enable-sysvshm /
--enable-sysvmsg /
--enable-track-vars /
--enable-trans-sid /
--enable-yp /
--enable-wddx /
--with-kerberos /
--enable-mbstring=all /
--enable-ucd-snmp-hack /
--enable-memory-limit /
--enable-shmop /
--enable-calendar /
--without-sqlite /
--with-libxml-dir=/usr /
--with-xml /
--with-mysql /
--with-mysqli /
--with-pdo-mysql
make
make install
cp ../php.ini /usr/local/php/lib/php.ini
sleep 3
echo "########## Install Succeed ####################"
#------------------------------------------------------------------------------------------------------