之所以安装这么低的版本,是因为公司服务器运行环境是php5.3。编译安装的确耽误时间,最主要原因还必须按照要求安装响应的扩展。
源码哪里下载我就不说了...
要创建好用户和用户组 www
./configure --prefix=/usr/local/php5.3 \
--disable-debug \
--enable-shared \
--enable-fpm \
--with-fpm-user=www \
--with-fpm-group=www \
--with-bz2 \
--enable-dom \
--enable-calendar \
--enable-ctype \
--with-curl \
--enable-exif \
--enable-fileinfo \
--enable-filter \
--enable-ftp \
--with-gd \
--with-gettext \
--with-gmp \
--with-mhash \
--enable-json \
--with-ldap \
--with-libxml-dir \
--enable-mbstring \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-openssl \
--enable-pcntl \
--with-pear \
--enable-Phar \
--with-readline \
--enable-session \
--enable-shmop \
--enable-SimpleXML \
--enable-sockets \
--enable-wddx \
--enable-xml \
--enable-xmlreader \
--enable-xmlwriter \
--with-xmlrpc \
--with-xsl \
--enable-zip \
--with-zlib-dir
网友评论