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

rudraksh.pathak's avatar

Error in deploying laravel project to shared server

I've a laravel project and I want to upload it to hostgator shared hosting server. I'm cloning the project in root directory and placing the public content in a folder in public_html.

I've updated the confiuration -

require DIR . '/../../folder-name/bootstrap/autoload.php'; $app = require_once DIR . '/../../folder-name/bootstrap/app.php';

but I'm getting 500 Internal Server Error.

Need expert advice.

0 likes
0 replies

Please or to participate in this conversation.