今天在配置IIS7.5+php 5.3.8 VC9 x86 Non Thread Safe 的时候出现一个问题
使用.zip解压编译配置的时候,始终没有办法访问.php文件,出现500错误
换用安装版installer的时候则可以正常运行php文件
查看详细的IIS错误信息显示如下:
HTTP 错误 500.0 – Internal Server Error
发生未知 FastCGI 错误
错误代码0x800736b1
后来到处搜索调试,发现原来没有安装Visual C++ 2008 (installer自动带上了Visual C++ 2008)
Microsoft Visual C++ 2008 Redistributable Package (x86)
Microsoft 2008 C++ Runtime (x64)
在此做个记号备用。
另外今天在PHP下载页面看见了。。
原文摘抄一下备忘
Which version do I choose?
If you are using PHP with Apache 1 or Apache2 from apache.org you need to use the VC6 versions of PHP
If you are using PHP with IIS you should use the VC9 versions of PHP
VC6 Versions are compiled with the legacy Visual Studio 6 compiler
VC9 Versions are compiled with the Visual Studio 2008 compiler and have improvements in performance and stability. The VC9 versions require you to have the Microsoft 2008 C++ Runtime (x86) or the Microsoft 2008 C++ Runtime (x64) installed
Do NOT use VC9 version with apache.org binaries
VC9 versions of Apache can be fetched at Apache Lounge. We use their binaries to build the Apache SAPIs.