Phubbrew on ubuntu –如何更改版本? [英] Phpbrew on ubuntu – how to change version?

查看:83
本文介绍了Phubbrew on ubuntu –如何更改版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Ubuntu 12.04 LTS"precise",php 5.3.10(来自apt-get),新鲜的phpbrew 1.17.2和phpbrew安装的php 5.4.35.但这仅适用于cli.

I have Ubuntu 12.04 LTS "precise", php 5.3.10 (from apt-get), fresh phpbrew 1.17.2, and php 5.4.35 installed with phpbrew. But it works only for cli.

$ php -v # 5.3.10-1ubuntu3.11
$ phpbrew install 5.4.35 +default +fpm
$ phpbrew switch 5.4.35
$ nginx -s reload
$ service php5-fpm restart
$ php -v // PHP 5.4.35
$ curl -IL example.com | grep Powered # still 5.3.10-1ubuntu3.11 ! Why?

比起我,我尝试将brew绑定中的新fpm绑定到另一个pid /var/run/php54-fpm.pid中,并为fastcgi_pass unix:/var/run/php54-fpm.pid;重新配置一些服务器. $ phpbrew fpm start正常运行,但是带有phpinfo();的示例页面返回5.3版本.

Than i've tried new fpm from brew bind into another pid /var/run/php54-fpm.pid and reconfigure some servers for fastcgi_pass unix:/var/run/php54-fpm.pid;. $ phpbrew fpm start works correclty, but example page with phpinfo(); returns 5.3 version.

在这种情况下如何真正切换PHP版本?

How to really switch php version in this case?

提前谢谢!

推荐答案

此处解释了此问题:

https://github.com/phpbrew/phpbrew/issues/226

基本上,您必须手动在apache配置中链接php * .so文件.

Basically you have to link the php *.so files within your apache config by hand.

这篇关于Phubbrew on ubuntu –如何更改版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆