Laravel white screen failure

Source: Internet
Author: User
No error message on the white screen. Generally, php is used. the display_errors of ini is not enabled, so first make sure that display_errors is in the On status and then enable Debug mode in appconfigapp. change debugfalse to debugtrue in php. In this way, if it is a PHP or configuration problem, the page will show that if it is a framework or program problem

No error message on the white screen. Generally, php is used. the display_errors of ini is not enabled, so first make sure that display_errors is in the On status and then enable Debug mode in app/config/app. in php, change "debug = false" to "debug = true". In this way, if the problem is PHP or configuration, it will be displayed on the page. If it is a framework or program problem

No error is displayed on the white screen. The error message is that display_errors of php. ini is not enabled.

So first, make sure that display_errors is in the On status.

Then enable the Debug mode.

Change 'debug' => false to 'debug' => true in app/config/app. php.

In this way, PHP or configuration problems will be displayed on the page.

If it is a framework or program problem, you can find the specific error in app/storage/logs/laravel. log.

Several common problems of laravel startup failure

1. No forwarding rule is configured

Set Apache in. htaccess

Options + FollowSymLinksRewriteEngine OnRewriteCond % {REQUEST_FILENAME }! -DRewriteCond % {REQUEST_FILENAME }! -Add fRewriteRule ^ index. php [L] Nginx in the configuration file
Location/{try_files $ uri // index. php? $ Query_string;} 2.app/ storage write permission chmod-R 777 app/storage can be 3. open_basedir configuration problems because some automatic tools will automatically set open_basedir to the directory where the domain name is located, that is, the public directory. However, open_basedir should be configured on the Site or php in the public directory. ini or httpd. in conf, restart the corresponding service. You can use the php artisan env in the root directory to find the error.

Original article address: the white screen of Laravel is broken. Thank you for sharing the original article.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.