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
phpbrew [2016/05/25 16:50] – [Compile a PHP Version] adminphpbrew [2021/12/06 22:30] (current) – removed admin
Line 1: Line 1:
-====== PHPBrew ====== 
- 
- 
-===== Compile a PHP Version ===== 
- 
- 
-<code> 
-sudo phpbrew install 5.4.38 +apxs2 +bcmath +bz2 +calendar -cgi +cli +ctype +curl +dba +debug +dom +dtrace +editline -embed +exif +fileinfo +filter -fpm +ftp -gcov +gd +gettext +gmp +hash +iconv +icu +imap +inifile +inline +intl +ipc +ipv6 +json +kerberos +libgcc +mbregex +mbstring +mcrypt +mhash +mysql +opcache +openssl +pcntl +pcre +pdo +pgsql +phar +phpdbg +posix +readline +session +soap +sockets +sqlite +static +tidy +tokenizer +wddx +xml +xml_all +xmlrpc +zip +zlib -- --with-mysqli 
-</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 ===== 
- 
-<code> 
-phpbrew config 
-</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> 
- 
  
phpbrew.1464187811.txt.gz · Last modified: 2016/05/25 16:50 by admin