Control Web Panel
WebPanel => PHP => Topic started by: Abu_Haron on April 19, 2025, 01:18:19 PM
-
Good evening....
How are you...?
I have a full server running on the system CentOS Stream release 9 .
I need to install PHP 5.6. I have my own software that requires this version.
-
AlmaLinux 9 is more recommended for server use than a beta-quality OS such as CentOS Stream. That said, you can install 5.6 via a 3rd party repository (Raven Modular):
https://rhel.pkgs.org/9/raven-modular-x86_64/php56-php-cli-5.6.40-38.el9.x86_64.rpm.html (https://rhel.pkgs.org/9/raven-modular-x86_64/php56-php-cli-5.6.40-38.el9.x86_64.rpm.html)
-
Please provide me with the installation method.
-
Add the 3rd party repository (community version of EPEL) per these instructions:
https://www.simplified.guide/redhat-centos-fedora/repo-raven-install (https://www.simplified.guide/redhat-centos-fedora/repo-raven-install)
Then install the PHP 5.6 package (with dependencies):
dnf --enablerepo=raven-modular install --assumeyes php56-php-cli
(untested by me)
-
1. CentOS Stream is a beta OS, not for production.
The recommended version are AlmaLinux 8 or 9.
2.Officially the lowest PHP version you go with EL9 and CWP is 7.4.33
If you need a lower PHP, you will need to install EL8.
I found this, but whatever server I try it on, it says Cloudflare has blocked me.
sudo dnf -y install https://pkgs.dyn.su/el9/base/x86_64/raven-release.el9.noarch.rpm
dnf config-manager --enable raven-modular
I am curious, let me know if you get a really old version of PHP to work.
-
The codes didn't work. They're banned.
The reason I chose SentOS Stream is because it's the only system that works on my server without problems and stably.
-
Sorry, without access to a CentOS 9 Stream system, I can't fully test the procedure. I can only look up a possible solution, the route that I would pursue if I were in your position. Can you confirm that you added the Raven repository according to this linked guide?
https://www.simplified.guide/redhat-centos-fedora/repo-raven-install (https://www.simplified.guide/redhat-centos-fedora/repo-raven-install)
-
If Red Hat Stream (beta) works on your system, then so would Fedora (alpha) - Might be missing some drivers, being alpha and RHEL (Release).
So then AlmaLinux would work as well.
I have AlmaLinux working on ARM and so REALLY old HP hardware (AMD E-Series & Thin Clients) not to mention I have my laptop dual booting into Windows 11 & AlmaLinux 9.
If you want to run a beta OS, that is your choice.
But that also comes with little to no support.
AlmaLinux 10 is in the alpha stages, and allot of things don't work either, and isn't expected to.
-
Abu_Haron, RHEL proper would be free for you:
https://developers.redhat.com/articles/faqs-no-cost-red-hat-enterprise-linux (https://developers.redhat.com/articles/faqs-no-cost-red-hat-enterprise-linux)
Then you wouldn't have to worry about stability on your server.