title: Phpbrew on ubuntu – how to change version?
body: <p>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.</p>
  
  <pre><code>$ 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?
  </code></pre>
  
  <p>Than i've tried new fpm from brew bind into another pid <code>/var/run/php54-fpm.pid</code> and reconfigure some servers for <code>fastcgi_pass unix:/var/run/php54-fpm.pid;</code>.
  <code>$ phpbrew fpm start</code> works correclty, but example page with <code>phpinfo();</code> returns 5.3 version.</p>
  
  <p>How to <em>really</em> switch php version in this case?</p>
  
  <p>Thanks in advance!</p>