2014-04-25 14:03
浏览 15


I am on centos 6.5 and when I install do yum install php-common it goes ahead and installs some packages, but php is still not installed. And, when I want to install php directly it is says php-common is causing conflict and does install the php module or even php-cli independently.

What is php-common used for?

图片转代码服务由CSDN问答提供 功能建议

我在centos 6.5上,当我安装do yum install php-common 时,它会去 提前并安装一些软件包,但仍未安装php。 并且,当我想直接安装php时,它说php-common导致冲突并且确实安装了php模块甚至 php-cli


  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • dtcwehta624485
    dtcwehta624485 2014-04-25 14:14

    To answer the question, here's what's in php-common on Redhat Enterprise 6.4 version of the package:

    [marc@foo ~]$ rpm -ql php-common

    As you can so, it basically contains the .so modules for curl, zip, fileinfo, json, and phar, plus license/support files.

    点赞 评论
  • doubi9615
    doubi9615 2019-05-05 22:10

    What is package php-common and what does it ?

    Its is a php package that includes common files for PHP packages, this package contains common utilities shared among all packaged PHP versions. The php-common package contains files used by both the php package and the php-cli package.

     Package: php-common  

    The php-common package provides followings commands to manage PHP modules:

       phpenmod – Used to enable modules in PHP
       phpdismod – Used to disable modules in PHP
       phpquery – Used to view status of modules of PHP

    Use phpenmod command followed by module name to enable specific PHP module on your system:

    ### Syntax
    $phpenmod MODULE_NAME

    You can also define the PHP version using -v switch to enable specific modules:

    ### Syntax
    $phpenmod -v <PHP VERSION> <MODULE NAME>

    You can also disable any un-necessary PHP modules from your system using phpdismod command:

    $phpdismod mbstring
    点赞 评论