16.04 phpbrew

Ubuntu
回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

16.04 phpbrew

文章 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
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Re: 16.04 phpbrew

文章 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
回覆文章

回到「Ubuntu」