Apache 2.2.4 cannot load php5apache2_4.dll

I wanted to install Apache and PHP without using xampp. Apache works fine. When I type localhost in my browser, it shows "It works!" but when I try to install PHP I always get this error: "apache 2.2.4 cannot load php5apache2_4.dll to server:% 1 is not Win32 executable" (or something like that. Ive got the german version of the error)

I have Windows 7 64bit. I have re-installed several times but nothing has changed. In my config, I have this.

LoadModule php5_module "c:/php-5/php5apache2_4.dll"

      

I have an idea? Apache version - 2.2.4 and Php5.6

+3


source to share


1 answer


I had the same problem, so I switched to a virtual machine on Unix. My problem was here:

http://windows.php.net/download/



Apache Please use the Apache builds provided by Apache Lounge. They also provide VC11 builds for Apache for x86 and x64. We use their binaries to build the Apache SAPI.

If you are using PHP with Apache 1 or Apache2 from apache.org (not recommended) you need to use older VC6 compiled PHP versions with the deprecated Visual Studio 6 compiler. DO NOT use VC9 + PHP versions with apache.org binaries.

With Apache, you have to use Thread Safe (TS) PHP versions.

I wanted to post this as a comment, but it was long.

+3


source







All Articles