美文网首页
ubuntu下升级apache的php到/7.2

ubuntu下升级apache的php到/7.2

作者: JayneJing | 来源:发表于2019-02-15 14:14 被阅读0次

    一、php 升级到7.2

    $ add-apt-repository ppa:ondrej/php
    $ apt-get update
    $ apt-get upgrade php
    

    级后安装对应的扩展

    $ apt-get install php-mbstring
    $ apt-get install php-gd
    $ apt-get install php-dom
    $ apt-get install php-mysql
    $ apt-get install php-curl
    

    二、升级apache的php到7.2

    $ a2dismod 现有的php
    $ a2enmod php7.2
    $ /etc/init.d/apache2 restart
    

    相关文章

      网友评论

          本文标题:ubuntu下升级apache的php到/7.2

          本文链接:https://www.haomeiwen.com/subject/dawpeqtx.html