简体   繁体   English

我将 laragon php 版本更改为 8,之后 apache 将无法运行

[英]I changed laragon php version to 8 and after that apache won't run

I changed laragon php version to 8 and after that apache won't run Here is the error:我将 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

first of all, update your apache version too.首先,更新您的 apache 版本。

after that go to c:\laragon\etc\apacke2\mode_php.conf之后 go 到 c:\laragon\etc\apacke2\mode_php.conf

change:改变:

# 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>

to this:对此:

# 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>

so php8_module will be php_module所以php8_module将是php_module

reference 参考

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM