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

jeroenvanrensen's avatar

Laravel Deployment without CMD access

Hi everyone,

I just created a laravel application and now I want to deploy it.

However, I don't have access to a terminal / cmd. But I do have access to FTP.

Some ways I thought of

  • Copying all files and create the database in phpMyAdmin based on the migration files
  • Using the PHP's shell_exec() commands

Does anyone know if one of these will work?

And even better, does anyone know of a better method of doing this?

Thank you! Jeroen

0 likes
2 replies
jlrdw's avatar

Well I have one on Godaddy, it's shared hosting. I ftp up. But it's just an intranet for a non profit. But have had no problems.

But Digital Ocean is also a good choice.

I do use exec to backup one important table, it works fine.

However

Some shared host are very limited.

bobbybouwmann's avatar

It's not recommended to deploy your application through FTP in general. The most important this is that you save your files on a safe place without exposing your .env file to the world.

You can use FTP by transferring all your files to the correct directory of your website. After that, you need to make one change and that is point the website to the public directory you just uploaded. Not all web hosting providers support this, but without it, I would set up a new server for sure.

Also, the command line is pretty important for Laravel in general. You need it for your migrations, clearing caches, and so on. You are limiting yourself if you using FTP here for sure.

1 like

Please or to participate in this conversation.