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

Kikismedia's avatar

shared hosting deployment issue

this is my first time deploying a project to share hosting , so I follow some steps but I can't get my site to work , because when I visit the main domain I just seeing all my public files how can I solve this issue

0 likes
4 replies
Sinnbeck's avatar

I think you need to move your files down a level. What guide did you follow?

Tray2's avatar

First of all you need to set the public folder as the document root.

Then you need to make sure that mod_rewrite is enabled if the server is running apache.

You also need to make sure that php is installed on the server.

I also recommend removing all the files now since everyone has more or less full access to your application.

It seems that you are using lightspeed webserver then the manual for Laravel might be a good idea to read

https://docs.litespeedtech.com/lscache/lsclaravel/

Kikismedia's avatar

@Tray2 so I think I'm getting it , I got this error

Symfony\Component\Finder\Exception\DirectoryNotFoundException
The "C:\Users\ADE\Desktop\Inside Issue\Issue\storage\framework/sessions" directory does not exist.
Tray2's avatar

@Kikismedia Thats because it's a windows path on a linux server.

In windows the directory seperator are back slashes \ while in linux/unix the are forward slashes /

Try removing that directory all together since nothing really should be written there anyway.

Please or to participate in this conversation.