Php 使用子域时的Laravel URL问题
刚刚把laravel移到我的现场,并直接点击错误 错误是:Php 使用子域时的Laravel URL问题,php,laravel,Php,Laravel,刚刚把laravel移到我的现场,并直接点击错误 错误是: Warning: require(/var/sites/b/beta.buildsanctuary.com/public_html/local/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/sites/b/beta.buildsanctuary.com/public_html/local/bootst
Warning: require(/var/sites/b/beta.buildsanctuary.com/public_html/local/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/sites/b/beta.buildsanctuary.com/public_html/local/bootstrap/autoload.php on line 17
Fatal error: require(): Failed opening required '/var/sites/b/beta.buildsanctuary.com/public_html/local/bootstrap/../vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/sites/b/beta.buildsanctuary.com/public_html/local/bootstrap/autoload.php on line 17
我不确定是什么导致了这些问题,是不是它在公共html文件夹中查找这些文件?什么时候应该只查看子域/子域本身
如果是这样的话。。。那我怎么才能着手解决这个问题呢?如果我更改第17行,它会更改所需位置,但不会更改其查找文件的位置。bla中没有此类文件或主管
第17行是:
require __DIR__.'/../vendor/autoload.php';
对如果路径不匹配,这将是一个问题。我想你回答了你自己的问题。只是把问题编辑得更清楚了。如果问题是路径不匹配,我可以更改require路径,但如何更改其查找的位置?就像上面写着“在……中没有这样的文件或目录”