The specified module is not found.

Solved
Papita47 Posted messages 18 Status Member -  
Papita47 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

  1. Papita47 Posted messages 18 Status Member 2
     

    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

    1
    1. bg62 Posted messages 23433 Registration date   Status Moderator Last intervention   2 435
       
      here it is!
      here it is! © here it is!
      0
      1. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 944 > bg62 Posted messages 23433 Registration date   Status Moderator Last intervention  
         

        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

        1
      2. Papita47 Posted messages 18 Status Member 2 > mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention  
         

        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.

        1
  2. bg62 Posted messages 23433 Registration date   Status Moderator Last intervention   2 435
     

    See if this can help you (or else do a new installation ...)


    0
  3. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 944
     

    Hello,

    Is the file php8apache2_4.dll indeed in C:/Program Files/PHP/? Is PHP8 installed (correctly)?

    Good luck

    0
  4. Papita47 Posted messages 18 Status Member 2
     

    yes to the first question, for the second question yes in my opinion. but I will redo the installation just in case

    0
    1. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 944
       

      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.
      0
  5. Papita47 Posted messages 18 Status Member 2
     

    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

    0
    1. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 944
       

      Do you get the same result with:

      LoadModule php_module "C:\Program Files\PHP\ext\php8apache2_4.dll"
      LoadModule php_module "C:\\Program Files\\PHP\\ext\\php8apache2_4.dll"
      0
  6. Papita47 Posted messages 18 Status Member 2
     

    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

    0