Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

This morning I used yum upgrade to upgrade from php 5.1.6 to 5.3+ I then went to one of my sites and found that it had crashed, error establishing database connection.

I found through this question install php on linux from 1and1 VPS that this is because centos5 is outdated, and I was offered the alternative of doing it using individual packages by MadHatter.

I have just tried that solution and then checked my php version, and it hadn't upgraded. I have just learned that this is because my server software is Virtuozzo/Plesk and that these have a version of php of their own, seperate to that of the live sites, it turns out that I was working on the server's version of php with Yum.

Is there any way I can change yum to work on my version of php, or any other suggestions. My phpinfo() is at

I am tearing out my hair, so any help gratefully received.

share|improve this question

Problem is using PECL module (you need to upgrade other PHP modules as well), Try to upgrade/check version for php-mysql and php-mysqli , or any other module that you use on the web site.

share|improve this answer

Seems like you are still running php 5.1.6:) Plesk will use system php installation and hence the system php upgrade via yum is sufficient. I seriously doubt that your system contains both php installed and this is causing you the trouble. confirm this by

php -qa |grep php-

In either case, I would suggest to remove the current php installation completely (after noting down the modules) and install php5.3 then from the default centOS repo.

php -qa | php- >> /root/myphp516.txt
rpm -e --nodeps `php -qa | php-`
yum install php53

This will install php 5. 3 only, for additional modules include them as well in the yum install with php53 prefix (refer /root/myphp516.txt for your old php modules list).

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.