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