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

fsdolphin's avatar

Replace existing Laravel project (folder) with other with the same name - Why it doesn't work

Hi,

I'm just trying to understand why replacing an existing project with a new one with the same name didn't work as I was expecting, here is what I did.

In my server (Digital Ocean) I have a site that I use just for testing Laravel, for this example I will refer to it as www.testinglaravel.com. Everything is working fine but I decided to start with a new installation, so I went and renamed the main project folder of the existing working project and created a new Laravel project with the name of the deleted folder, here I was expecting to work just fine since the server block didn't change but to my surprise this didn't work. I don't get any errors but I don't see the welcome Laravel message just a blank page.

Shouldn't this work just fine since in theory it is the same folder name with the same sub-folder structure?

Again there is no real problem here I'm just trying to understand why this doesn't work.

Oh, I'm using Ubuntu and NGINX.

0 likes
2 replies
pmall's avatar
pmall
Best Answer
Level 56

but I don't see the welcome Laravel message just a blank page

It doest seem to be a server problem. With the new project, did you composer install and set permissions to the storage folder ?

1 like
fsdolphin's avatar

@pmall

You are absolutely right, I forgot to set folder permissions. It worked after I set the following permissions.

sudo chown -R :www-data /var/www/projectName
sudo chmod -R 775 /var/www/projectName/storage

Thanks a lot for your help.

Please or to participate in this conversation.