代码之家  ›  专栏  ›  技术社区  ›  gabriel119435

为什么Oracle Linux无法识别php包?

  •  0
  • gabriel119435  · 技术社区  · 7 年前

    我查过了 here 使用 php -v php -i 应该显示我的php版本。虽然,当我键入这些命令时,我得到了 -bash: php: command not found . 当我打字时 rpm -qa | grep php 我明白了

    php71w-bcmath-7.1.11-1.w7.x86_64
    php71w-pdo-7.1.11-1.w7.x86_64
    php71w-ldap-7.1.11-1.w7.x86_64
    mod_php71w-7.1.11-1.w7.x86_64
    php71w-mbstring-7.1.11-1.w7.x86_64
    php71w-xml-7.1.11-1.w7.x86_64
    php71w-mysql-7.1.11-1.w7.x86_64
    php71w-gd-7.1.11-1.w7.x86_64
    php71w-common-7.1.11-1.w7.x86_64
    

    yum provides php | grep php71w (显示所有具有 php 命令和has php71w 在它的名字)我得到

    mod_php71w-7.1.8-2.w7.x86_64 : PHP module for the Apache HTTP Server
    mod_php71w-7.1.9-1.w7.x86_64 : PHP module for the Apache HTTP Server
    mod_php71w-7.1.9-2.w7.x86_64 : PHP module for the Apache HTTP Server
    mod_php71w-7.1.10-1.w7.x86_64 : PHP module for the Apache HTTP Server
    mod_php71w-7.1.11-1.w7.x86_64 : PHP module for the Apache HTTP Server
    mod_php71w-7.1.11-1.w7.x86_64 : PHP module for the Apache HTTP Server
    

    我错过了什么?如果 mod_php71w-7.1.11-1.w7.x86_64 : PHP module for the Apache HTTP Server 有php命令,并且已安装,为什么 php-v 未被识别?

    1 回复  |  直到 7 年前
        1
  •  3
  •   Wayne Vosberg    7 年前