httpd.conf on Windows: can't locate API model structure `php8_module`



PHP Snippet 1:

LoadModule php_module "c:/Program Files/PHP/php-8.0.0RC2/php8apache2_4.dll"

PHP Snippet 2:

LoadModule php8_module "path/to/PHP/php8apache2_4.dll"

PHP Snippet 3:

LoadModule php_module "path/to/PHP/php8apache2_4.dll"

PHP Snippet 4:

httpd -t

PHP Snippet 5:

LoadModule php7_module "C:/Apache/modules/php7apache2_4.dll"

PHP Snippet 6:

httpd.exe: Syntax error on line 244 of C:/Apache/conf/httpd.conf: Can't locate API module structure `php_module' in file C:/Apache/modules/php7apache2_4.dll: No error

PHP Snippet 7:

LoadModule php_module "C:/Apache/modules/php7apache2_4.dll"

PHP Snippet 8:

LoadModule php7_module "C:/Apache/modules/php7apache2_4.dll"

PHP Snippet 9:

# PHP8 module
AddHandler application/x-httpd-php .php
AddType application/x-httpd-php .php .html
LoadModule php_module "c:/php/php8apache2_4.dll"
PHPIniDir "c:/php"

PHP Snippet 10:

LoadModule php[PHP_MAIN_VERSION]_module "path/to/PHP/php[PHP_MAIN_VERSION]apache2_4.dll"

PHP Snippet 11:

LoadModule php7_module "C:/php7.4.27/php7apache2_4.dll"

PHP Snippet 12:

#ServerName www.example.com:80

PHP Snippet 13:

ServerName localhost

PHP Snippet 14:

LoadModule php_module "c:/php/php8apache2_4.dll"

PHP Snippet 15:

LoadModule php8_module "c:/php/php8apache2_4.dll"

PHP Snippet 16:

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