# Building PHP 8.1 on Windows with Openssl 3

**URL:** <https://www.phphelp.com/t/building-php-8-1-on-windows-with-openssl-3/34449>\
**Category:** PHP Installation and Configuration\
**Created:** [January 25, 2022, 11:27pm UTC](https://www.phphelp.com/t/building-php-8-1-on-windows-with-openssl-3/34449 "2022-01-25T23:27:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![4lROmJ6H8JF](https://www.phphelp.com/letter_avatar_proxy/v4/letter/4/3e96dc/32.png) [@4lROmJ6H8JF](https://www.phphelp.com/u/4lROmJ6H8JF)\
**Post date:** [January 25, 2022, 11:27pm UTC](https://www.phphelp.com/t/building-php-8-1-on-windows-with-openssl-3/34449/1 "2022-01-25T23:27:31Z")

</div>

According to some internal bug comments, PHP 8.1 supports Openssl 3.0. However the prebuilt Windows version still includes Openssl 1.1.1. How do I build PHP 8.1 with Openssl 3.0?

---

<div class="post-metadata">

**Author:** ![skawid](https://www.phphelp.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@skawid](https://www.phphelp.com/u/skawid)\
**Post date:** [January 26, 2022, 6:52pm UTC](https://www.phphelp.com/t/building-php-8-1-on-windows-with-openssl-3/34449/2 "2022-01-26T18:52:02Z")

</div>

Some of this looks helpful: [PHP: Installation - Manual](https://www.php.net/manual/en/openssl.installation.php)

---

<div class="post-metadata">

**Author:** ![4lROmJ6H8JF](https://www.phphelp.com/letter_avatar_proxy/v4/letter/4/3e96dc/32.png) [@4lROmJ6H8JF](https://www.phphelp.com/u/4lROmJ6H8JF)\
**Post date:** [January 26, 2022, 7:00pm UTC](https://www.phphelp.com/t/building-php-8-1-on-windows-with-openssl-3/34449/3 "2022-01-26T19:00:39Z")

</div>

Yeah I’ve seen this before too. I don’t understand how pointing at a directory would tell php to look for openssl 3. The dlls have different names entirely. Well, not entirely, but one is 1\_1 and the other is 3.

---

<div class="post-metadata">

**Author:** ![skawid](https://www.phphelp.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@skawid](https://www.phphelp.com/u/skawid)\
**Post date:** [January 27, 2022, 10:47am UTC](https://www.phphelp.com/t/building-php-8-1-on-windows-with-openssl-3/34449/4 "2022-01-27T10:47:20Z")

</div>

Wouldn’t surprise me if there’s some file name parsing happening, so it knows what version is being built in. Have you tried it?
