CentOS 5.4环境下的php5.3.1手动安装
Cent自带的版本是5.1.16,现下载php5.3.1安装包tar.gz,解压到/usr/local/src中
执行下述命令:
./configure \
"--prefix=/usr/local/php" \
"--with-apxs2=/usr/sbin/apxs" \
"--with-config-file-path=/usr/local/php/etc" \
"--with-mysql=/usr/local/mysql" \
"--with-mysqli" \
"--with-libxml-dir=/usr/lib/libxml" \
"--with-gd" \
"--with-pdo-mysql" \
"--with-pdo-sqlite" \
"--with-jpeg-dir" \
"--with-png-dir" \
"--with-bz2" \
"--with-pear=/usr/lib/pear" \
"--with-freetype-dir" \
"--with-iconv-dir" \
"--with-zlib-dir " \
"--with-mcrypt=/usr/lib/libmcrypt" \
"--enable-sockets" \
"--enable-soap" \
"--enable-sqlite-utf8" \
"--enable-gd-native-ttf" \
"--enable-ftp" \
"--enable-mbstring" \
"--enable-exif" \
"--disable-ipv6" \
"--disable-cgi"
posted on 2010-01-18 12:42
Documents 阅读(586)
评论(0) 编辑 收藏 所属分类:
Linux 、
lamp 、
php 、
CentOS