S
S
Shurik2021-01-23 22:00:56
CentOS
Shurik, 2021-01-23 22:00:56

How to downgrade php version from 7.4 to 5.4?

There is centos 7, on it the apache. Previously, there was version 5.4, then I installed 7.4. How to return 5.4 back?
I tried to change the enabled parameter from 0 to 1 in 5.4 in /etc/yum.repos.d/* in the corresponding file versions and vice versa in 7.4, after that I rebooted apache, but the version remained the same as 7.4.
It turned out to be easier to upgrade than to downgrade.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
V
Viktor Taran, 2021-01-23
@svisch

https://superuser.com/questions/1405500/downgrade-...

S
Sanes, 2021-01-23
@Sanes

Put next to the required version.

A
Alexander Karabanov, 2021-01-23
@karabanov

You can wrap PHP of any version in docker.
You can install another version next to it by native means - as advised above, for example, for Debian compatible distributions https://deb.sury.org/ it should be there, but I did not check if PHP5.4 is there

D
Denis, 2021-01-23
@Rentable

Here is how it is written

A
Alexey Dmitriev, 2021-01-30
@SignFinder

After changing the settings of the yum repositories, you need to remove php using yum remove php
and reinstall it.
I hope you have the remi repository connected

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question