Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Since I upgraded from 5.0 version to 5.5 I am getting the following error on my PHP page.

None of the supported PHP extensions (MySQLi, MySQL, PDO_MySQL) are available.

When I tried to install php-mysql package, I am getting the following error.

# yum install php-mysql --skip-broken

Packages skipped because of dependency problems:
    mysql-5.0.77-4.el5_4.2.x86_64 from base
    php-mysql-5.1.6-27.el5.x86_64 from base

This was working as expected when I had 5.0 version of Mysql. How do I upgrade the php extension?

share|improve this question
rpm -qa --qf "%{n}-%{v}-%{r}.%{arch}\n"| grep php? – quanta Aug 16 '11 at 6:32
# php-common-5.3.3-14.el6_3.x86_64 # php-cli-5.3.3-14.el6_3.x86_64 # php-5.3.3-14.el6_3.x86_64 – shantanuo Jul 29 '12 at 12:46
These are different from your original question (.el6 vs .el5). Moreover, I don't see the php-mysql is installed. Please show us the full output of yum install php-mysql.x86_64 and yum repolist? – quanta Jul 29 '12 at 13:10
up vote 0 down vote accepted

After installing mysql shared compact library, this was working as expected

rpm -ihv MySQL-shared-compat-5.5.24-1.el6.x86_64.rpm
yum install php-mysql --skip-broken
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.