apache2.4配置php8问题

php配置后,检查也不报错,但是Apache就是无法启动

......
</IfModule>
<IfModule http2_module>
    ProtocolsHonorOrder On
    Protocols h2 h2c http/1.1
</IfModule>

# PHP FastCGI
#
# Edit conf/extra/httpd-fcgid.conf to match your php location
# and uncomment the Include line below.
#
#Include conf/extra/httpd-fcgid.conf

<IfModule lua_module>
  AddHandler lua-script .lua
</IfModule>

LoadModule php_module "C:/php81/php8apache2_4.dll"
PHPIniDir "C:/php81"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .html

<IfModule dir_module>
    DirectoryIndex index.php index.html index.htm default.php default.html default.htm home.php home.html home.htm
    Alias /difcipo "C:/PHP"
    DocumentRoot "C:/PHP"
    <Directory "C:/PHP">
        Options Indexes FollowSymLinks
        AllowOverride all
        Require all granted
    </Directory>
</IfModule>



img

httpd.conf中删除掉加载php组件的语句Apache就可以正常启动,应该端口没问题

img

确定过Apache2.4 x64 vs17

          php8.1.6 x64 vs16

难道说两个vs版本必须一样吗

网上各种方法都试了,目前仍然无解