Admin-Ahead Community

Linux => Control Panels => Plesk => Topic started by: Chetan Singh on February 08, 2014, 02:38:55 pm

Title: How to download PHP manually in Plesk!
Post by: Chetan Singh on February 08, 2014, 02:38:55 pm
Hello,

Plesk autoinstaller does not have option to downgrade PHP, so if you want to downgrade PHP then you have to do this manually.  Follow these steps to downgrade PHP from 5.3 to PHP 5.2.17,

1) List all the installed PHP module/RPM via this command,

========================>>>
[root@]# rpm -qa | grep ^php
php-common-5.3.3-14.el6_3.x86_64
php-cli-5.3.3-14.el6_3.x86_64
php-5.3.3-14.el6_3.x86_64
php-gd-5.3.3-14.el6_3.x86_64
php-pdo-5.3.3-14.el6_3.x86_64
php-imap-5.3.3-14.el6_3.x86_64
php-mysql-5.3.3-14.el6_3.x86_64
php-xml-5.3.3-14.el6_3.x86_64
php-mbstring-5.3.3-14.el6_3.x86_64
php5-ioncube-loader-4.0.14-12042719.x86_64
[root@vps-]#
========================>>>

2) check if the packages/RPMs are available in current YUM Repo, if not you can download new "Atomic repo" from here,

========================>>>

wget -q -O - http://www.atomicorp.com/installers/atomic |sh

========================>>>

3) List all the PHP packages:

========================>>>
# yum list php php-common-5.2.17 php-cli-5.2.17 php php-gd-5.2.17 php-pdo-5.2.17 php-imap-5.2.17 php-mysql-5.2.17 php-xml-5.2.17 php-mbstring-5.2.17 php-mcrypt-5.2.17 --exclude=*5.3* --exclude=*i386*
========================>>>

4) Now, you have to remove all the current installed PHP 5.3 RPM via RPM command and install PHP 5.2 via this command.

========================>>>
# yum install php php-common-5.2.17 php-cli-5.2.17 php php-gd-5.2.17 php-pdo-5.2.17 php-imap-5.2.17 php-mysql-5.2.17 php-xml-5.2.17 php-mbstring-5.2.17 php-mcrypt-5.2.17 --exclude=*5.3* --exclude=*i386*
========================>>>

You have successfully downgraded PHP version in your server!

Thank you,