百分百源码网-让建站变得如此简单! 登录 注册 签到领金币!

主页 | 如何升级VIP | TAG标签

当前位置: 主页>网站教程>服务器> 编译安装php5.2 with php-fpm方法介绍
分享文章到:

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

发布时间:01/15 来源: 浏览: 关键词:
本文章来给大家介绍编译安装php5.2 with php-fpm方法介绍,希望有需要了解的朋友可进入参考。

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中的。

打赏

打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

百分百源码网 建议打赏1~10元,土豪随意,感谢您的阅读!

共有9人阅读,期待你的评论!发表评论
昵称: 网址: 验证码: 点击我更换图片
最新评论

本文标签

广告赞助

能出一分力是一分吧!

订阅获得更多模板

本文标签

广告赞助

订阅获得更多模板