Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I updated my PHP from 5.1 to 5.2 a few months ago. Since then I noticed I don't have mcrypt. I tried everything I could too install it. Yum install...added to /etc/php.d/mcrypt.so etc. but nothing worked.

Someone suggeste I do yum update. Doing this has now got rid of json. phpinfo now says --disable-json.

This is what I currently have loaded:

Installed Packages php.x86_64 5.2.10-1.el5.centos installed php-cli.x86_64 5.2.10-1.el5.centos installed php-common.x86_64 5.1.6-39.el5_8 installed php-gd.x86_64 5.2.10-1.el5.centos installed php-imap.x86_64 5.2.10-1.el5.centos installed php-mbstring.x86_64 5.2.10-1.el5.centos installed php-mysql.x86_64 5.2.10-1.el5.centos installed php-pdo.x86_64 5.2.10-1.el5.centos installed php-xml.x86_64 5.2.10-1.el5.centos installed php5-ioncube-loader.x86_64 3.1-07051711 installed

I tried to use pecl to install json but had to install pecl first and using pecl now says phpize does not exist.

I am a little apprehensive about trying to rebuild PHP as I am actually only a programmer and know nothing about servers.

The server company said I should upgrade plesk and then upgrade to PHP 5.3 which should fix it. I am also not sure how to do this and am worried that I will lose my databases/ websites, one of which is used every day by british athletes so down time must be minimal.

Your help would be much appreciated. If this needs an engineer then if you could point me in the right direction to hire one that would be great.

share|improve this question
Apparently there is a security issue with php-common 5.2 so they have removed it from the repository. This causes mismatch errors when trying to install other modules. The fix for this is to upgrade to 5.3. if I do this will I lose any of my plesk data as my server company suggested I update my plesk panel first. Can I do this without updating plesk? –  steve graham Nov 20 '12 at 11:10

1 Answer 1

You can сhoose to install PHP 5.3 in Tools & Settings > Updates & Upgrades. It shall take PHP 5.3 from CentOS 5 updates. No data or configuration should be ever broken/lost.

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.