Keep On Hacking

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

March 29, 2018

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

Also, my NGINX version is

daniel@myserver:~$ nginx -v
nginx version: nginx/1.10.3 (Ubuntu)

GitHub Gist

The configuration recommended by 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.

location ~ \.php$ {
    // Include the fastcgi-php.conf file.
    include snippets/fastcgi-php.conf;
    fastcgi_pass unix:/run/php/php7.2-fpm.sock;

GitHub Gist

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

// Checking NGINX config file syntax
sudo nginx -t

// Restart NGINX server
sudo service nginx restart

GitHub Gist

Written by Daniel who lives and works in the beautiful city of Salem training dogs. You should follow me on Twitter

© 2020, Built with ❤️+ Gatsby