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

andrew123K's avatar

HTTP ERROR 500 when try to deploy laravel application on shared hosting

Hello guys, I got an error (HTTP ERROR 500) when try to deploy laravel application on shared hosting.

What I did step by step:

1/ Transfered all files, besides public folder on my subdomain folder/sysapp. (app.mydomain.com/sysapp) 2/ Created and imported database 4/ Changed ENV file 5/ Uploaded files from public folder to the public_html folder in root of my subdomaine (app.mydomain.com/public_html). 6/ Changed index.php file : require DIR.'/sysapp/vendor/autoload.php'; $app = require_once DIR.'/sysapp/bootstrap/app.php';

7/ My .htaccess file: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_URI} !/public_html RewriteRule ^(.*)$ public_html/$1 [L] </IfModule>

If you have any idea how to fix that, please help me.

0 likes
3 replies
Snapey's avatar

you did all that hacking of the framework, and now you have problems? Go figure!

Please or to participate in this conversation.