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

vector_rashed's avatar

jsquarehospital.com is currently unable to handle this request. HTTP ERROR 500

I am first time deploying my laravel project in a shared hosting.

I got error:

This page isn’t workingjsquarehospital.com is currently unable to handle this request.
HTTP ERROR 500

I deployed following this tutorial https://www.youtube.com/watch?v=6g8G3YQtQt4

Method: uploaded zip in root directory, then uploaded the public folder in public_html and changes index.php

Please help me. My error log

[Sun Oct 18 14:00:33.054366 2020] [php7:warn] [pid 24621] [client 103.25.250.225:28241] PHP Warning:  require(/home/projectname/domains/domain.com/public_html/../projectname/vendor/autoload.php): failed to open stream: No such file or directory in /home/projectname/domains/domain.com/public_html/index.php on line 24
[Sun Oct 18 14:00:33.054390 2020] [php7:error] [pid 24621] [client 103.25.250.225:28241] PHP Fatal error:  require(): Failed opening required '/home/jsquare/domains/domain.com/public_html/../projectname/vendor/autoload.php' (include_path='.:/usr/local/php73/lib/php') in /home/projectname/domains/domain.com/public_html/index.php on line 24
0 likes
5 replies
Snapey's avatar

I checked the video and the instructions are basically ok, but you MUST follow them carefully otherwise you expose all your credentials

Make sure you change your database login details now that they have been exposed.

Also, regenerate your app key

Also, never deploy an application to a public place with APP_ENV still set to local

1 like
vector_rashed's avatar

Thanks for your suggestions. I have changed the users for my phpmyadmin and remove the .env.

But on server how to generate encryption key and set .env to private? I am using shared hosting and there is no ssh.

vector_rashed's avatar

Many many thanks to give me your valuable time. It is my first deploy that's why I am facing a lot's of problem. I even didn't know that project env is local. Thanks again.

Snapey's avatar
Snapey
Best Answer
Level 122

Your project and .env file should be in a folder in parallel with the public_html folder so that it is not served by your web server. This is explained in the Traversy Media video.

Generate a new app key locally and copy it to your server.

remove APP_ENV from your .env file on your server and it will assume 'production' mode. This stops the application doing a crash dump when there is an error (the crash dump exposes all your credentials).

1 like

Please or to participate in this conversation.