compile configuration
[bash]
./configure \
--prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc \
--with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-freetype-dir \
--with-jpeg-dir \
--with-png-dir \
--with-zlib \
--with-libxml-dir \
--enable-xml \
--disable-debug \
--disable-rpath \
--enable-safe-mode \
--enable-bcmath \
--enable-shmop \
--enable-sysvsem \
--enable-inline-optimization \
--without-sqlite \
--with-curlwrappers \
--enable-mbregex \
--enable-mbstring \
--with-mcrypt \
--enable-cgi \
--enable-fpm --with-fpm-user=www --with-fpm-group=www
[/bash]
补上之前的记录
回复删除前面一段时间,估计是我把不太友善,编译时,libevent libaray 一再的出错,明明已经安装,但编译时还是报找不着,用 --with-libevent-dir 参数指定照样出错,搜了下,找到这个 【configure fails to pick up a custom prefix for libevent】,详细内容,请移步这里