C
C
chincharovpc2019-05-11 10:59:27
PHP
chincharovpc, 2019-05-11 10:59:27

How to run php artisan on hosting?

I have uploaded all the laravel files to the hosting, connected to the database and now I need to run the php artisan migrate command.
The hosting has an SSH terminal and composer.
How to run php artisan commands?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
dk-web, 2019-05-11
@chincharovpc

for me it looks like this...
/opt/php73/bin/php composer.phar install - install packages
/opt/php73/bin/php artisan
i.e. you need the path to the php interpreter.
I found out in the hosting TP ... because the versions vary.

O
OnYourLips, 2019-05-11
@OnYourLips

You just need to run this command over ssh. Exactly the same as locally.
What motivated you when you put "medium" difficulty on a primitive question?

A
Andrey, 2019-05-11
@VladimirAndreev

/usr/bin/env php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question