php5apache2_4.dll not found error

后端 未结 3 1508
渐次进展
渐次进展 2021-02-05 19:04

I\'m trying to integrate php on Apache. Following is the versions I\'m using

Apache 2.4 (httpd-2.0.64-win32-x86-openssl-0.9.8o)
PHP (php-5.5.0-Win32-VC11-x64.zip         


        
相关标签:
3条回答
  • 2021-02-05 19:45

    Apache win 32 with 64 bits its the problem, you need Apache64

    0 讨论(0)
  • 2021-02-05 19:46

    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.

    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.

    Links:

    Get Windows Apache binaries here: http://www.apachelounge.com/download/

    Get Windows PHP binaries here: 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:

    2012: http://www.microsoft.com/en-us/download/details.aspx?id=30679

    2008: http://www.microsoft.com/en-us/download/details.aspx?id=5582

    0 讨论(0)
  • 2021-02-05 19:53

    You are right Marty, they work only if both are either 32bit or 64 bit. I used XAMPP- Apache's distributed installation to resolve this issue.

    0 讨论(0)
提交回复
热议问题