您的位置:首页 > 运维架构 > Linux

Linux下php安装脚本

2007-11-21 20:46 429 查看
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 ####################"

#------------------------------------------------------------------------------------------------------
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: