Author Topic: install PHP 5.6. on entOS Stream release 9 ?  (Read 526 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
install PHP 5.6. on entOS Stream release 9 ?
« 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.

Offline
*****
Re: install PHP 5.6. on entOS Stream release 9 ?
« Reply #1 on: April 19, 2025, 06:54:40 PM »
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

Offline
*
Re: install PHP 5.6. on entOS Stream release 9 ?
« Reply #2 on: April 19, 2025, 09:02:28 PM »
Please provide me with the installation method.

Offline
*****
Re: install PHP 5.6. on entOS Stream release 9 ?
« Reply #3 on: April 20, 2025, 01:41:37 AM »
Add the 3rd party repository (community version of EPEL) per these instructions:
https://www.simplified.guide/redhat-centos-fedora/repo-raven-install
Then install the PHP 5.6 package (with dependencies):
Code: [Select]
dnf --enablerepo=raven-modular install --assumeyes php56-php-cli(untested by me)

Offline
*****
Re: install PHP 5.6. on entOS Stream release 9 ?
« Reply #4 on: April 20, 2025, 03:21:09 AM »
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.

Code: [Select]
sudo dnf -y install https://pkgs.dyn.su/el9/base/x86_64/raven-release.el9.noarch.rpm
Code: [Select]
dnf config-manager --enable raven-modular
I am curious, let me know if you get a really old version of PHP to work.

Offline
*
Re: install PHP 5.6. on SentOS Stream release 9 ?
« Reply #5 on: April 20, 2025, 06:11:06 AM »
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.

Offline
*****
Re: install PHP 5.6. on entOS Stream release 9 ?
« Reply #6 on: April 20, 2025, 01:57:51 PM »
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

Offline
*****
Re: install PHP 5.6. on entOS Stream release 9 ?
« Reply #7 on: April 22, 2025, 10:55:54 PM »
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.

Offline
*****
Re: install PHP 5.6. on entOS Stream release 9 ?
« Reply #8 on: April 23, 2025, 12:33:14 AM »
Abu_Haron, RHEL proper would be free for you:
https://developers.redhat.com/articles/faqs-no-cost-red-hat-enterprise-linux
Then you wouldn't have to worry about stability on your server.