我把laragon php版本改成了8,之后apache就不会运行了,下面是错误:
Service apache can not start C:/laragon/bin/apache/httpd-2.4.46vs16/conf.... Syntax error on line 2 Api module structure php8_module error发布于 2021-03-10 06:03:17
首先,更新您的apache版本。
然后转到c:\laragon\etc\apacke2\mode_php.conf
更改:
# This file is auto-generated, so please keep it intact.
LoadModule php8_module "C:/laragon/bin/php/php-8.0.0-Win32-vs16-x64/php8apache2_4.dll"
PHPIniDir "C:/laragon/bin/php/php-8.0.0-Win32-vs16-x64"
<IfModule mime_module>
AddType application/x-httpd-php .php
</IfModule>要这样做:
# This file is auto-generated, so please keep it intact.
LoadModule php_module "C:/laragon/bin/php/php-8.0.0-Win32-vs16-x64/php8apache2_4.dll"
PHPIniDir "C:/laragon/bin/php/php-8.0.0-Win32-vs16-x64"
<IfModule mime_module>
AddType application/x-httpd-php .php
</IfModule>所以php8_module将会是php_module
https://stackoverflow.com/questions/66555395
复制相似问题