Showing posts with label RedHat. Show all posts
Showing posts with label RedHat. Show all posts

Installing Php 5.2 on CentOS/Redhat

When it comes to php installation, most of us will use simple yum utility in CentOS or RedHat Linux. But when you would try to install php using yum, you will notice that it will install latest version of php (5.3 or later) binaries.

But most of the time it has happened that Development team has asked me to install older release of php(php v. 5.2). I have spent so much time in downgrade process of php version, but finally I have figured out how to install older release in few minutes. So below process would help you to install php 5.2 in latest release of CentOS.

So before we start, lets first remove all php packages using below command. You may need to run below command 2-3 times to remove all php packages.

Once you run above command, you can check with "rpm -qa | grep php" command if still there is any php package is installed.

Now we need to get webtatic repository and install it. You can use below command to download and install webtatic repository.


Once you are done with installation, you need to fire below command to install php 5.2 in Centos.


Of course you can edit above command to install your desired php library files.

Hope this post would be helpful who wants to install php 5.2 in CentOS.

Upgrade ImageMagick on Red Hat 5.8/ CentOS

Redhat Enterprise Linux 5.8 provides ImageMagick v 6.2.8. But you may require to upgrade it to higher version. I was looking for RPM of ImageMagick for RHEL 5.8 and I found it from ImageMagick Website. Just downloading and Installing RPM will not work, it took so much time to find its dependency packages and install it. So I have shared this post, I hope if you have this requirement, it will solve your purpose.

Operating System: Red Hat Enterprise Linux 5.8
Architecture: x86_64
ImageMagick: 6.2.8 (new version will be 6.8.5-8)


  • To check current version of ImageMagick use below command.


  • Download ImageMagick RPM using below link.
http://www.imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-6.8.5-10.x86_64.rpm

Now when you will try to install it on RHEL 5.8, you will get below error message for dependency packages.

It was not easy to find dependency packages for ImageMagick, I have gone through different commands, googleing, etc. So finally I have all those dependency RPMs. You can download them using given below links.


ImageMagick-6.8.5-8.x86_64.rpm
OpenEXR-1.4.0a-5.el5.x86_64.rpm
fftw3-3.2.2-3.el5.x86_64.rpm
fltk-1.1.9-4.el5.i386.rpm
fltk-1.1.9-4.el5.x86_64.rpm
jasper-libs-1.900.1-14.el5.x86_64.rpm
libwebp4-0.3.0-31.2.x86_64.rpm
xz-libs-4.999.9-0.3.beta.20091007git.el5.x86_64.rpm
libtool-ltdl-1.5.22-7.el5_4.x86_64.rpm