The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

php-common issue trying to install php-mbstring

Discussion in 'General Discussion' started by andy.armitage, Jan 27, 2009.

  1. andy.armitage

    andy.armitage Registered

    Joined:
    Jan 27, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I try to install mbstring like this (or using the whm rpm installer):

    [~]# yum install php-mbstring
    Loaded plugins: rhnplugin, security
    Excluding Packages in global exclude list
    Finished
    Setting up Install Process
    Parsing package install arguments
    Resolving Dependencies
    --> Running transaction check
    ---> Package php-mbstring.i386 0:5.1.6-23.el5 set to be updated
    --> Processing Dependency: php-common = 5.1.6-23.el5 for package: php-mbstring
    --> Finished Dependency Resolution
    php-mbstring-5.1.6-23.el5.i386 from rhel-i386-server-5 has depsolving problems
    --> Missing Dependency: php-common = 5.1.6-23.el5 is needed by package php-mbstring-5.1.6-23.el5.i386 (rhel-i386-server-5)
    Error: Missing Dependency: php-common = 5.1.6-23.el5 is needed by package php-mbstring-5.1.6-23.el5.i386 (rhel-i386-server-5)


    and then if you try to resolve the dependency its already installed:


    [~]# yum install php-common
    Loaded plugins: rhnplugin, security
    Excluding Packages in global exclude list
    Finished
    Setting up Install Process
    Parsing package install arguments
    Package matching php-common-5.1.6-23.el5.i386 already installed. Checking for update.
    Nothing to do


    I notice that the php-common that is installed has .i386 on the end and that could be my issue, but i'm not sure how to resolve that. also, I already tried using the force option.


    any thoughts?

    thanks,
    andy
     
  2. andy.armitage

    andy.armitage Registered

    Joined:
    Jan 27, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Answer

    Hello, In case anyone is a bit slow like me ;)

    You have to recompile apache using the easy config...check off mbstring in the 'exhaustive options' list for php.
     
  3. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If I was trying to incorporate mbstring into my PHP install, I would just go to WHM -> Software -> EasyApache and in Step 5 click on Exhaustive Options List and check the box for Mbstring and proceed with the build process. It's much simpler than trying to do this manually.
     
  4. lionic

    lionic Registered

    Joined:
    Jan 29, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I posted this issue on another forum.
    Here's the approximate reply i got.

    Follow up,

     
  5. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    These forum replies in your last post aren't taking cPanel into account, which uses EasyApache to handle PHP versions and modules.

    The rpm system for PHP and modules can end up causing a broken PHP system on the machine, since it will be in direct conflict with the cPanel-built PHP and PHP modules done via EasyApache. As DavidG already suggested, this would be done in EasyApache by selecting mbstring rather than via yum.
     
Loading...

Share This Page