centos7如何安装php【指定不同的版本】比如5.6以上版本【及配置nginx】

    技术2022-07-12  71

    CentOS 7使用yum安装PHP5.6:https://www.cnblogs.com/EasonJim/p/9614577.html

     

    安装PHP可能出现的错误:Error: php72w-common conflicts with php-common-5.4.16-45.el7.x86_64

    参考:https://blog.csdn.net/one312/article/details/80716411

    yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof ----skip-broken 这条命令后面接上----skip-broken 则可安装成功

    PHP配置nginx:https://blog.csdn.net/weixin_40096730/article/details/85756541

    Processed: 0.009, SQL: 9