1 頁 (共 1 頁)

16.04 phpbrew

發表於 : 2017-02-07 14:37:53
yehlu
https://coderwall.com/p/hguzxa/phpbrew- ... 16-04-php7

When installing PHPBrew on a brand spanking new setup of ubuntu 16.04 the requirements page (that explains for php5) is not very handy to get things started smoothly. This is a minimalist setup you can use in order to install a +default variant of php7 via PHPBrew

~$ sudo apt-get update
~$ sudo apt-get install php7.0 php7.0-curl php7.0-json php7.0-cgi
~$ sudo apt-get install php7.0-fpm autoconf automake libxml2-dev libcurl4-openssl-dev libssl-dev openssl gettext libicu-dev libmcrypt-dev libmcrypt4 libbz2-dev libreadline-dev gettext build-essential libmhash-dev libmhash2 libicu-dev libxslt-dev
~$ phpbrew install php-7.0.9 +default+mcrypt+zlib+sockets+soap+mhash+fpm+openssl

Re: 16.04 phpbrew

發表於 : 2017-02-08 16:19:53
yehlu

代碼: 選擇全部

cd /opt/phpbrew/php
sudo cp php-5.4.45/bin/php-cgi /usr/lib/cgi-bin/php54-cgi
sudo cp php-5.5.38/bin/php-cgi /usr/lib/cgi-bin/php55-cgi
sudo cp php-5.6.30/bin/php-cgi /usr/lib/cgi-bin/php56-cgi
sudo cp php-7.0.15/bin/php-cgi /usr/lib/cgi-bin/php70-cgi
sudo cp php-7.1.1/bin/php-cgi /usr/lib/cgi-bin/php71-cgi