CentOS中安装php环境遇到的坑

安装PHP常见错误解决,有人总结了:

http://blog.sina.com.cn/s/blog_61c07ac501018836.html

如果环境安装好了,发现缺少扩展。

通常都是一个一个的去下载源码  -->编译 -->安装 -->配置 等操作,比如安装soap步骤如下:

这种安装方式繁琐不说,还容易出错。

其实我们只需要使用yum install 就可以了。

比如说安装soap 我们只需要运行命令 : yum install php-soap 就可以了(亲测有效)。 

以下是常见的PHP扩展:

yum -y install php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc php-devel php-imap php-odbc php-soap php-bcmath

测试环境:CentOS6.5  PHP5.3.3 

发布了86 篇原创文章 · 获赞 166 · 访问量 6万+

猜你喜欢

转载自blog.csdn.net/ruoshui_t/article/details/102496813