PHP 5.6 on Ubuntu 14

2017年1月18日

To install PHP 5.6 or to upgrade from PHP 5.5 on Ubuntu 14:

Enter the following commands in the order shown:

  1. apt-get -y update
  2. add-apt-repository ppa:ondrej/php
  3. apt-get -y install php5.6 php5.6-mcrypt php5.6-mbstring php5.6-curl php5.6-cli php5.6-mysql php5.6-gd php5.6-intl php5.6-xsl php5.6-zip
  4. apt-get -y update

Enter the following command to verify PHP 5.6 installed properly:

php -v

Following is a sample response that indicates PHP 5.6 is installed:

PHP 5.6.22-4+deb.sury.org~trusty+1 (cli)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

原文:http://devdocs.magento.com/guides/v2.0/install-gde/prereq/php-ubuntu.html#php-56-on-ubuntu-14

没有评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注