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.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
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.
Please or to participate in this conversation.