skip to Main Content

i’m installing php so that i can use it with the apache software and i’ve followed the guide here: https://www.geeksforgeeks.org/how-to-install-php-on-apache-in-windows/
but when i do the command : httpd -t
i get the error :

httpd: Syntax error on line 538 of C:/Apache24/conf/httpd.conf: Cannot load xe2x80x9cC:phpphp8apache2_4.dllxe2x80x9d into server: The specified module could not be found.

i know there is some people with similar problem but i didn’t find a solution that suit the problem.
i’m using Apache 2.4 VS16 and php 8.1.6 VS16 x64 Thread Safe

2

Answers


  1. Look at the error message. Search for the bits that look weird.

    See this page:

    U+201C    “   xe2x80x9c    LEFT DOUBLE QUOTATION MARK
    U+201D    ”   xe2x80x9d    RIGHT DOUBLE QUOTATION MARK
    

    You need to use regular quote marks (i.e. " which is U+0022 : QUOTATION MARK {double quote}) around strings.

    Don’t copy/paste code from blogs that use software designed for English and not code.

    Login or Signup to reply.
  2. Remove the quotes from the line so instead of having:

    LoadModule "php_module C:Apache24PHP-8.2.0php8apache2_4.dll"  
    

    you should have:-

    LoadModule php_module C:Apache24PHP-8.2.0php8apache2_4.dll
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search