thinkphp5 phpstudy 显示 No input file specified 解决办法

这是由于运行模式导致的
修改入口处的配置

<IfModule mod_rewrite.c>
    Options +FollowSymlinks -Multiviews
    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f

    #apacheHanlder模式
    #RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
    #fastCGI模式
    RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>

相关文章

此处评论已关闭