Search code examples
phplinuxlaravellaravel-artisan

How to execute laravel artisan commands in linux server


I have uploaded my project on a Linux server, but I don't know how to execute Laravel commands on the server.

Commands:

php artisan migrate
php artisan migrate:rollback
php artisan migrate:reset
php artisan migrate:refresh
php artisan db:seed

Solution

  • If the lemp stack is installed along with composer. Run composer install Then the command should be available.

    https://www.digitalocean.com/community/tutorials/how-to-install-laravel-with-an-nginx-web-server-on-ubuntu-14-04