If you can`t start built-in web server in Yii2 Framework on Windows with error message like Document root “…\console/web” does not exist. in advanced application template you should use the following commands:
1. For backend admin application:
yii.bat serve/index --docroot="backend/web/"
2. For frontend application:
yii.bat serve/index --docroot="frontend/web/"
For basic application template use command:
yii.bat serve/index --docroot="web/"
On Linux or MacOS use ./yii instead of yii.bat