简体   繁体   English

针对PHP 5.3的APC扩展编译的dll

[英]Compiled dll for APC extension for PHP 5.3

This might not be a programming question but I am posting it after long search and confusion. 这可能不是编程问题,但经过长时间的搜索和混乱后,我才发布它。

I have a dedicated server running Windows server 2008/64bit running Apache as a web server and using PHP 5.3.9 我有一个运行Windows Server 2008 / 64bit的专用服务器,该服务器将Apache作为Web服务器运行,并使用PHP 5.3.9

I am trying to install APC extension for Apache. 我正在尝试为Apache安装APC扩展。 From what I found on php.net I should use a V6 version because I am using Apache. 根据我在php.net上找到的内容,我应该使用V6版本,因为我正在使用Apache。

I searched everywhere to find APC for PHP 5.3 vc6 x64 and found nothing 我到处搜索以找到适用于PHP 5.3 vc6 x64的APC,却一无所获

This comment says that "it's not possible to compile 64 bit PHP binaries with VC6 since it does not have 64 bit compiler" I don't know if that's true or just an assumption 评论说:“由于没有64位编译器,因此无法用VC6编译64位PHP二进制文件”,我不知道这是真的还是一个假设。

Any help will be gladly appreciated/ 任何帮助将不胜感激/

Update, I cannot use VC9 as stated on windows.php.net 更新,我无法使用windows.php.net上所述的VC9

If you are using PHP with Apache 1 or Apache2 from apache.org you need to use the VC6 versions of PHP 如果您将PHP与apache.org中的Apache 1或Apache2配合使用,则需要使用VC6版本的PHP

If you are using PHP with IIS you should use the VC9 versions of PHP 如果将PHP与IIS一起使用,则应使用VC9版本的PHP

VC6 Versions are compiled with the legacy Visual Studio 6 compiler VC6版本使用旧版Visual Studio 6编译器进行编译

VC9 Versions are compiled with the Visual Studio 2008 compiler and have improvements in performance and stability. VC9版本是使用Visual Studio 2008编译器编译的,并且在性能和稳定性方面都有改进。 The VC9 versions require you to have the Microsoft 2008 C++ Runtime (x86) or the Microsoft 2008 C++ Runtime (x64) installed VC9版本要求您安装Microsoft 2008 C ++运行时(x86)或Microsoft 2008 C ++运行时(x64)

Do NOT use VC9 version with apache.org binaries 请勿使用apache.org二进制版本VC9

VC9 versions of Apache can be fetched at Apache Lounge. 可以在Apache Lounge上获取VC9版本的Apache。 We use their binaries to build the Apache SAPIs. 我们使用它们的二进制文件来构建Apache SAPI。

Thanks 谢谢

UPDATE 更新

I was given wrong information about the server configuration and settings. 我收到有关服务器配置和设置的错误信息。 phpinfo() revealed the following: phpinfo()显示了以下内容:

Compiler        MSVC9 (Visual C++ 2008)
Architecture    x86

So I used built VC9 and x86 and it worked perfectly. 因此,我使用了内置的VC9和x86,它运行良好。

I used to run PHP as an Apache module on my Windows development machine. 我曾经在Windows开发计算机上将PHP作为Apache模块运行。 However, as PHP has stopped releasing VC6 binaries , I run the VC9 non theadsafe 32-bit versions as a FCGI module. 但是,由于PHP已停止发布VC6二进制文件 ,因此我将VC9非theadsafe 32位版本作为FCGI模块运行。 There is plenty of documentation from both Apache and PHP on how to install these. Apache和PHP都提供了大量有关如何安装它们的文档。

Then all you have to do is download the latest APC dll from here . 然后,您所要做的就是从此处下载最新的APC dll。 Make sure you get the non-threadsafe version (nts), plonk it in your ext folder and just enable it like any other extension. 确保获得非线程安全版本(nts),将其放在ext文件夹中,然后像其他任何扩展一样启用它。

Edit: Didn't see that you wanted to run the 64-bit version. 编辑:没有看到您要运行64位版本。 I haven't had a chance to try that out. 我还没有机会尝试一下。 However, if you are happy with running 32-bit versions of Apache and PHP, the above should work well. 但是,如果您对运行32位版本的Apache和PHP感到满意,那么上面的方法应该可以正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM