PHP 7.2.24 needed on Rocky linux 10 to use my existing codes

Hi, I am new with Rocky Linux, just installed version 10, I am trying to migrate Centos 8 to Rocky linux 10.

my problem is PHP 7.2.24 , which is working well in my old setup, and don’t want to modify my entire code, I need to install PHP 7.2.24 on Rocky linux 10 , and I am not getting this.

pls help me to setup PHP 7.2.24, I already remove php 8 but not getting solution. pls guide.

You cannot. 7.2.X is end of life, also. If you must use an older, end of life version of PHP, stick with Rocky Linux 8.

I have already ready/installed with entire setup, suddenly this php issue arises, I hope some solution should be there to use older php version.

You have three options:

  • Use Rocky Linux 8
  • Update your code to use the current PHP version offered by Rocky Linux 10 (currently 8.3)
  • Use remi, but update your code to use 7.4 as 7.2 has been retired (see this page).

Please see this page for supported PHP versions.

already tried

but not succeeded.

Can I use docker to resolve this issue ?

so, what is solution for my problem, or should I switch to older version of linux.

The proper sollution is to set up the app in a test environment that is running the latest official rocky php, and then careully check all warnings and errors, fixing them as you go, then simply copy the app back to live.

Running some half backed conainer that’s full of spyware, and has an old version of php might also appear to work, but is that really a sustainable solution?

To summarize

  • EL-8 provides PHP 7.4 and 8.2
  • EL-9 provides PHP 8.0, 8.1, 8.2 and 8.3
  • EL-10 provides PHP 8.3

My repository provides

  • PHP 5.6 to 7.3 with only critical security fixes and only for EL-8
  • PHP 7.4 to 8.0 with all security fixes
  • PHP 8.1 to 8.4 (and 8.5), the upstream supported versiond

Notice: Versions below 8.1 are not supported (by PHP project), especially with modern OpenSSL 3

So using something older than 7.4 is not serious

but not succeeded.

What does that mean ? For my repo, see the Wizard

Can I use docker to resolve this issue ?

Yes, you can read a very old HowTo

In all cases, running anything older than 7.4 is not serious. You must update your app.

ok, thanks for suggestions , I will try to modify accordingly new php.

Hi, I don’t find /etc/sysconfig/network-scripts

I need to use this for routing purpose.

I am new with Rocky linux 10

You can/should/must configure routing with NetworkManager. For example with the nmcli tool.

(Actually, firewall rules are involved in routing and that is with FirewallD or nftables services.
The FirewallD can enable packet forwarding function in kernel in some cases. If not, then sysctl.)

thanks for reply.

[root@localhost system-connections]# ls
enp1s0.nmconnection enp3s0.nmconnection
[root@localhost system-connections]# pwd
/etc/NetworkManager/system-connections

First, “how to configure network in Rocky 10” is a separate topic from “PHP”. It should be in a separate thread.

Second, do not look at / modify those files (directly). Do use the NetworkManager UI (nmcli, nmtui, GUI widget) or Ansible playbook to change the configuration.

OK, I will , thank you.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.