Php dll cannot be uploaded to server when using Apachelounge VC14 build and php.net VC11 build

I am following a great post

Version information;

Apache 2.4.16 php 5.6.11 mysql community installer 5.6.25

Directory structure:

C: server All settings here

Windows system - 7 - 64 bit.

Mistake

httpd.exe: Syntax error on line 178 of C:/server/httpd/Apache24
/conf/httpd.conf: Cannot load C:\\server\\php\\php5apache2_4.dll into 
server: The specified module could not be found.

      

which calls

LoadModule php5_module C:\server\php\php5apache2_4.dll  ----> This Line

<IfModule php5_module>
 DirectoryIndex index.html index.php
 AddHandler application/x-httpd-php .php
 PHPIniDir "C:\server\php"
</IfModule>

      

This has worked before - I just put in a new OS and tried the same in C;\server

for a general install so I can use it on every 64-bit Windows system with the same directory structure.

My doubt : This is due to incompatible versions of the problems

Upload places:

 mysql is from mysql domain
 php from php domain
 apache from apachelongue

      

Please help me to solve this error.

EDIT COMMENT:

php apache dll is present in php directory

NOTE

The question becomes silly when you know the answer as you remember a-z

. So it's not a stupid question at all.

+3


source to share


1 answer


When using VC14 (Visual Studio 2015) httpd.exe assembly from apachelounge combined with VC11 (Visual Studio 2012) php assemblies from php.net, you need to set the C runtime for both versions.

http://www.apachelounge.com/download/VC14/ says:

Make sure you have installed Visual C ++ Redistributable for Visual Studio 2015 RC: vc_redist_x64 / 86.exe


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

- to build VC11 requires Visual C ++ Redistributable for Visual Studio 2012 x86 or x64

The auto-generated import code for the implicit CRT binding in the application gives you a message box with the missing redistributables. But in this case .dll is missing other import. And in order for this (specific) information to be disseminated, it is a little more difficult ....
So, without tools like, for example, Depedency Walker, you are stuck with the general Cannot load yaddayadda.dll into server

.

+2


source







All Articles