Frank Provost Frank Provost - 6 months ago 3
Bash Question

run composer and laravel (artisan) commands without ssh access

I want to test some laravel applications on my basic shared host.

Currently I just upload my complete application including the vendor files, however this takes quite long ...

since I do not have ssh access to my host I'd like to know wether there's an option to run composer / artisan commands without this.

I found this link: Use Composer without ssh access to server (Second Answer) which describes how to run composer using

However, I can change folders by console etc. but I cannot run php commands - I always get internal server error


Check if your shared hosting provider has console feature in their CP which allows to run shell commands. Maybe you'll be able to run commands from there.

As alternative, you could right your own artisan runner and call artisan commands from the code:


To run composer command from PHP code, use shell_exec:

shell_exec('composer update');