N
N
Nikita Rubinkovskiy2018-02-07 12:02:03
SSH
Nikita Rubinkovskiy, 2018-02-07 12:02:03

How to execute commands on hosting via SSH/Putty?

Hello!

Transferred a site written using the Laravel framework to hosting, but there was a need to create several controllers and models using composer.

How can this be done via a remote SSH connection?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Puma Thailand, 2018-02-07
@avatar22007

Instead of php artisan
You need to write pathtorightphpversion artisan
And so you try to run it on the system php and it's old

A
Alexey Ukolov, 2018-02-07
@alexey-m-ukolov

Just like in a regular console, what exactly is the question?

M
Maxim Fedorov, 2018-02-07
@Maksclub

put Putty

  • enter into it ssh [email protected], only your IP or host name (if the hosting issued the named name)
  • it asks for a password (but doesn't show how you enter it)
  • after entering - you are in the user's home folder /home/user/
  • then go to your site to the root (only you know where it is, my projects are stored in the user folder) and make your commands there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question