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

Ev-genius's avatar

How to deploy without SSH access to hosting?

There is a simple shared hosting. There is no SSH on the hosting. What is the correct way to deploy in such conditions?

0 likes
3 replies
tisuchi's avatar

@ev-genius you can do all kinds of composer and php artisan commands locally. Once done then just push your entire local project on the server, including the vendor folder also.

Ev-genius's avatar

in the .env file I changed:

  • APP_ENV=production
  • APP_DEBUG=false
  • and DB setting

after that

  • composer install --optimize-autoloader --no-dev
  • npm install
  • npm run production

artisan commands

  • php artisan config:clear
  • php artisan route:clear
  • php artisan view:clear
  • php artisan config:cache
  • php artisan route:cache
  • php artisan view:cache

Add to exclude "node_modules"

Than move laravel folder to hosting.

And there are error:

Illuminate\Database\QueryException

SQLSTATE[HY000] [1045] Access denied for user...

what I did wrong?

andyandy's avatar

In .env you enter wrong user/password/database for MySQL access.

Please or to participate in this conversation.