亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

為什么我把網站根目錄配成public就文件訪問就提示找不到文件了?

httpd-vhosts.conf的內容如下

# Virtual Hosts

#

<VirtualHost *:80>

ServerName localhost

DocumentRoot E:/GreenSoftware/wamp64/www/thinkphp/public

<Directory ?"E:/GreenSoftware/wamp64/www/thinkphp/public/">

Options +Indexes +Includes +FollowSymLinks +MultiViews

AllowOverride All

Require local

</Directory>

</VirtualHost>

#


報錯信息:

( ! )?Warning: require(E:\GreenSoftware\wamp64\www\thinkphp\public/../thinkphp/start.php): failed to open stream: No such file or directory in E:\GreenSoftware\wamp64\www\thinkphp\public\index.php on line?17

Call Stack

#

Time

Memory

Function

Location

1 ? ?0.0000 ? ?237896 ? ?{main}( ) ? ?...\index.php:0 ? ?


( ! )?Fatal error: require(): Failed opening required 'E:\GreenSoftware\wamp64\www\thinkphp\public/../thinkphp/start.php' (include_path='.;C:\php\pear') in E:\GreenSoftware\wamp64\www\thinkphp\public\index.php on line?17

Call Stack

#

Time

Memory

Function

Location

1 ? ?0.0000 ? ?237896 ? ?{main}( ) ? ?...\index.php:0 ? ?


正在回答

2 回答

<VirtualHost?*:80>
????DocumentRoot?"D:/xampp/htdocs/thinkphp/public"
????ServerName?127.0.0.1
</VirtualHost>

我是這樣配置的 , 你可以看看文件的路徑是否正確?

0 回復 有任何疑惑可以回復我~

找到問題所在了,是我前段時間改了目錄的名字,沒改文件,就停下來了,現在看視頻后忘記自己改過名字了。

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

為什么我把網站根目錄配成public就文件訪問就提示找不到文件了?

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號