码迷,mamicode.com
首页 > Web开发 > 详细

PHP扩展开发环境搭建

时间:2016-12-29 20:09:08      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:centos   开发环境   err   文档   lnmp   eve   ble   扩展   使用   

今天买了台阿里云服务器用于日常开发测试。系统版本CentOS 6.5 64位。

首先安装nginx:

yum install nginx

参考文档:

在CentOS 6上搭建LNMP环境

安装完成后,使用 service nginx start 命令启动nginx出现错误

nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)

解决方法见:

nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)

 

编译安装php-5.6.29:

./configure --enable-fpm --enable-debug

提示出错:

configure: error: xml2-config not found. Please check your libxml2 installation.

看来缺东西了:

yum install libxml2-devel

然后再次执行

./configure --enable-fpm --enable-debug
make && make install

安装成功。

PHP扩展开发环境搭建

标签:centos   开发环境   err   文档   lnmp   eve   ble   扩展   使用   

原文地址:http://www.cnblogs.com/gattaca/p/6234534.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!