Home  >  Article  >  Backend Development  >  升级php有关问题

升级php有关问题

WBOY
WBOYOriginal
2016-06-13 13:47:56930browse

升级php问题
我的系统是CentOS 5.7
之前安装操作系统时候安装的php版本是5.1.6
版本太低了,想升级。
yum上搜索到最高版本就是5.1.6
于是去php.net 下载了源代码tar包5.3.10,解压缩。
然后
#./configure --with-mysql
#make
#make install

通过rpm查询php版本依旧是5.1.6
这是什么原因呢?多谢了。

------解决方案--------------------
用二进制包编译安装的版本,无法用rpm查到,除非你手动更新rpm的db
另外,你的编译参数,估计会比之前的版本少很多东西...

你应该升级前先用php -i获取旧版本的编译参数,然后再用该参数编译新版本

对应的so也都要重新编译
------解决方案--------------------
apxs一般是指向apache的apxs路径,不过这个参数在新版本的php中已经不需要了...
如果想用,可以参考:--with-apxs2=/usr/local/apache2/bin/apxs
具体功能自己查找php的官网文档吧


如何查看php的编译参数:
/usr/local/php/bin/php -i | grep configure
------解决方案--------------------
新的版本没有安装上,或没有安装成功。楼上正解.
------解决方案--------------------
http://www.google.com.hk/search?hl=zh-CN&newwindow=1&safe=strict&client=aff-cs-360chromium&hs=Cbz&q=CentOS%2Bphp5.3&oq=CentOS%2Bphp5.3&aq=f&aqi=&aql=&gs_sm=3&gs_upl=34936l41449l0l41894l7l7l0l0l0l0l0l0ll0l0
http://liujiesmart.iteye.com/blog/773131

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn