phpstudy5.6 No input file specified的解決方法


一、問題描述

5.6就提示這個錯誤,切換5.5就可以

二、原因分析

原因1:提示:“No input file specified.”原因在於使用的PHP5.6是fast_cgi模式,而在某些情況下,不能正確識別path_info所造成的錯誤

原因2:根節點的這個文件全部注釋掉 

 

 

三、 問題解決:

1、先根據原因2處理掉即可,我是這個原因

2、如果解決不了,就用網上的方法

找到這個項目的所有 .htaccess  文件,一般在根節點或者public下

<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>

  

 轉:https://jingyan.baidu.com/article/f7ff0bfccce11c2e26bb1381.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM