我有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版本?
提前致谢!