美文网首页
CentOS 7 安装php5.6

CentOS 7 安装php5.6

作者: 程序员的自我修养 | 来源:发表于2020-05-27 08:52 被阅读0次

CentOS 7 yum 安装php5.6

配置yum源

追加CentOS 6.5的epel及remi源。

# rpm -Uvhhttp://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm

# rpm -Uvhhttp://rpms.famillecollet.com/enterprise/remi-release-6.rpm

以下是CentOS 7.0的源。

# yum install epel-release

# rpm -ivhhttp://rpms.famillecollet.com/enterprise/remi-release-7.rpm

使用yum list命令查看可安装的包(Packege)。

# yum list --enablerepo=remi --enablerepo=remi-php56 | grep php

安装PHP5.6

yum源配置好了,下一步就安装PHP5.6。

# 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

用PHP命令查看版本。

# php --version

相关文章

  • CentOS 7 安装php5.6

    CentOS 7 yum 安装php5.6 配置yum源 追加CentOS 6.5的epel及remi源。 # r...

  • PHP安装配置

    CentOS7安装php5.6 检查当前安装的PHP包yum list installed | grep phpy...

  • centos7 安装php5.6版本

    centos7默认自带的php5.4版本,因为系统需要,需要安装php5.6版本 补充安装nginx

  • RHEL7.3搭建LAMP安装ownCloud

    Time:18.03.30 配置Yum源 配置网易云CentOS源 [使用本地源在安装php5.6或7版本时会出现...

  • Centos7 安装PHP5.6

    1. 配置yum源 追加CentOS 6.5的epel及remi源。 # rpm -Uvh http://ftp....

  • 搭建Lamp之安装PHP5.6

    笔者环境:CentOS6.9,不知为毛,笔者的centOS6.9直接安装php5.6后,能查到版本号,但是访问PH...

  • 程序日记2018-05-03

    centos7 安装nginx和php7 centos7 安装nginx和php7 centos7系统安装php7...

  • yum安装nginx,mysql,php

    centos7 一、安装nginx 安装mysql(centos7) 安装php centos8 安装php74 ...

  • 2018-04-19

    Centos 7 安装 tomcat7, jdk,mysql,zookeeper Centos 安装jdk 安装...

  • Centos安装php5.6

    1、追加epel及remi源 centos 6.5 centos 7.0 2、安装 3、验证

网友评论

      本文标题:CentOS 7 安装php5.6

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