install php 7 to run beside php 5 on ubuntu with nginx
How to install php 7 to run beside php 5 on ubuntu with nginx
PHP 7.0 on Ubuntu 14 or 16
1.Enter the following commands in the order shown:
sudo apt-get -y update
sudo add-apt-repository ppa:ondrej/php
sudo apt-get -y update
sudo apt-get install -y php7.0 php7.0-dev libapache2-mod-php7.0 php7.0 php7.0-common php7.0-fpm php7.0-gd php7.0-mysql php7.0-mcrypt php7.0-curl php7.0-intl php7.0-xsl php7.0-mbstring php7.0-zip php7.0-bcmath php7.0-iconv
2.Enter the following command to verify PHP 7 installed properly:
php -v
PHP 7.0.8-2+deb.sury.org~trusty+1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.8-2+deb.sury.org~trusty+1, Copyright (c) 1999-2016, by Zend Technologies
PHP 5.6 on Ubuntu 14
To install PHP 5.6 or to upgrade from PHP 5.5 on Ubuntu 14:
1.Enter the following commands in the order shown:
apt-get -y update
add-apt-repository ppa:ondrej/php
apt-get -y update
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
2.Enter the following command to verify PHP 5.6 installed properly:
php -v
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
PHP 5.5 on Ubuntu 14
To install PHP 5.5 on Ubuntu 14:
1.Enter the following commands in the order shown:
apt-get -y update
apt-get -y install php5 php5-mcrypt php5-curl php5-cli php5-mysql php5-gd php5-intl php5-xsl
2.Verify the PHP version by entering php -v. Messages similar to the following should display:
PHP 5.5.9-1ubuntu4.4 (cli) (built: Sep 4 2014 06:56:34)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
參考:
http://devdocs.magento.com/guides/v2.0/install-gde/prereq/php-ubuntu.html
相關文章
- install_nginx_phpNginxPHP
- ubuntu16.04 PHP7安裝與Nginx PHPUbuntuPHPNginx
- ubuntu下nginx+php5的部署UbuntuNginxPHP
- aliyun install php apache mysql nginxPHPApacheMySqlNginx
- centos7+php+nginxCentOSPHPNginx
- Ubuntu php5安裝UbuntuPHP
- PHP 5 與 PHP 7 的效能對比PHP
- centos7+安裝nginx+php7CentOSNginxPHP
- Ubuntu 系統下部署nginx 和 php 7.2UbuntuNginxPHP
- Nginx PHP-FPM and MySQL on CentOS 5NginxPHPMySqlCentOS
- PHP 7 的 5 大新特性PHP
- 在 Ubuntu 上搭建 nginx+PHP+Laravel 環境UbuntuNginxPHPLaravel
- NGINX+PHP+POSTGRESQL+ZABBIX 5.XNginxPHPSQL
- PHP 效能分析平臺搭建 (tideways + xhgui+ nginx + PHP7)PHPIDEGUINginx
- 記Ubuntu 16.04 下配置 Nginx、PHP7、MySQL環境,以及多域名配置UbuntuNginxPHPMySql
- Centos7Nginx+PHP安裝步驟CentOSNginxPHP
- [LAMP]安裝PHP5/7LAMPPHP
- nginx and php and zabbixNginxPHP
- nginx 代理phpNginxPHP
- centos7 安裝php7+mysql5.7+nginx+redisCentOSPHPMySqlNginxRedis
- Linux上配置Nginx+PHP5(FastCGI)LinuxNginxPHPAST
- Ubuntu 16.04 安裝 Apache, MySQL, PHP7UbuntuApacheMySqlPHP
- ubuntu 16.04+nginx+mysql+php7.1+laravel5.5環境UbuntuNginxMySqlPHPLaravel
- ubuntu14.04 lnmp(nginx1.9+php7.0+mysql5.7)UbuntuLNMPNginxPHPMySql
- ubuntu 10.04 nginx+mysql+php+zend 環境搭建【Z】UbuntuNginxMySqlPHP
- 【Nginx】php+nginx快速搭建NginxPHP
- ubuntu 16.04 安裝php 5 6等版本UbuntuPHP
- ubuntu14.04安裝php5-fpmUbuntuPHP
- Debian6.04nginx+mysql+php5-fpmfastcgi+pathinfoNginxMySqlPHPAST
- CentOS 7 下安裝PHP環境並且配置Nginx支援php-fpm模組CentOSPHPNginx
- PHP-fpm + nginxPHPNginx
- nginx+php-cgiNginxPHP
- Nginx配置支援phpNginxPHP
- CentOS 7 下安裝 nginx + PHP 執行環境CentOSNginxPHP
- CentOS7上安裝並配置Nginx、PHP、MySqlCentOSNginxPHPMySql
- Ubuntu 下 Nginx 伺服器 PHP 安裝 MongoDB 擴充套件UbuntuNginx伺服器PHPMongoDB套件
- CentOS7 yum 安裝 nginx 和 PHP7 訪問白屏CentOSNginxPHP
- Ubuntu Linux下為PHP5安裝cURLUbuntuLinuxPHP