User Tools

Site Tools


phpbrew

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
phpbrew [2016/05/25 16:32] – created adminphpbrew [2016/05/25 16:44] – [Configure php.ini of current php Version] admin
Line 2: Line 2:
  
  
-Compile a PHP Version:+===== Compile a PHP Version ===== 
  
 <code> <code>
Line 13: Line 14:
 phpbrew config phpbrew config
 </code> </code>
 +
 +Make sure you have set "mysqli.default_socket" correctly.
 +
 +<code>
 +mysqli.default_socket = /var/run/mysqld/mysqld.sock
 +</code>
 +
 +===== Switch to a specific version =====
 +
 +Switch the php cli:
 +
 +<code>
 +phpbrew switch php-5.4.38
 +</code>
 +
 +And don't forget to add the module to your enbabled Mods:
 +
 +<code>
 +LoadModule php5_module /usr/lib/apache2/modules/libphp5.3.28.so
 +</code>
 +
 +