149
loading...
This website collects cookies to deliver better user experience
C:\laragon\bin\php
(or your own custom directory) named after the downloaded zip file. The folder name for me is php-8.0.8-Win32-vs16-x64
and then extract anything inside php-8.0.8-Win32-vs16-x64.zip
to this folder.php-8.0.8-Win32-vs16-x64
to change to this version.This issue seems fixed in the full laragon version 5 installation as I tried it.
C:\laragon\etc\apache2\mod_php.conf
file that contains this code:# This file is auto-generated, so please keep it intact.
LoadModule php8_module "C:/laragon/bin/php/php-8.0.8-Win32-vs16-x64/php8apache2_4.dll"
PHPIniDir "C:/laragon/bin/php/php-8.0.8-Win32-vs16-x64"
<IfModule mime_module>
AddType application/x-httpd-php .php
</IfModule>
php8_module
. You only need to change it into php_module
so the code will be like this:# This file is auto-generated, so please keep it intact.
LoadModule php_module "C:/laragon/bin/php/php-8.0.8-Win32-vs16-x64/php8apache2_4.dll"
PHPIniDir "C:/laragon/bin/php/php-8.0.8-Win32-vs16-x64"
<IfModule mime_module>
AddType application/x-httpd-php .php
</IfModule>
localhost
in the browser, you should see this now:7.4
or else, the above configuration will reset back and you have to change it when using PHP 8. We're looking forward for the permanent solution.