The specified module is not found.
SolvedPapita47 Posted messages 18 Status Membre -
Hello,
I am installing Apache 2.4 and PHP 8.0 on an individual PC running Windows 11.
I updated the httpd.conf file with the load of the module php8apache2_4.dll that I had to download.
Here is the part concerning this module:
# before PHP 8.0.0 the name of the module was php7_module LoadModule php_module "C:/ProgramFiles/PHP/php8apache2_4.dll" <FilesMatch \.php$> SetHandler application/x-httpd-php </FilesMatch> # configure the path to php.ini PHPIniDir "C:/ProgramFiles/PHP"
And the Apache server does not restart with the error in the application log:
the specified module is not found. Thank you for your advice.
6 réponses
Hello
I found the solution to my problem.
I had installed php-8.4.3-nts-win32-vs17-x64
I uninstalled everything and reinstalled PHP with the php-8.4.3-win32-vs17-x64 version which includes php8apache2_4.dll. I restarted the Apache service with the PHP configuration and miracle, it works
Thanks anyway for the advice
papita47
Hello,
Is the file php8apache2_4.dll indeed in C:/Program Files/PHP/? Is PHP8 installed (correctly)?
Good luck
yes to the first question, for the second question yes in my opinion. but I will redo the installation just in case
Yes, this is a good starting point :p
- Maybe this link will help you.
- I admit that my advice may be limited because personally, I only install web servers on Debian (Linux), where we don't face these kinds of issues thanks to the package system and how the apache configuration files are organized.
I found php8apache2_4.dll in the VS17 x64 Thread Safe version (2025-Jan-15 11:09:44).
I installed it but the result when launching Apache is still the same
Cannot load C:/Programmes/PHP/php8apache2_4.dll into server: The specified module could not be found. Here is the PHP configuration in httpd.conf
# before PHP 8.0.0 the name of the module was php7_module LoadModule php_module "C:/Program Files/PHP/ext/php8apache2_4.dll" <FilesMatch \.php$> SetHandler application/x-httpd-php </FilesMatch> # configure the path to php.ini PHPIniDir "C:/Program Files/PHP"
I don't understand anymore
Thank you for the feedback and the clarifications.
Best wishes
At first, I had retrieved the php8apache2_4.dll from the TS version and copied it into the NTS version... but it didn't work. So, I uninstalled everything and installed the TS version.