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

gtaguitar's avatar

L5 blank white page when deploying my app

I'm trying to deploy my app on a shared hosting using FTP. When I browse to my app's URL, I'm getting a blank white screen without any errors. I tried enabling php error reporting, but I'm still not getting anything on the page. Then I tried to var_dump the variables in the public/index.php file to see if could find any clues about what could be the problem. I can var_dump everything up until the following lines:

$response = $kernel->handle(
    $request = Illuminate\Http\Request::capture()
);

After this line var_dump($response) just gives a blank page. I was able to dump out the previous thing in the file however: var_dump($kernel).

The storage and the vendor folder have the right permissions. I also deployed a clean Laravel installation on a different subdomain just to check if my shared hosting has a problem with Laravel, but no problems occur on that subdomain. Everything is displayed normally there, so there must be a problem specific to my app.

I have no idea what to check or do next. Does anyone have an idea what could be the problem here? Or what can I do to at least have errors showing up again?

0 likes
4 replies
michaeldyrynda's avatar

Make sure that the user your web server runs as has permission to write to the storage directory.

1 like
gtaguitar's avatar
gtaguitar
OP
Best Answer
Level 8

I figured it out. Apparently I was using a couple of packages that require PHP 5.5 but the server is still using PHP 5.4 unfortunately. I removed the packages and then I got normal Laravel error messages, instead of a blank white screen. In case anyone is wondering, those packages were:

gtaguitar's avatar

No, I don't think that's possible. I removed those packages locally from composer.json, ran composer locally and then I re-uploaded the project to the server via FTP.

Please or to participate in this conversation.