简体   繁体   English

无法打开Laravel项目

[英]Can't open Laravel project

Installed php7.2, composer, laravel 2.0.1,on Ubuntu 16.0 在Ubuntu 16.0上安装php7.2,composer,laravel 2.0.1

Every time i create new project 每次我创建新项目

 $ laravel new TestProj

a lot of "reccomandations" shows up: 出现了很多“建议”:

symfony/var-dumper suggests installing ext-intl (To show region name in time zone dump) symfony/routing suggests installing doctrine/annotations (For using the annotation loader) symfony/routing suggests installing symfony/config (For using the all-in-one router or any loader) symfony/routing suggests installing symfony/dependency-injection (For loading routes from a service) symfony/routing suggests installing symfony/expression-language (For using expression matching) symfony/routing suggests installing symfony/yaml (For using the YAML loader) symfony/event-dispatcher suggests installing symfony/dependency-injection () symfony/http-kernel suggests installing symfony/browser-kit () symfony/http-kernel suggests installing symfony/config ()....... symfony / var-dumper建议安装ext-intl(以在时区转储中显示区域名称)symfony / routing建议安装主义/注释(用于使用注释加载器)symfony / routing建议安装symfony / config(用于使用all-in -一个路由器或任何加载程序)symfony / routing建议安装symfony / dependency-injection(用于从服务加载路由)symfony / routing建议安装symfony / expression语言(用于使用表达式匹配)symfony / routing建议安装symfony / yaml(对于使用YAML加载程序,symfony / event-dispatcher建议安装symfony / dependency-injection()symfony / http-kernel建议安装symfony / browser-kit()symfony / http-kernel建议安装symfony / config()。 ...

but I've read that it's ok, 但我读到没关系,

now, when I try to start the server 现在,当我尝试启动服务器时

TestProj$ php artiasn serve

it starts ok: 它开始正常:

Laravel development server started: <http://127.0.0.1:8000>

but when I try to enter this address in browser(same on firefox and chrome) the page says "woops, it's seems like something went wrong", and in the command line is written: 但是,当我尝试在浏览器中输入该地址(在Firefox和chrome上相同)时,页面显示“糟糕,好像出了点问题”,并在命令行中输入了以下内容:

[Fri Feb  9 00:54:59 2018] 127.0.0.1:52176 [200]: /favicon.ico

Tryed to write this in index.php: 尝试在index.php中编写:

<link rel="FaviconIcon" href="favicon.ico" type="image/x-icon">

问题可能是您的APP_KEY丢失,解决方案是运行php artisan key:generate

您需要授予存储文件写入权限

sudo chmod 777  storage/

You need to copy 您需要复制

blog4/.env.example blog4 / .env.example

to

blog4/.env blog4 / .env

After that you can run the: 之后,您可以运行:

php artisan key:generate

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

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