Does Your Laravel App Shows A Blank White Screen? Here Is What You Should Do.

Let me guess. You developed a Laravel app and deployed it on the Server. When you hit the app’s URL, boom, you can only see a blank white screen and nothing else. Frustrating isn’t it?

Trust me. It is frustrating and I’ve been there. In this post, let me share what did I do to resolve it.

Laravel Server Configuration

I’m using the Server configuration recommended by Laravel.com

Also, my NGINX version is

The configuration recommended by Laravel.com is missing the include fastcgi.conf; line. The line is self-explanatory. To include that configuration in the NGINX, in the version that I’m using, all I had to was to include fastcgi-php.conf, which contains the include fastcgi.conf statement. You can find both fastcgi.conf and snippets/fastcgi-php.conf configuration files under /etc/nginx directory.

Once you have added the above line, you can then check the configuration and restart NGINX.

Leave a Reply

Your email address will not be published. Required fields are marked *