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

**URL:** <https://forums.rockylinux.org/t/php-7-2-24-needed-on-rocky-linux-10-to-use-my-existing-codes/19342>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-10\
**Created:** [August 7, 2025, 3:30pm UTC](https://forums.rockylinux.org/t/php-7-2-24-needed-on-rocky-linux-10-to-use-my-existing-codes/19342 "2025-08-07T15:30:09Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![helpinghandindia](https://avatars.discourse-cdn.com/v4/letter/h/439d5e/32.png) [@helpinghandindia](https://forums.rockylinux.org/u/helpinghandindia)\
**Post date:** [August 7, 2025, 3:30pm UTC](https://forums.rockylinux.org/t/php-7-2-24-needed-on-rocky-linux-10-to-use-my-existing-codes/19342/1 "2025-08-07T15:30:09Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![label](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@label](https://forums.rockylinux.org/u/label)\
**Post date:** [August 7, 2025, 3:38pm UTC](https://forums.rockylinux.org/t/php-7-2-24-needed-on-rocky-linux-10-to-use-my-existing-codes/19342/2 "2025-08-07T15:38:51Z")

</div>

> [@helpinghandindia](#):
>
> 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.

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.

---

<div class="post-metadata">

**Author:** ![helpinghandindia](https://avatars.discourse-cdn.com/v4/letter/h/439d5e/32.png) [@helpinghandindia](https://forums.rockylinux.org/u/helpinghandindia)\
**Post date:** [August 7, 2025, 3:43pm UTC](https://forums.rockylinux.org/t/php-7-2-24-needed-on-rocky-linux-10-to-use-my-existing-codes/19342/3 "2025-08-07T15:43:22Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![label](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@label](https://forums.rockylinux.org/u/label)\
**Post date:** [August 7, 2025, 3:50pm UTC](https://forums.rockylinux.org/t/php-7-2-24-needed-on-rocky-linux-10-to-use-my-existing-codes/19342/4 "2025-08-07T15:50:58Z")

</div>

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](https://blog.remirepo.net/post/2020/12/01/PHP-7.2-is-dead)).

Please see [this page](https://www.php.net/supported-versions.php) for supported PHP versions.

---

<div class="post-metadata">

**Author:** ![helpinghandindia](https://avatars.discourse-cdn.com/v4/letter/h/439d5e/32.png) [@helpinghandindia](https://forums.rockylinux.org/u/helpinghandindia)\
**Post date:** [August 7, 2025, 3:54pm UTC](https://forums.rockylinux.org/t/php-7-2-24-needed-on-rocky-linux-10-to-use-my-existing-codes/19342/5 "2025-08-07T15:54:08Z")

</div>

already tried

> [@label](#):
>
> - Use remi, but update your code to use 7.4 as 7.2 has been retired (see [this page](https://blog.remirepo.net/post/2020/12/01/PHP-7.2-is-dead)).

but not succeeded.

Can I use docker to resolve this issue ?

---

<div class="post-metadata">

**Author:** ![helpinghandindia](https://avatars.discourse-cdn.com/v4/letter/h/439d5e/32.png) [@helpinghandindia](https://forums.rockylinux.org/u/helpinghandindia)\
**Post date:** [August 8, 2025, 4:22am UTC](https://forums.rockylinux.org/t/php-7-2-24-needed-on-rocky-linux-10-to-use-my-existing-codes/19342/6 "2025-08-08T04:22:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gerry666uk](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@gerry666uk](https://forums.rockylinux.org/u/gerry666uk)\
**Post date:** [August 8, 2025, 8:25am UTC](https://forums.rockylinux.org/t/php-7-2-24-needed-on-rocky-linux-10-to-use-my-existing-codes/19342/7 "2025-08-08T08:25:42Z")

</div>

> [@helpinghandindia](#):
>
> so, what is solution for my problem

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?

---

<div class="post-metadata">

**Author:** ![remi](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/remi/32/1425_2.png) [@remi](https://forums.rockylinux.org/u/remi)\
**Post date:** [August 9, 2025, 5:23am UTC](https://forums.rockylinux.org/t/php-7-2-24-needed-on-rocky-linux-10-to-use-my-existing-codes/19342/8 "2025-08-09T05:23:20Z")

</div>

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](https://rpms.remirepo.net/wizard/)

> Can I use docker to resolve this issue ?

Yes, you can read a very old [HowTo](https://developers.redhat.com/blog/2014/12/29/running-php-fpm-in-docker)

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

---

<div class="post-metadata">

**Author:** ![helpinghandindia](https://avatars.discourse-cdn.com/v4/letter/h/439d5e/32.png) [@helpinghandindia](https://forums.rockylinux.org/u/helpinghandindia)\
**Post date:** [August 9, 2025, 9:30am UTC](https://forums.rockylinux.org/t/php-7-2-24-needed-on-rocky-linux-10-to-use-my-existing-codes/19342/9 "2025-08-09T09:30:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![helpinghandindia](https://avatars.discourse-cdn.com/v4/letter/h/439d5e/32.png) [@helpinghandindia](https://forums.rockylinux.org/u/helpinghandindia)\
**Post date:** [August 10, 2025, 4:25pm UTC](https://forums.rockylinux.org/t/php-7-2-24-needed-on-rocky-linux-10-to-use-my-existing-codes/19342/10 "2025-08-10T16:25:56Z")

</div>

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

I need to use this for routing purpose.

I am new with Rocky linux 10

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [August 10, 2025, 9:34pm UTC](https://forums.rockylinux.org/t/php-7-2-24-needed-on-rocky-linux-10-to-use-my-existing-codes/19342/11 "2025-08-10T21:34:11Z")

</div>

> [@helpinghandindia](#):
>
> I need to use this for routing purpose.

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.)

---

<div class="post-metadata">

**Author:** ![helpinghandindia](https://avatars.discourse-cdn.com/v4/letter/h/439d5e/32.png) [@helpinghandindia](https://forums.rockylinux.org/u/helpinghandindia)\
**Post date:** [August 11, 2025, 5:51am UTC](https://forums.rockylinux.org/t/php-7-2-24-needed-on-rocky-linux-10-to-use-my-existing-codes/19342/12 "2025-08-11T05:51:37Z")

</div>

thanks for reply.

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

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [August 11, 2025, 6:42am UTC](https://forums.rockylinux.org/t/php-7-2-24-needed-on-rocky-linux-10-to-use-my-existing-codes/19342/13 "2025-08-11T06:42:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![helpinghandindia](https://avatars.discourse-cdn.com/v4/letter/h/439d5e/32.png) [@helpinghandindia](https://forums.rockylinux.org/u/helpinghandindia)\
**Post date:** [August 11, 2025, 7:21am UTC](https://forums.rockylinux.org/t/php-7-2-24-needed-on-rocky-linux-10-to-use-my-existing-codes/19342/14 "2025-08-11T07:21:23Z")

</div>

OK, I will , thank you.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [October 10, 2025, 7:22am UTC](https://forums.rockylinux.org/t/php-7-2-24-needed-on-rocky-linux-10-to-use-my-existing-codes/19342/15 "2025-10-10T07:22:03Z")

</div>

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