14.04 php 5.6

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

14.04 php 5.6

文章 yehlu »

https://www.dev-metal.com/install-setup ... 14-04-lts/

How to setup / install PHP 5.6 on Ubuntu 14.04 LTS
PreviousNext
Ubuntu 14.04 LTS ships with PHP 5.5 by default, but if you want to use PHP 5.6, then it’s just 3 lines on the command line away. Please note that this tutorial is for installing on a fresh and untouched Ubuntu 14.04 LTS, not for updating an existing installation of PHP. This works perfectly on every tested Ubuntu 14.04 LTS.

1. Add PHP 5.6 package sources to your system:

代碼: 選擇全部

sudo add-apt-repository ppa:ondrej/php
sudo add-apt-repository ppa:ondrej/php5-5.6
and confirm with ENTER. If you get an error here, you need to install python-software-properties first (and then do the line above again):

代碼: 選擇全部

sudo apt-get update
sudo apt-get install python-software-properties
2. Update

代碼: 選擇全部

sudo apt-get update
3. Install PHP

代碼: 選擇全部

sudo apt-get install php5.6
and confirm with “y” and ENTER. You’ll now already see “PHP 5.6.x” in the scrolling installation logs. To properly check the installed version of PHP do:

php5 -v
Voila! By the way, this extremely-easy-to-install PHP 5.6 package was created by Ondřej Surý, so consider donating him a beer or a coffee via his donation page.
yehlu
Site Admin
文章: 3244
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Re: 14.04 php 5.6

文章 yehlu »

代碼: 選擇全部

sudo apt-get install php5.6-xml
sudo apt-get install php5.6-curl
sudo apt-get install php5.6-mysql
sudo apt-get install php5.6-mbstring
sudo a2dismod php5
sudo a2enmod php5.6
回覆文章

回到「Ubuntu」