php-common issue trying to install php-mbstring

andy.armitage

Registered
Jan 27, 2009
2
0
51
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
 

andy.armitage

Registered
Jan 27, 2009
2
0
51
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.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,216
11
313
Houston, TX
cPanel Access Level
Root Administrator
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.
 

lionic

Registered
Jan 29, 2011
1
0
51
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'.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
38
248
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.