User Tools

Site Tools


phpbrew

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
phpbrew [2016/05/25 16:34] – [PHPBrew] adminphpbrew [2016/05/25 16:50] – [Compile a PHP Version] admin
Line 9: Line 9:
 </code> </code>
  
 +
 +Maybe its a good idea to specify the socket:
 +
 +<code>
 + --with-mysql-sock=/var/run/mysqld/mysqld.sock
 +</code>
 ===== Configure php.ini of current php Version ===== ===== Configure php.ini of current php Version =====
  
Line 14: Line 20:
 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>
 +
 +