Laragon is a popular local development environment that simplifies the setup of web servers, databases, and other tools. However, when attempting to integrate PHP 8 into Laragon on Mint v6.0, users may encounter errors related to outdated Apache versions. This blog post will guide you through the process of resolving the error and upgrading Apache to the latest version.
nghttp2_option_set_no_rfc9113_leading_and_trailing_ws_validation
When trying to add PHP 8 to Laragon and start Apache, you might encounter the following error:
nghttp2_option_set_no_rfc9113_leading_and_trailing_ws_validation could not be located in the dynamic link library php-8.3.4\ext\php_curl.dll
This error indicates that the version of Apache you are using is incompatible with the latest PHP extensions, particularly the php_curl.dll
extension. The solution is to upgrade Apache to a more recent version that supports these modern PHP features.
To resolve the error, you need to upgrade Apache to a version that supports the latest PHP extensions. The recommended source for Apache binaries is ApacheLounge.
Before making any changes, it's crucial to back up your current Apache configuration files. Navigate to your Apache installation directory (usually located in C:\laragon\bin\apache\
) and copy the conf
directory to a safe location.
C:\laragon\bin\apache\
).After replacing the Apache files, verify that the upgrade was successful by checking the Apache version again:
cd C:\laragon\bin\apache\httpd-2.4.62-240904-win64-VS17\bin
httpd.exe -V
# output
Server version: Apache/2.4.62 (Win64)
You should see the updated version number, confirming that the upgrade was successful.
Finally, start Apache from the Laragon interface.
If everything is configured correctly, Apache should start without any errors, and you should be able to use PHP 8.3 without encountering the nghttp2_option_set_no_rfc9113_leading_and_trailing_ws_validation
error.