Apache2.4 not loading the PHP module (%1 is not a valid Win32 application) [closed]

I am trying to install Apache2.4 to run php (and Mysql) in dreamweaver and I have followed the instructions but when I run httpd.exe it gives me :
%1 is not a valid Win32 application

  • I installed VC_redist.x64.exe (MVC++ 2015-2022 Red. (x64))
  • I instaleld Apache2.4 via httpd-2.4.63-250207-win64-VS17
  • I installed php8.4 via php-8.4.4-Win32-vs17-x64.zip

Added these in the httpd.conf
LoadModule php8_module “C:/php/php8apache2_4.dll”
AddType application/x-httpd-php .php
PHPIniDir “C:/PHP”
LoadFile “C:/PHP/php8ts.dll”

php runs wells (phpinfo() working) but httpd gives the error above.

I am stuck and hopeless. No error logs visible

I want to have Apache 2.4 server running and was not expecting that error.