在Ubuntu的Phpbrew – 如何更改版本?

我有Ubuntu 12.04 LTS“精确”,PHP 5.3.10(来自apt-get),新鲜的phpbrew 1.17.2和php 5.4.35安装了phpbrew。 但它只适用于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并重新configuration一些服务器为fastcgi_pass unix:/var/run/php54-fpm.pid;$ phpbrew fpm start工作correclty,但与phpinfo();示例页面phpinfo(); 返回5.3版本

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

提前致谢!

这个问题在这里解释:

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

基本上你必须手动连接你的apache配置中的php * .so文件。