為什么我把網(wǎng)站根目錄配成public就文件訪問(wèn)就提示找不到文件了?
httpd-vhosts.conf的內(nèi)容如下
# 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>
#
報(bào)錯(cuò)信息:
( ! )?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
找到問(wèn)題所在了,是我前段時(shí)間改了目錄的名字,沒(méi)改文件,就停下來(lái)了,現(xiàn)在看視頻后忘記自己改過(guò)名字了。