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

wahidulalam's avatar

Laravel 7 deploy in shared hosting (hostgator) Error

0 likes
9 replies
ajithlal's avatar

check APP_NAME on your .env file. if your app name has spaces wrap it in the double-quotes. Maybe that will be the problem. Also, check your passwords. Wrap them inside double-quotes.

ajithlal's avatar

@wahidulalam

I have removed the files under cache folder inside bootstrap folder.

did you run composer dump-autoload after this?

wahidulalam's avatar

as its shared hosting I cannot run the command. I removed vendor folder from local and did composer install and re-uploaded. I even cant call Artisan::call(dump-autoload) as the route is not working.

jlrdw's avatar

You should be able to ssh in using putty or a Linux equivalent.

wahidulalam's avatar

I have uploaded a fresh laravel 7 blog installation to test. It fails in same way. @jlrdw

Please or to participate in this conversation.