Phpbrew on ubuntu – how to change version?

柔情痞子 提交于 2019-12-08 04:28:19

问题


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?

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.

How to really switch php version in this case?

Thanks in advance!


回答1:


This Issue is explained here:

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

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



来源:https://stackoverflow.com/questions/27241321/phpbrew-on-ubuntu-how-to-change-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!