Results 1 to 5 of 5

Thread: php-common issue trying to install php-mbstring

  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    2

    Default php-common issue trying to install php-mbstring

    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. #2
    Registered User
    Join Date
    Jan 2009
    Posts
    2

    Default 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. #3
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by andy.armitage View Post
    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
    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. #4
    Registered User
    Join Date
    Jan 2011
    Posts
    1

    Default Re: php-common issue trying to install php-mbstring

    I posted this issue on another forum.
    Here's the approximate reply i got.

    That error is just a version issue on the server. The yum package is for PHP 5.1.xx but what version you have is 5.3.3. I found RPMs for php-mbstring 5.3.2 and 5.3.4 and 5.3.5, but strangely the 5.3.3 one is missing. So I guess you should upgrade PHP to 5.3.5 and then install php-mbstring 5.3.5 as well.
    Follow up,

    Okay, PHP has been upgraded and php-mbstring is installed. It had to be done from the command line, with the command:
    yum --enablerepo=remi install php-mbstring
    ...because the 5.3.x packages are in a repository called 'remi'.

  5. #5
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: php-common issue trying to install php-mbstring

    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.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads

  1. How do you add PHP mbstring extention with cPanel
    By Vince778 in forum Optimization
    Replies: 1
    Last Post: 01-01-2011, 01:30 AM
  2. Install mbstring in PHP
    By bita.alipour in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 06-23-2010, 07:27 AM
  3. Recompile PHP With mbstring
    By tcheck in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 11-08-2007, 03:59 AM
  4. Install PHP Zip module and zziplib - Compile PHP individually
    By Arvand in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 10-16-2003, 06:04 PM
  5. Help: Comping php without mbstring
    By tmellon in forum cPanel & WHM Discussions
    Replies: 12
    Last Post: 01-08-2003, 11:34 PM