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

KaiserDianalan's avatar

Deploying my Laravel 10 with Filezilla on Shared Web Server Hosting

Hello, how are you all? I would like to ask for help on how to get my Laravel project working on a shared web server hosting. I don't have SSH access and can only upload it using FileZilla. I have created the following structure:

/ - root laravel-project public_html

My index.php file seems to be correctly set up, but it's still not working. Here is the content of my index.php:

if (file_exists($maintenance = DIR.'/../project/storage/framework/maintenance.php')) { require $maintenance; } require DIR.'/../project/vendor/autoload.php'; $app = require_once DIR.'/../project/bootstrap/app.php';

Is there any way to make this work? Any help would be greatly appreciated.

0 likes
6 replies
jlrdw's avatar

I'd put main laravel up one level from public_html. Make public_html the public folder (symlink or naming as needed), And as usual point to public as document root.

A search will reveal several in depth past discussions on this.

KaiserDianalan's avatar

@jlrdw

/ ├── project │ ├── app │ ├── bootstrap │ ├── config │ ├── database │ ├── node_modules │ ├── resources │ ├── routes │ ├── storage │ ├── tests │ ├── vendor │ ├── .env │ ├── artisan │ └── other Laravel files └── public_html ├── .htaccess ├── index.php ├── css ├── js ├── images └── other public assets └── web.config

Snapey's avatar

you shoukd really look for a better host. This is the best advice I can give because without command line access everything else is compromised and needs workaounds

Vitorado's avatar

I confirm what @Snapey said. I was like you before and I encountered a lot of issues.

Please or to participate in this conversation.