# How does php 8.0 support openssl 3 in rocky linux 9

**URL:** <https://forums.rockylinux.org/t/how-does-php-8-0-support-openssl-3-in-rocky-linux-9/16459>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-9\
**Created:** [November 12, 2024, 1:45am UTC](https://forums.rockylinux.org/t/how-does-php-8-0-support-openssl-3-in-rocky-linux-9/16459 "2024-11-12T01:45:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![linxiuzhang](https://avatars.discourse-cdn.com/v4/letter/l/3bc359/32.png) [@linxiuzhang](https://forums.rockylinux.org/u/linxiuzhang)\
**Post date:** [November 12, 2024, 1:45am UTC](https://forums.rockylinux.org/t/how-does-php-8-0-support-openssl-3-in-rocky-linux-9/16459/1 "2024-11-12T01:45:48Z")

</div>

i use yum install php, the version is 8.0.30.and it has openssl module.and i type openssl version it show 3.0. My question is php under 8.1 are not compatible with OpenSSL3.I just wonder how rocky did.Change the php source code? thanks

---

<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:** [November 12, 2024, 5:17am UTC](https://forums.rockylinux.org/t/how-does-php-8-0-support-openssl-3-in-rocky-linux-9/16459/2 "2024-11-12T05:17:40Z")

</div>

Hello, welcome to the forums.

The RPM sources for php can be found [here](https://git.rockylinux.org/staging/rpms/php). Select the branch you wish to see. For example, the `r9` branch is specifically for php 8.0.30, the non-module version of php in Rocky Linux 9.

If you look at the [spec file](https://git.rockylinux.org/staging/rpms/php/-/blob/r9/SPECS/php.spec) you’ll find various “Patch” lines. For this php version we ship, there are a lot of patches applied to the source during the build. The patch that allows php 8.0 to work with openssl 3 is `Patch50: php-8.0.21-openssl3.patch`, which would be [here](https://git.rockylinux.org/staging/rpms/php/-/blob/r9/SOURCES/php-8.0.21-openssl3.patch).

---

<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:** [November 12, 2024, 8:33am UTC](https://forums.rockylinux.org/t/how-does-php-8-0-support-openssl-3-in-rocky-linux-9/16459/3 "2024-11-12T08:33:51Z")

</div>

Indeed, support for OpenSSL 3 was backported to PHP 8.0, and this is quite a huge patch.

---

<div class="post-metadata">

**Author:** ![linxiuzhang](https://avatars.discourse-cdn.com/v4/letter/l/3bc359/32.png) [@linxiuzhang](https://forums.rockylinux.org/u/linxiuzhang)\
**Post date:** [November 23, 2024, 1:40pm UTC](https://forums.rockylinux.org/t/how-does-php-8-0-support-openssl-3-in-rocky-linux-9/16459/4 "2024-11-23T13:40:02Z")

</div>

That is true.A BIG patch.

---

<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:** [January 22, 2025, 1:40pm UTC](https://forums.rockylinux.org/t/how-does-php-8-0-support-openssl-3-in-rocky-linux-9/16459/5 "2025-01-22T13:40:11Z")

</div>

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