简体   繁体   English

将laravel应用上传到互联网时出错

[英]Error while uploading laravel app to the Internet

I get these errors while uploading laravel app. 我在上传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_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/ :/ /tmp:/usr/share:/usr/local/share/pear:/dev:/usr/home/PerQuiS/domains/www.perquis.pl/ :/ /tmp:/usr/share:/usr/local/share/pear:/dev:/usr/home/PerQuiS/domains/www.perquis.pl/ :/ /tmp:/usr/share:/usr/local/share/pear:/dev:/usr/home/PerQuiS/domains/www.perquis.pl/ : /tmp:/usr/share:/usr/local/share/pear:/dev:/usr/home/PerQuiS/domains/www.perquis.pl/

If you are using shared hosting you will have problems getting Laravel to work not just with the directory thing. 如果您使用共享主机,则使Laravel不仅与目录事物一起工作将遇到问题。

I would strongly recommend using laravel forge with Digital Ocean or AWS. 我强烈建议将laravel forge与Digital Ocean或AWS结合使用。 It will save you tons of time and when it comes time to scale it will be much easier. 这将为您节省大量时间,而到了扩展规模时,它将容易得多。 I know that pricing will not be much more expensive and you really get what you pay for when it comes to hardware. 我知道定价不会贵很多,而您真正获得了所支付的硬件费用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM