Home  >  Article  >  PHP Framework  >  What should I do if the Laravel access page under centos is blank?

What should I do if the Laravel access page under centos is blank?

藏色散人
藏色散人forward
2021-12-09 17:11:331603browse

The tutorial column of Laravel below will introduce to you the problem of blank page when accessing the website in centos 7.2 Laravel. I hope it will be helpful to everyone!

centos 7.2 The page visited by Laravel is blank?

The page visited by Laravel is blank

After configuring Laravel, I visited the website and found that it was a blank page , I was very confused when using Laravel for the first time.

When using fiddler to check, a 500 error occurs. I checked online that it is because the storage directory under the root directory does not have 777 permissions

As shown in the picture:

What should I do if the Laravel access page under centos is blank?

Solution:

Use chmod -R 777 storage/Change the permissions of the directory

The website will be displayed normally when you visit it again :

What should I do if the Laravel access page under centos is blank?##

The above is the detailed content of What should I do if the Laravel access page under centos is blank?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:aliyun.com. If there is any infringement, please contact admin@php.cn delete