php 找不到 php5apache2_4.dll 错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17609096/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
php5apache2_4.dll not found error
提问by rvini
I'm trying to integrate php on Apache. Following is the versions I'm using
我正在尝试在 Apache 上集成 php。以下是我正在使用的版本
Apache 2.4 (httpd-2.0.64-win32-x86-openssl-0.9.8o)
PHP (php-5.5.0-Win32-VC11-x64.zip)
I'm setting this on a 64 bit
windows 7
machine. I have made the configurations as per this, but I'm getting the following error even though I have place the dll
in the specified folder.
我在64 bit
windows 7
机器上设置这个。我已经按照这个进行了配置,但是即使我将 放在dll
指定的文件夹中,我也会收到以下错误。
Cannot load C:/php/php5apache2_4.dll into server: The specified module could not be found.
无法将 C:/php/php5apache2_4.dll 加载到服务器:找不到指定的模块。
The httpd.conf
line entry is this
该httpd.conf
行条目是这样的
LoadModule php5_module "C:/php/php5apache2_4.dll"
Is there any version compatible issues?
有没有版本兼容问题?
采纳答案by rvini
You are right Marty, they work only if both are either 32bit or 64 bit. I used XAMPP- Apache's distributed installationto resolve this issue.
您是对的 Marty,它们仅在两者都是 32 位或 64 位时才起作用。我使用XAMPP-Apache 的分布式安装来解决这个问题。
回答by Marty McGee
The only way I've been able to get PHP (5.5) to work with Apache (2.4) on Windows (7 and 8) is to make sure Apache and PHP are both either 32-bit (x86) or 64-bit (x64) and that Apache and PHP are both Thread Safe (TS). Using Non-Thread Safe (NTS) did not work for me (or others), and the Thread Safe build comes bundled with the needed Apache Module for PHP "php5apache2_4.dll". Once all my bit-depths and thread safety was matched up, Apache 2.4 and PHP 5.5 work well together on my Windows systems.
我能够让 PHP (5.5) 在 Windows(7 和 8)上与 Apache (2.4) 一起工作的唯一方法是确保 Apache 和 PHP 都是 32 位 (x86) 或 64 位 (x64) ) 并且 Apache 和 PHP 都是线程安全 (TS)。使用非线程安全 (NTS) 对我(或其他人)不起作用,线程安全构建与 PHP“php5apache2_4.dll”所需的 Apache 模块捆绑在一起。一旦我的所有位深度和线程安全匹配,Apache 2.4 和 PHP 5.5 就可以在我的 Windows 系统上很好地协同工作。
Both products must also have been compiled using the same major versions of Microsoft Visual Studio/C++, such as VC6 (the legacy VC++ compiler), VC9=Studio 2008, or VC11=Studio 2012. For the above Apache versions, only VC9 or VC11 are commonly used.
两个产品还必须使用相同的 Microsoft Visual Studio/C++ 主要版本编译,例如 VC6(旧版 VC++ 编译器)、VC9=Studio 2008 或 VC11=Studio 2012。对于上述 Apache 版本,仅 VC9 或 VC11常用。
Links:
链接:
Get Windows Apache binaries here: http://www.apachelounge.com/download/
在此处获取 Windows Apache 二进制文件:http: //www.apachelounge.com/download/
Get Windows PHP binaries here: http://windows.php.net/download/
在此处获取 Windows PHP 二进制文件:http: //windows.php.net/download/
Install the Visual C++ Redistributable compiler runtime library for the specific Visual Studio version used to prepare both Apache and PHP for Windows:
为用于为 Windows 准备 Apache 和 PHP 的特定 Visual Studio 版本安装 Visual C++ Redistributable 编译器运行时库:
2012: http://www.microsoft.com/en-us/download/details.aspx?id=30679
2012 年:http: //www.microsoft.com/en-us/download/details.aspx?id=30679
2008: http://www.microsoft.com/en-us/download/details.aspx?id=5582
2008 年:http: //www.microsoft.com/en-us/download/details.aspx?id=5582
回答by user2603177
Apache win 32 with 64 bits its the problem, you need Apache64
Apache win 32 with 64 bits 它的问题,你需要 Apache64