Laravel5.2 在linux系统安装后,打开网站出现空白页面,控制台报错500

WBOY
Release: 2016-06-06 20:15:59
Original
2074 people have browsed it

环境:Laravel5.2+nginx+php+mysql.
是先在本地配置好laravel文件,然后整个工程打包,移植到服务器站点上,一切都配置好了之后,用域名打开网站页面空白,浏览器控制台打印出:(Failed to load resource: the server responded with a status of 500 (Internal Server Error)。

回复内容:

环境:Laravel5.2+nginx+php+mysql.
是先在本地配置好laravel文件,然后整个工程打包,移植到服务器站点上,一切都配置好了之后,用域名打开网站页面空白,浏览器控制台打印出:(Failed to load resource: the server responded with a status of 500 (Internal Server Error)。

我碰到过2种情况

  1. 数据库链接不上,即使在.env里面配置了正确的账号密码,原因是有一些空间或者服务器读取不了.env文件(求高手解答),直接把账号密码写到config里面就可以了

  2. 和楼上说的一样,storage需要写的权限,我一般都直接整个目录配置了最高权限,哈哈

storage 目录没有读写权限?

可能是文件夹权限没给到

storageBootstrap/cache文件夹可写权限。

我碰到过2种情况

  1. 数据库链接不上,即使在.env里面配置了正确的账号密码,原因是有一些空间或者服务器读取不了.env文件(求高手解答),直接把账号密码写到config里面就可以了

  2. 和楼上说的一样,storage需要写的权限,我一般都直接整个目录配置了最高权限,哈哈

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!