微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

PHP74 Remi软件源安装向导

PHP74 Remi软件源安装向导

仓库设置和PHP安装向导

1

设置方法

  • RHEL 7 provides PHP version 5.4 in its official repository

  • Command to install the EPEL repository configuration package:

    • yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  • Command to install the Remi repository configuration package:

    • yum install https://rpms.remirepo.net/enterprise/remi-release-7.rpm
  • Command to install the yum-utils package (for the yum-config-manager command):

    • yum install yum-utils
  • On RHEL you (probably) need to enable the optional channel for some dependencies.

  • Command to enable:

    • subscription-manager repos --enable=rhel-7-server-optional-rpms
  • You want a single version which means replacing base packages from the distribution

  • Packages have the same name than the base repository, ie PHP-*

  • Some common dependencies are available in remi-safe repository, which is enabled by default

  • PHP version 7.4 packages are available for RHEL 7 in remi-PHP74 repository

  • Command to enable the repository

    yum-config-manager --disable 'remi-PHP*'
    yum-config-manager --enable   remi-PHP74
  • You can check the list of the enabled repositories:

    • yum repolist
  • If the priorities plugin is enabled, ensure remi-PHP74 have higher priority (a lower value) than base and updates

  • Command to upgrade (the repository only provides PHP):

    • yum update
  • Command to install additional packages:

    • yum install PHP-xxx
  • Command to install testing packages:

    • yum --enablerepo=remi-PHP74-test install PHP-xxx
  • Command to check the installed version and available extensions:

    PHP --version
    PHP --modules

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐