一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

编译安装php5.2 with php-fpm方法介绍

时间:2013-11-06 编辑:简简单单 来源:一聚教程网

php源码http://php.net/releases/index.php
php-fpm补丁http://php-fpm.org
版本不要弄错了,下载完成后打上补丁

 代码如下 复制代码

./configure –prefix=/usr/local/php -with-config-file-path=/usr/local/php/etc -with-mysql=/usr/bin/mysql -with-mysqli=/usr/bin/mysql_config -with-openssl -enable-fpm -enable-mbstring -with-freetype-dir -with-jpeg-dir -with-png-dir -with-zlib-dir -with-libxml-dir=/usr -enable-xml -with-mhash -with-mcrypt -enable-pcntl -enable-sockets  -with-bz2 -with-curl -with-curlwrappers -enable-mbregex -with-gd -enable-gd-native-ttf -enable-zip -enable-soap -with-iconv -enable-bcmath -enable-shmop -enable-sysvsem -enable-inline-optimization -with-ldap -with-ldap-sasl -enable-pdo -with-pdo-mysql -enable-fastcgi

编译链接的时候可能出现问题,比如 /usr/bin/ld: cannot find -lltld,缺少/usr/lib/libltdl.so,添加epel源,yum install libtool-ltdl-devel就可以了,之后make clean重新编译就OK了。
这种方式安装的扩展都是集成到php.exe中的。

热门栏目