iis7以fastcgi配置php时出现FastCGI进程意外退出问题解决 [疑难杂症]
post by 朦朧中的罪惡 / 2009-8-29 21:57 Saturday
很多人在配置iis7+fastcgi+php时出现了 500错误FastCGI进程意外退出同时php-cgi.exe进程崩溃。
如图
这个问题一般都是php配置出了问题导致的。
我的解决方法一般都是先将php程序目录放进系统path变量中,这样可以在不用iis的情况下使用php -v的命令来检查php的配置情况。
例如:php.ini中我把extension_dir属性的路径写错了。在命令行中输入 php -v就会有以下显示(点击放大)
php不能加载扩展库文件,当然会报错了。
修改完成后再看(点击放大)这是就没有问题了。
此时再重起iis,问题即可解决。
IIS7配置PHP5.3问题解决笔记 [疑难杂症]
post by 朦朧中的罪惡 / 2009-8-27 18:38 Thursday
选择PHP版本:
php 5.3的Windows版本要去专用的站点 http://windows.php.net/download/ 下载
选择版本时要参照官方的提示去做:
If you are using PHP with Apache 1 or Apache2 from apache.org you need to use the VC6 versions of PHP
如果你在Apache1或者Apache2跑php,那么你需要下载VC6版本的php
If you are using PHP with IIS you should use the VC9 versions of PHP
如果你在IIS下面跑php那么需要安装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. The VC9 versions require you to have the Microsoft 2008 C++ Runtime (x86) or the Microsoft 2008 C++ Runtime (x64) installed
VC9版本由Visual Studio 2008编译提高了效率和稳定性。VC9版本需要你有Microsoft 2008 C++ Runtime(32位或者64位)
Do NOT use VC9 version with apache.org binaries
别用Apache去跑VC9版本的PHP






