Answer the question
In order to leave comments, you need to log in
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
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
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 questionAsk a Question
731 491 924 answers to any question