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

skylar01128's avatar

Deploying a Laravel project.

I have completed a project and I now need to deploy it. I have used FTP to transfer the files to the server. The files are in a folder named myapp in the root directory.

I removed the public folder and placed it in the root directory in a folder named public (I did this because the root directory is already hosting a single page website and I can't remove those contents.)

I edited the path in index.php to route to /../myapp/bootstrap/autoload.php and /../myapp/app.php.

However, when I access the url/public, I don't see anything at all. No errors, nothing in the chrome console, nothing. And when I access url/myapp I get a 403 error.

I'm able to navigate to the url/myapp/resources/views/index.blade.php and I can see the index but there is no css or javascript because the page isn't linking correctly (which I expected to happen when I navigated straight to the view).

The file structure is listed below with "/" being the root directory.

/
    -myapp
        -all laravel content
    -public
        -css
        -js
        -images
        -htaccess
        -favicon.ico
        -index.php
        -robots.txt
    -static website contents

Thanks to anyone that can help, I really appreciate it.

0 likes
6 replies
bashy's avatar

What I'd try do is have a symlink which points to the public folder.

If you hosting have a hardcoded document root path to say /home/srv623/example.com/public_html, I'd replace the public_html with a symlink to /home/srv623/example.com/myapp/public

skylar01128's avatar

I understand that this isn't the best practice but I changed the storage folder permissions to 777 and still nothing. Just a blank white screen.

Qlic's avatar

Is the server running at least php 5.6.4?

Snapey's avatar

what webserver are you using and can you setup virtual hosts?

Please or to participate in this conversation.