You need to find some better instructions.
I suggest you delete the site immediately http://jsquarehospital.com/.env
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
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
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).
Please or to participate in this conversation.