部署thinkphp的项目时,经常有碰到这种问题“no input file specified”,此时只需要配置与index.php同级的.htaccess的文件即可。具体修改的内容如下:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>