[英]Phpbrew on ubuntu – how to change version?
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. 我有Ubuntu 12.04 LTS“ precise”,php 5.3.10(来自apt-get),新鲜的phpbrew 1.17.2和phpbrew安装的php 5.4.35。 But it works only for cli.
但这仅适用于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?
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;
比起我尝试将新的fpm从brew绑定到另一个pid
/var/run/php54-fpm.pid
并为fastcgi_pass unix:/var/run/php54-fpm.pid;
重新配置一些服务器fastcgi_pass unix:/var/run/php54-fpm.pid;
. 。
$ phpbrew fpm start
works correclty, but example page with phpinfo();
$ phpbrew fpm start
可以正常运行,但是带有phpinfo();
示例页面phpinfo();
returns 5.3 version. 返回5.3版本。
How to really switch php version in this case? 在这种情况下,如何真正切换php版本?
Thanks in advance! 提前致谢!
This Issue is explained here: 此问题的解释如下:
https://github.com/phpbrew/phpbrew/issues/226 https://github.com/phpbrew/phpbrew/issues/226
Basically you have to link the php *.so files within your apache config by hand. 基本上,您必须手动在apache配置中链接php * .so文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.