(Apache : couldn't load module) httpd: Syntax error on line 539 of C:/Apache24/conf/httpd.conf:Cannot load C:/php/php7apache2_4.dll into server:

httpd: Syntax error on line 539 of C:/Apache24/conf/httpd.conf: Cannot load C:/php/php7apache2_4.dll into server:The specified module could not be found

I am new to apache and php. I did everything till restarting it. I installed it in C driver. When i try to restart it this happens.

line 539 :

LoadModule php7_module "C:/php/php7apache2_4.dll"

also I don't actually understand the terms. So can you explain a little more clearly please?

thanks in advance

Answer

Solution:

Apache is a webserver. And it uses several modules, roughly similar to plugins to do the work it was programmed to do.

Your case the error it has thrown is that, the module you have asked apache to load is not found by it. Hence it has thrown the error.

Going by the error, apache seems to have a conflict with your php installation, which has lead to failure in your case. Because you have not menitoned your web server architecture, i am assuming that you built a server around apache and php.

You can try to reinstall php, add essential php extensions for apache-php linkage and try to rectify in case you're building the server.

Below resources can help you in the process:

Cannot load C:/php/php7apache2_4.dll into server: %1 is not a valid Win32 application

How to enable php7 module in apache?

Source