首先安装的是php5.16版本的,需要另外安装php-fpm,结果安装半天还是有问题。改安装php5.3版本,因为自带了fpm模块,直接编译上去就行了。
编译php,
./configure
--with-iconv-dir=/usr/local/\
--with-freetype-dir\
--with-jpeg-dir\
--with-png-dir\
--with-zlib\
--with-mhash\
--enable-sockets\
--enable-ftp\
--with-libxml-dir\
--enable-xml\
--disable-rpath\
--enable-safe-mode\
--enable-bcmath\
--enable-shmop\
--enable-sysvsem\
--enable-inline-optimization\
--with-curl\
--with-curlwrappers\
--enable-mbregex\
--enable-mbstring\
--with-mcrypt\
--with-gd\
--enable-gd-native-ttf\
--with-openssl\
--with-mhash\
--enable-pcntl\
--enable-socket