課程
/后端開發
/ThinkPHP
/快速入門ThinkPHP 5.0--基礎篇
訪問localhost/index/index/index出現No input file specified.問題在哪里?
2018-08-03
源自:快速入門ThinkPHP 5.0--基礎篇 2-4
正在回答
首先,看一下你的app/index/controller/Index.php是否存在,里面有沒有寫好index方法。
然后,看一下你的網站根目錄配置好了沒有。我的配置的是到public中的。
然后就是你的httpd-conf文件里面的配置中的LoadModule rewrite_module modules/mod_rewrite.so模塊有沒有開啟,還有AllowOverride的后面是不是All。
還有一個地方就是public/.htaccess中的一行改成這樣的,index.php/$1中間加個'?'
RewriteRule?^(.*)$?index.php?/$1?[QSA,PT,L]
鐘廣文 提問者
那個問號的問題
Plus15
舉報
ThinkPHP5已發布多時,想了解ThinkPHP5的新特性嗎?老司機帶你馬上出發~
2 回答為什么我訪問localhost/index/index/index 顯示No input file specified.
2 回答直接輸入localhost可正常訪問,輸入localhost/index/index/index報錯No input file specified.
3 回答輸入localhost/index會出No input file specified.錯誤,怎么解決
2 回答輸入localhost/index會出No input file specified.錯誤,怎么解決
2 回答訪問localhost/index/index/index提示有問題
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2018-08-03
首先,看一下你的app/index/controller/Index.php是否存在,里面有沒有寫好index方法。
然后,看一下你的網站根目錄配置好了沒有。我的配置的是到public中的。
然后就是你的httpd-conf文件里面的配置中的LoadModule rewrite_module modules/mod_rewrite.so模塊有沒有開啟,還有AllowOverride的后面是不是All。
還有一個地方就是public/.htaccess中的一行改成這樣的,index.php/$1中間加個'?'
2018-08-03
那個問號的問題