页面不工作 - Laravel

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/44083215/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 16:00:27  来源:igfitidea点击:

Page isn't working - Laravel

phplaravelubuntuubuntu-16.04

提问by Arcubalino

Hi guys i just moved my laravel project from my windows server to my ubuntu server but when i try to load the app it says this page isn't working. I would like to ask your assistance with regards to this matter. Thanksenter image description here

大家好,我刚刚将我的 Laravel 项目从我的 Windows 服务器移到了我的 ubuntu 服务器,但是当我尝试加载该应用程序时,它说此页面无法正常工作。我想请你帮忙解决这个问题。谢谢在此处输入图片说明

回答by Fisherman

For me it was permission issue on storage directory
set the storage directory permission to 0755 recursively

对我来说,这是存储目录的权限问题,
递归地将存储目录权限设置为 0755

回答by MohamedSabil83

Try this steps:

试试这个步骤:

  1. open your terminal.
  2. move to your project folder.
  3. run php artisan serve.
  4. open your browser and type 127.0.0.1:8000or localhost:8000.
  1. 打开你的终端。
  2. 移动到您的项目文件夹。
  3. php artisan serve
  4. 打开浏览器并输入127.0.0.1:8000localhost:8000

回答by Vishnu

There might be a permission issue in your laravel project directory. Because Laravel maintain logs for every action. Make sure the files and directories inside your laravel project have a 777 or 775 permission.

您的 Laravel 项目目录中可能存在权限问题。因为 Laravel 维护每个动作的日志。确保 Laravel 项目中的文件和目录具有 777 或 775 权限。

回答by Shafeel Sha

  1. open your terminal.

  2. move to your project folder.

  3. try this command 'php artisan serve --port=8080'

  4. open with 127.0.0.1:8080or localhost:8080

  1. 打开你的终端。

  2. 移动到您的项目文件夹。

  3. 试试这个命令' php artisan serve --port=8080'

  4. 打开 127.0.0.1:8080localhost:8080

回答by bafdurango

try this url:

试试这个网址:

http://localhost/warehouse/public/index.php/

if you need open the path /test

如果你需要打开路径 /test

http://localhost/warehouse/public/index.php/test