php版本升级到5.6 or 升级到7.0

php version update

php 升级到5.6

    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-xml

php 升级到7.0

    sudo apt-get update
    sudo apt-add-repository ppa:ondrej/php
    sudo apt-get install php7.0
    sudo apt-get install php7.0-mysql

php 7.0 安装扩展

    php7.0-fpm   php7.0-mysql   php7.0-sqlite3   php7.0-bcmath     php7.0-gd         php7.0-odbc       php7.0-sybase  php7.0-bz2    php7.0-gmp        php7.0-opcache    php7.0-tidy   php7.0-cgi        php7.0-imap       php7.0-pgsql      php7.0-xml   php7.0-cli        php7.0-interbase  php7.0-phpdbg     php7.0-xmlrpc     php7.0-common     php7.0-intl       php7.0-pspell     php7.0-xsl   php7.0-curl       php7.0-json       php7.0-readline   php7.0-zip    php7.0-dbg    php7.0-ldap   php7.0-recode  php7.0-dev       php7.0-mbstring   php7.0-snmp       php7.0-enchant    php7.0-mcrypt     php7.0-soap 

    sudo apt-get install php7.0-fpm php7.0-mysql php7.0-opcache php7.0-curl php7.0-mcrypt

    

参考文章
安装扩展

标签: php

添加新评论