Php 将laravel应用程序上载到Internet时出错
我在上传laravel应用程序时遇到这些错误Php 将laravel应用程序上载到Internet时出错,php,laravel,Php,Laravel,我在上传laravel应用程序时遇到这些错误 Warning: require(): open_basedir restriction in effect. File(/usr/home/PerQuiS/domains/www.perquis.pl/fibazy/vendor/autoload.php) is not within the allowed path(s): (/usr/home/PerQuiS/domains/www.perquis.pl/public_htm
Warning:
require(): open_basedir restriction in effect.
File(/usr/home/PerQuiS/domains/www.perquis.pl/fibazy/vendor/autoload.php)
is not within the allowed path(s):
(/usr/home/PerQuiS/domains/www.perquis.pl/public_html:
/tmp:/usr/share:/usr/local/share/pear:/dev)
in /usr/home/PerQuiS/domains/www.perquis.pl/public_html/index.php on line 24
Warning:
require(/usr/home/PerQuiS/domains/www.perquis.pl /fibazy/vendor/autoload.php):
failed to open stream: Operation not permitted in
/usr/home/PerQuiS/domains/www.perquis.pl/public_html/index.php on line 24
Warning:
require(): open_basedir restriction in effect.
File(/usr/home/PerQuiS/domains/www.perquis.pl/fibazy/vendor/autoload.php)
is not within the allowed path(s):
(/usr/home/PerQuiS/domains/www.perquis.pl/public_html:
/tmp:/usr/share:/usr/local/share/pear:/dev) in
/usr/home/PerQuiS/domains/www.perquis.pl/public_html/index.php on line 24
Warning:
require(/usr/home/PerQuiS/domains/www.perquis.pl/ fibazy/vendor/autoload.php):
failed to open stream: Operation not permitted in
/usr/home/PerQuiS/domains/www.perquis.pl/public_html/index.php on line 24
Fatal error:
require(): Failed opening required
'/usr/home/PerQuiS/domains/www.perquis.pl/public_html/..
/fibazy/vendor/autoload.php'
(include_path='.:/usr/local/share/pear') in
/usr/home/PerQuiS/domains/www.perquis.pl/public_html/index.php on line 24
如果您有权访问此域的open_basedir设置,请将其设置为:
/tmp:/usr/share:/usr/local/share/pear:/dev:/usr/home/PerQuiS/domains/www.PerQuiS.pl/
如果您使用共享主机,您将很难让Laravel不仅仅处理目录问题
我强烈建议将laravel forge与Digital Ocean或AWS结合使用。它将为您节省大量的时间,当需要扩展时,它将变得更加容易。我知道定价不会贵得多,而且在硬件方面你真的能得到你所付的钱。你的托管服务不允许你从私有目录加载PHP代码。Laravel和大多数其他像样的框架将大多数PHP代码存储在私有目录中。