• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Downgrade php from 5.4.x to 5.3.x

LromeraL

New Pleskian
Hi there!

I am trying to make a php downgrade from 5.4.x to 5.3.x because i have some software not supported by 5.4.x version. With a "yum remove php" to remove php to after install 5.3, i have discovered too many dependencies with psa-* packages so i am worried for crashing Plesk Panel.

Is there any way to downgrade php without crashing plesk panel?

Thanks

PD. I am with Plesk 11 and Centos 6
 
hello friend did you find the solution, i update my php accidentally and now i would like to make an downgrade,

thanks
 
hi friend thank you for your fast response,
this is safe?
because is a Plesk with clients, i mean, will not crash the Plesk or other modules?

did you already made this ?

thank you again,
 
Its safe. Just verify the packages before you say 'y'

As you know php has a lot of sub-packages. But likewise if you installed php5-ioncube-loader you don't want to downgrade that.

These are my php modules....

php.x86_64 5.3.19-12.el6.art @atomic
php-cli.x86_64 5.3.19-12.el6.art @atomic
php-common.x86_64 5.3.19-12.el6.art @atomic
php-gd.x86_64 5.3.19-12.el6.art @atomic
php-imap.x86_64 5.3.19-12.el6.art @atomic
php-mbstring.x86_64 5.3.19-12.el6.art @atomic
php-mysql.x86_64 5.3.19-12.el6.art @atomic
php-pdo.x86_64 5.3.19-12.el6.art @atomic
php-xml.x86_64 5.3.19-12.el6.art @atomic
php5-ioncube-loader.x86_64 4.0.14-12042719 @PSA_11_0_9-dist

See on mine....

yum downgrade php*

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Downgrading:
php x86_64 5.3.3-22.el6 base 1.1 M
php-cli x86_64 5.3.3-22.el6 base 2.2 M
php-common x86_64 5.3.3-22.el6 base 524 k
php-gd x86_64 5.3.3-22.el6 base 106 k
php-imap x86_64 5.3.3-22.el6 base 50 k
php-mbstring x86_64 5.3.3-22.el6 base 455 k
php-mysql x86_64 5.3.3-22.el6 base 81 k
php-pdo x86_64 5.3.3-22.el6 base 75 k
php-xml x86_64 5.3.3-22.el6 base 103 k

Transaction Summary
================================================================================
Downgrade 9 Package(s)

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


If its downgrading more, just use --exclude=[package]

Cheers!
 
Hi Friend,

this was printed on my screen (part of):
a lot of "No Match" and in "Version" still php 5.4.x
do you have a light?

No Match for available package: php-tidy-5.3.3-1.el6.x86_64
No Match for available package: php-twig-Twig-1.12.3-1.el6.remi.noarch
No Match for available package: php-voms-admin-0.6.7-1.el6.noarch
No Match for available package: php-when-0.3-2.el6.noarch
No Match for available package: php-when-tests-0.3-2.el6.noarch
No Match for available package: php-xapian-1.2.7-1.el6.x86_64
No Match for available package: php-xcache-3.0.0-2.el6.remi.1.x86_64
No Match for available package: php-xmlrpc-5.3.3-22.el6.x86_64
No Match for available package: php-xmpphp-0.1-0.11.rc2.r77.el6.remi.noarch
No Match for available package: php-yac-0.1.0-0.1.git57fe00d.el6.remi.x86_64
No Match for available package: php-zipstream-0.2.2-1.el6.noarch
No Match for available package: php-zmq-0.6.0-7.20120613git516bd6f.el6.remi.1.x86_64
No Match for available package: php-zts-5.3.3-22.el6.x86_64
No Match for available package: phpMemcachedAdmin-1.2.2-5.svn262.el6.noarch
No Match for available package: phpMyAdmin-3.5.8.1-1.el6.noarch
No Match for available package: phpPgAdmin-5.0.4-1.el6.noarch
No Match for available package: phpldapadmin-1.2.3-1.el6.noarch
No Match for available package: phpwapmail-0.9.4-1.el6.noarch
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:5.4.14-1.el6.remi will be a downgrade
---> Package php.x86_64 0:5.4.15-1.el6.remi will be erased
---> Package php-cli.x86_64 0:5.4.14-1.el6.remi will be a downgrade
---> Package php-cli.x86_64 0:5.4.15-1.el6.remi will be erased
---> Package php-common.x86_64 0:5.4.14-1.el6.remi will be a downgrade
---> Package php-common.x86_64 0:5.4.15-1.el6.remi will be erased
---> Package php-gd.x86_64 0:5.4.14-1.el6.remi will be a downgrade
---> Package php-gd.x86_64 0:5.4.15-1.el6.remi will be erased
---> Package php-imap.x86_64 0:5.4.14-1.el6.remi will be a downgrade
---> Package php-imap.x86_64 0:5.4.15-1.el6.remi will be erased
---> Package php-intl.x86_64 0:5.4.14-1.el6.remi will be a downgrade
---> Package php-intl.x86_64 0:5.4.15-1.el6.remi will be erased
---> Package php-mbstring.x86_64 0:5.4.14-1.el6.remi will be a downgrade
---> Package php-mbstring.x86_64 0:5.4.15-1.el6.remi will be erased
---> Package php-mcrypt.x86_64 0:5.4.14-1.el6.remi will be a downgrade
---> Package php-mcrypt.x86_64 0:5.4.15-1.el6.remi will be erased
---> Package php-mysql.x86_64 0:5.4.14-1.el6.remi will be a downgrade
---> Package php-mysql.x86_64 0:5.4.15-1.el6.remi will be erased
---> Package php-pdo.x86_64 0:5.4.14-1.el6.remi will be a downgrade
---> Package php-pdo.x86_64 0:5.4.15-1.el6.remi will be erased
---> Package php-xml.x86_64 0:5.4.14-1.el6.remi will be a downgrade
---> Package php-xml.x86_64 0:5.4.15-1.el6.remi will be erased
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================
Downgrading:
php x86_64 5.4.14-1.el6.remi remi 2.7 M
php-cli x86_64 5.4.14-1.el6.remi remi 2.6 M
php-common x86_64 5.4.14-1.el6.remi remi 892 k
php-gd x86_64 5.4.14-1.el6.remi remi 140 k
php-imap x86_64 5.4.14-1.el6.remi remi 77 k
php-intl x86_64 5.4.14-1.el6.remi remi 123 k
php-mbstring x86_64 5.4.14-1.el6.remi remi 942 k
php-mcrypt x86_64 5.4.14-1.el6.remi remi 48 k
php-mysql x86_64 5.4.14-1.el6.remi remi 134 k
php-pdo x86_64 5.4.14-1.el6.remi remi 117 k
php-xml x86_64 5.4.14-1.el6.remi remi 168 k

Transaction Summary
====================================================================================================================================
Downgrade 11 Package(s)
 
Last edited:
Your using remi for your php. It did downgrade....

---> Package php.x86_64 0:5.4.14-1.el6.remi will be a downgrade
---> Package php.x86_64 0:5.4.15-1.el6.remi will be erased

It downgraded from 5.4.15-1 to 5.4.14-1

Keep going until you hit 5.3xx Stop at the first 5.3x. I hope remi keeps them back that far. It will throw back to normal centos update versions, but if your got just one php package that only remi has that you use, your in trouble as you will have a dependency that can't be resolved. Then you stick with 5.4 or remove the php specific package stopping the downgrade.

Cheers
 
So regarding your tutorial i suppose to downgrade untill reach the 5.3 and --exclude=[package] for all others packages to just downgrade "phpx86". that's right?

than i run the risk to have some crash because of some dependence between packages?

the packages that was listed "No Match for available..." means that will not be changed.

in this situation, what is you opinion about it?

i am trying this downgrade because an error on mcrypt (cronjob), Plesk support says that don't offer support to me because of this php version,

thank you again man!
 
By using yum to downgrade its safe. It won't break package dependencies. If you exclude a downgrade of a package of the group that has to be downgraded, you get a dependency error and it won't give you the option.

So yes it's safe. It will downgrade. Just see what packages it tells you are being downgraded.
 
Back
Top