為什么我把網站根目錄配成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 ? ?
2017-05-20
我是這樣配置的 , 你可以看看文件的路徑是否正確?
2017-05-20
找到問題所在了,是我前段時間改了目錄的名字,沒改文件,就停下來了,現在看視頻后忘記自己改過名字了。