How to move the project on the example of Yii2?

Developed a project using Yii2 basic and composer on a local server. Now I want to move it on a simple hosting.
Please tell me how to do it, especially interested in the question:
1. Need to move only files or yii2 composer too?
2. If you want to move, and then hosting more and install composer, this is done via ssh?
3. Hosting supports installing composer only through VPS, can I transfer and run the project meringue transfer composer?
July 8th 19 at 11:18
1 answer
July 8th 19 at 11:20
1. Enough files
2. see item 1
3. see item 1

PS. It is advisable when you transfer to make the right structure. To put content in the public web folder, and the rest low to a higher level
I understood and did, but writes an error Error when migrating to yii2 hosting? suggested what you need to do composer install , and therefore I think what to do - Chesley commented on July 8th 19 at 11:23
: If there is a composer on server option. But the error is not in his absence. You just do not suffered or probably suffered wrong or had not fixed the way.
Why is looking for a vendor folder in public_html? As I wrote it should be at a higher level. Basically copy everything in the web folder in pablic_html, and for the rest of yii, create a folder at the level above, i.e., yii folder and public_html will be in the same folder. Then go into public_html in there index.php open it and the right path according to new location.
For example, /../yii/vendor/autoload.php and so on. - Henderson_Beat commented on July 8th 19 at 11:26
Judging by the error, just the way in index.php and lead no where to go. - Henderson_Beat commented on July 8th 19 at 11:29

Find more questions by tags PHPYii