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

SangminKim's avatar

Running on local, White screen on live server

First, I developed everything on local and everything worked fine. I uploaded it to my webhosting server using FTP and the folder route is /public_html/dummy/project.

When I access the web at http://www.myaddress.com/dummy/project, it gives me a forbidden error msg. Yup, that's what I expected.

When I access the web at http://www.myaddress.com/dummy/project/public, it gives me a white screen. Urggg... that's not what I expected.

I thought my codes have some sort of problem, so I tried it again with fresh new laravel5 to see if it's my code or laravel 5..

http://www.myaddress.com/dummy/fresh_project - Yup. Forbidden Permission Error. http://www.myaddress.com/dummy/fresh_project/public - Nope. Another white scrren.

I've tried giving 777 permision to storage folder and all its subfolders & files... but still white screen. Is there something I'm missing ?

0 likes
5 replies
SangminKim's avatar

the urls are just examples... they're not my real domain address.

SangminKim's avatar
SangminKim
OP
Best Answer
Level 4

Bah... dumb mistake... didn't notice laravel 5 requires php 5.5.9 or higher. Mine was 5.4 something. Typical PEBKAC problem. Problem Exists Between Keyboard And Chair.

moka's avatar

Never set permissions to 777. That allows anyone to read/write/execute that directory and files and is a huge security risk. Only your web server's user needs write access to your storage directory. You can chown to your webserver's user (www-data or apache for apache) and then give group write privileges. Your web server needs to know where your laravel public directory is located via its configuration file. as it forwards requests to it, you never need to do things like example.com/project/public.

1 like
SangminKim's avatar

No worries! I set it back to default right after figuring out the problem ! Thanks you for your kindness ;)

cirol's avatar

A white screen often means a PHP error. Check your server logs, enable error reporting (APP_DEBUG=true), clear the cache, and ensure file permissions are set correctly.

Please or to participate in this conversation.