Upgrade PHP version with Plesk Control Panel:-
In order to upgrade PHP 5 on a Linux server with plesk to the latest version perform the following steps: You need to be logged in server as root user to do this.
STEP 1:- Check the PHP version before upgrading by using below command.
[root@localhost~]# php -v
PHP 5.1.6 (cli) (built: Nov 29 2010 16:47:37)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
with the ionCube PHP Loader v3.1.16, Copyright (c) 2002-2006, by ionCube Ltd.
STEP 2:- Run the below command.
[root@localhost~]# wget -q -O - http://atomicorp.com/installers/atomic.sh | sh
In above script all php packages are available. It contains the stable tree of ART packages.
STEP 3:- Then upgrade or update the php version.
[root@localhost~]# yum update php
OR
[root@localhost~]# yum upgrade php
STEP 4:- Confirm the PHP version is upgraded successfully or not by using below command.
[root@localhost~]# php -v
PHP 5.3.3 (cli) (built: Mar 30 2011 13:51:54)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with the ionCube PHP Loader v4.0.10, Copyright (c) 2002-2011, by ionCube Ltd.
STEP 5:- Restart the Web service or Plesk Control Panel service.
[root@localhost~]# service httpd restart
OR
[root@localhost~]# service psa restart
No comments:
Post a Comment