No input file specified.

场景:Dreamhost 提示No input file specified. 的解决方法

Dreamhost 提示No input file specified. 的解决办法
No input file specified.

如果开启FastCGI模式,.htaccess无法生效,一直提示no input file specified。
因为在Fastcgi模式下,php不支持rewrite的目标网址的PATH_INFO的解析 
ThinkPHP运行在URL_MODEL=2时,会出现 No input file specified.的情况, 
这时可以修改网站目录的.htaccess文件:(by default7#zbphp.com)
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] 
改为 RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L] 
.htaccess的内容为: 
    RewriteEngine on 
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L]