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

crnkovic's avatar

Installing Laravel on public hosting that doesn't offer SSH

My web hosting does not offer SSH. Is there a way for me to setup Laravel app on there? I manually copied all the files (including vendor directory) on to the server but I can't run the application since "serve" command is not available.

Thanks.

0 likes
7 replies
lollydeeo@yahoo.com's avatar

I am also very interested in this question because i just started with laravel and no one warned me about how difficult it is to make laravel work online in a shared hosting. i have gone through all the steps i could find including https://laracasts.com/discuss/channels/laravel/upload-project-laravel?page=1, but i keep getting blank pages. Luckily for me, i could PuTTY into my server, i have installed, reinstalled composer and Laravel, i have copied the laravel folder outside public_html, emptied laravel/public folder into public_html and edited index.php to have DIR.'/../laravel/bootstrap/(autoload.php and app.php)' edited .env parameters setting APP_DEBUG to false and_ENV to production. I have edited the .htaccess file and placed it in the public_html folder.

All these several times but i am still getting blank pages.

With delivery date some days away i hope i wont have to recode the work of this past few months

Someone help please-At my wits end

willvincent's avatar

The serve command is not for production.

Unless this hosting option you have is free, you should really consider something that doesn't suck... digitalocean, for example starts at $5/mo.

crnkovic's avatar

Thanks, I fixed it. It's actually not for me, so I don't care what hosting my client has.

Sulieman's avatar

even if you don't have ssh, after you finish building you laravel app on localhost, compress it to zip file, and upload the file via ftp, for the databese you should build it in phpmyadmin, or export it from your localhost to the server without usin migration , i have shared hosting on hostgator and every thing works fine

Please or to participate in this conversation.