【问题标题】:What are the potential problems that could occur when using PHP 5.3.6 with VC6 compiled Apache?将 PHP 5.3.6 与 VC6 编译的 Apache 一起使用时可能会出现哪些潜在问题?
【发布时间】:2011-08-19 18:17:17
【问题描述】:

首先,我是cross-posting this from Server Fault,因为我没有收到任何回复。如果这违反了规则,我很抱歉。

如果我要安装 5.3.6(仅限 VC9)和 VC6 编译版本的 Apache,我可能(应该)会遇到什么样的问题?

【问题讨论】:

  • 你为什么用VC6编译的apache?如果您担心可能的兼容性问题,最好使用apache compiled with VC9。
  • Christopher,我知道最好使用 VC9 编译的 Apache。我不确定我运行 VC6 编译的 Apache 背后的原因是否与问题相关 - 我只是在寻找可能发生的潜在问题。

标签: php apache windows-server-2008


【解决方案1】:

根据我的经验,它根本不会引起任何问题。我已经在生产站点上部署了几次精确的设置(我没有管理服务器),并且发布了没有问题的项目。

【讨论】:

    【解决方案2】:

    抱歉,没有个人经验,但这个ServerFault article 提供了一些提示。 this answer 中描述了可能发生的问题。

    这个install description 也可能有帮助。

    【讨论】:

    • 感谢您的链接。虽然有点模糊,但这可能是我将得到的最佳答案。据我从该答案中可以看出,内存管理似乎是最大的潜在问题。
    【解决方案3】:

    刚收到this:

    i tried the VC-9 version of PHP 5.3.6 with the "Unofficial WampServer Version 2.0j-32bit" and it works! in the phpinfo there is a line "Compiler MSVC9 (Visual C++ 2008)" so it is really the vc9 version working.
    
    the unofficial wampserver (pampserver) can be downloaded here:
    [sourceforge.net]
    
    home page: www.pampserver.com
    
    for those who want to add the php 5.3.6 version to the pampserver, do this:
    
    0) at first, stop wampserver and make sure it is not running
    
    1) download this [windows.php.net]
    
    2) in "c:\wamp\bin\php\" create a folder "php5.3.6" and extract the downloaded zip file into this folder
    
    3) in any folder with the previous version of php 5.3, find files "php.ini" , "phpForApache.ini" and "wampserver.conf" (eg. in the folder "c:\wamp\bin\php\php5.3.3\" )
    
    4) copy these 3 files into the new "c:\wamp\bin\php\php5.3.6\" folder
    
    5) now in the new "c:\wamp\bin\php\php5.3.6\" folder, find files "php.ini" and "phpForApache.ini" and open both files in any text editor
    
    6) replace all occurences of "5.3.3" (or the version number you copied those files from) with "5.3.6" and save
    
    7) go to the "c:\wamp\bin\apache\apache2.2.17\bin\" folder and delete file "php.ini"
    
    8) start wampserver and in the menu PHP -> Version select 5.3.6
    
    9) voila! now you can open your localhost and see the phpinfo() page and check out the php version
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-10-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多