使用PHP 5.3.6与VC6编译Apache时可能出现的潜在问题是什么?

时间:2011-05-05 21:58:54

标签: php apache windows-server-2008

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

如果我使用VC6编译版本的Apache安装5.3.6(仅限VC9),我可以(应该)出现哪些问题?

3 个答案:

答案 0 :(得分:1)

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

答案 1 :(得分:1)

对不起,没有亲身经历,但这ServerFault article提供了一些提示。 this answer中描述了可能出现的问题。

install description也可能有所帮助。

答案 2 :(得分:0)

刚刚得到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