Anton B.
Anton B.

Reputation: 41

Installing Apache 2.4 and PHP 7 on Windows 10

I'm trying to install Apache 2.4.38 and PHP 7.3.1 on my Windows 10 machine, but I'm getting the following error:

httpd.exe: Syntax error on line 185 of C:/Anton/Apache24/conf/httpd.conf: Cannot load modules/php7apache2_4.dll into server: Kan opgegeven module niet vinden.

I'm using the following versions of Apache and PHP:

Things I've already checked:

I've added the following lines to the httpd.conf file line

I've also tried using the x64 variant, but with the same result. What am I missing / doing wrong?

Upvotes: 3

Views: 8206

Answers (1)

Anton B.
Anton B.

Reputation: 41

The following change worked. Changing the line:

LoadModule php7_module modules/php7apache2_4.dll

to

LoadModule php7_module C:/Anton/PHP7/php7apache2_4.dll

Upvotes: 1

Related Questions