Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

danielbrendel's avatar

Laravel 8 shows blank white screen on production server

So I am trying to run my Laravel 8 application on my server. I don't have root/SSH access, so I do everything with an FTP client. I uploaded all my content to my webserver and added my .htaccess file in order to run the application. It works fine in my local environment, but on my server it shows only a blank page. I put some debugging outputs in the public/index.php file and it can var_dump the $app variable.

$app = require_once __DIR__.'/../bootstrap/app.php';
var_dump($app); //Works

But I cannot var_dump $response.

$response = tap($kernel->handle(
    $request = Request::capture()
))->send();
var_dump($response); //Never reached statement

I guess it just aborts somewhere deep in the Laravel execution jungle and this would be hard to trace.

This is my project root .htaccess file:

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>

    RewriteEngine On

    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    RewriteRule ^(.*)$ public/ [L,QSA]
</IfModule>

"public/$1" (seems to be not shown in the markdown...)

I cleared everythin in the storage folder but this doesnt make any impact. I also changed permissions of storage, vendor and bootstrap folder to 755 but it didn't change anything.

Locally it works both with php artisan serve or by placing everything in my htdocs folder of my XAMPP installation and browsing there.

What is the problem here?

0 likes
1 reply
jlrdw's avatar

Make sure you point to public as your document root. Remember Linux is also case sensitive. Read the documentation chapter also on deployment.

Normally if it works local it should work on servers, if set up correctly.

I'm surprised you can't ssh in with putty, or similar.

Edit: also check error logs. Also delete bootstrap cache files.

Please or to participate in this conversation.