tar -zvxf php-5.5.0.tar.gz
cd php-5.5.0
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --enable-sysvsem --enable-sockets --enable-pcntl --enable-mbstring --enable-mysqlnd --enable-opcache --enable-shmop --enable-zip --enable-ftp --enable-gd-native-ttf --enable-wddx --enable-soap
make && make install
拷貝一份正式的php-fpm.conf
更多選項... ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --enable-sysvsem --enable-sockets --enable-pcntl --enable-mbstring --enable-mysqlnd --enable-opcache --enable-shmop --enable-zip --with-mcrypt=/usr/local/libmcrypt/ --with-zlib=/usr/local/zlib/ --with-curl=/usr/local/curl/ --with-pcre-dir=/usr/local/pcre/ --with-t1lib=/usr/local/tlib/ --with-pdo-mysql=/usr/ --with-fpm-user=www --with-fpm-group=www
cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf
啓動PHP:
/usr/local/php/sbin/php-fpmphp
config 第二種mysql
./configure --prefix=/usr/local/php \sql
--with-libxml-dir=/usr/include/libxml2 \session
--with-config-file-path=/usr/local/php/etc/ \curl
--with-mysql=mysqlnd \socket
--with-mysqli=mysqlnd \php-fpm
--with-gd \url
--enable-gd-native-ttf \spa
--with-zlib \orm
--with-mcrypt \
--with-pdo-mysql=/usr/local/mysql \
--enable-shmop \
--enable-soap \
--enable-sockets \
--enable-wddx \
--enable-zip \
--with-xmlrpc \
--enable-fpm \
--enable-mbstring \
--with-zlib-dir \
--with-bz2 \
--with-curl \
--enable-exif \
--enable-ftp \
--with-jpeg-dir=/usr/lib64 \
--with-png-dir=/usr/lib64 \
--with-freetype-dir=/usr/lib64 \
--with-iconv \
--enable-xml \
--enable-bcmath \
--enable-sysvsem \
--enable-inline-optimization \
--with-curl \
--enable-mbregex \
--with-openssl \
--enable-pcntl \
--with-gettext \
--enable-opcache \
--enable-session \
--disable-fileinfo
--disable-fileinfo 是內存不滿1G時使用