Activities

May 2013
M T W T F S S
« Apr   Jun »
 12345
6789101112
13141516171819
20212223242526
2728293031  

Plesk 8x :- Upgrading php 5.1.6 to php 5.2

One of my client had a aged Plesk Linux server ( CentoS 5 Base) which is running with old packages of PHP. I’ve provided Plesk admin control panel and identified that it is using Plesk 8.1 Version which does not have enough features listed in once after you Googled for Php up-gradation and Plesk site documentation was not helpful since this package is OUTDATED.

Finally I found a thread from Internet which stating that Plesk does not do the system package up-gradation like WHM/Cpanel does. So this can be done through simply package upgradation.

I uses atomic repository as my choice. you can use SourceForge or rpmbone if you wish.

Solution

Default yum php upgrdation will update the PHP version to 5.3 and I would prefer 5.2 installation here. So I’m adding the line “exclude=php-*5.3*” in /etc/yum.conf file.

[root@storage ~]# wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh
[root@storage ~]#echo "exclude=php-*5.3*" >> /etc/yum.conf
[root@storage ~]#pwd
/etc/yum.repos.d
[root@yum.repos.d]# ls
atomic.repo  CentOS-Base.repo  CentOS-Base.repo.rpmnew  CentOS-Media.repo
[root@storage yum.repos.d]#
[root@storage ~]#yum install php
Dependencies Resolved
=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Updating:
 php                     x86_64     5.2.17-1.el5.art  atomic            1.3 M
 php-cli                 x86_64     5.2.17-1.el5.art  atomic            2.4 M
 php-common              x86_64     5.2.17-1.el5.art  atomic            282 k
Installing for dependencies:
 libXaw                  x86_64     1.0.2-8.1        base              329 k
 libXmu                  x86_64     1.0.2-5          base               63 k
 t1lib                   x86_64     5.1.2-2.el5.art  atomic            208 k
Updating for dependencies:
 php-devel               x86_64     5.2.17-1.el5.art  atomic            582 k
 php-gd                  x86_64     5.2.17-1.el5.art  atomic            124 k
 php-imap                x86_64     5.2.17-1.el5.art  atomic             52 k
 php-mbstring            x86_64     5.2.17-1.el5.art  atomic            1.1 M
 php-mysql               x86_64     5.2.17-1.el5.art  atomic             86 k
 php-pdo                 x86_64     5.2.17-1.el5.art  atomic             66 k
 php-xml                 x86_64     5.2.17-1.el5.art  atomic            118 k

Transaction Summary
=============================================================================
Install      3 Package(s)
Update      10 Package(s)
Remove       0 Package(s)

Total download size: 6.6 M
Is this ok [y/N]: y

[root@storage ~]# php -v
PHP 5.2.17 (cli) (built: Jan  7 2011 10:39:29)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
[root@storage ~]# service httpd restart

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>