编译安装php

./configure --prefix=/usr/local/php \
--with-libdir=lib64 \
--enable-fpm \
--with-fpm-user=roter \
--with-fpm-group=roter \
--enable-mysqlnd \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--enable-opcache \
--enable-pcntl \
--enable-mbstring \
--enable-soap \
--enable-zip \
--enable-calendar \
--enable-bcmath \
--enable-exif \
--enable-ftp \
--enable-intl \
--with-openssl \
--with-zlib \
--with-curl \
--with-gd \
--with-zlib-dir=/usr/lib \
--with-png-dir=/usr/lib \
--with-jpeg-dir=/usr/lib \
--with-freetype-dir=/usr/lib \
--with-gettext \
--with-mhash \
--with-ldap \
--with-apxs2=/usr/bin/apxs

posted @ 2016-11-24 11:08  猫头老鹰  阅读(114)  评论(0编辑  收藏  举报