The specified module is not found.
SolvedPapita47 Posted messages 18 Status Member -
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 answers
-
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
-
Thank you for the feedback and the clarifications.
- What is surprising is that in messages #2 and #3 it seemed we had decided that in your previous installation, the dll in question did exist.
- From what I see, there are two versions of PHP (TS=Thread Safe and NTS=Not Thread Safe), and in your case, you indeed needed to use the TS version.
- I am surprised that the Apache error message is so vague (in this case, it should have stated that this was not the correct dll, assuming it did exist).
Best wishes
See if this can help you (or else do a new installation ...)
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
I didn't run the test with the double backslash.
In fact, I stupidly wrote C:\programme instead of C:\Program Files
I fixed the error and it's fine now
-
