how to get yii 2 app running on hosted webserver

hi

i am new to yii 2

a few years ago i progged in yii 1

now i’d like to code a new little project

but i do not understand how to get it work on a hosted webserver?

in yii 1 i could copy all files and directorys and it worked, but now i have to start the app by php yii serve --port=8888

but on hosted webserver i can’t do this

how do i get it work?

http://www.yiiframework.com/doc-2.0/guide-start-installation.html#configuring-web-servers