Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yii2 Advanced installation throws error 'Document root "/var/www/html/project/console/web" does not exist.' while running php Yii serve

I have tried yii2 advanced installation, it works and the pages have been created. But to verify installation I used the command PHP YII serve. it throws the error

Document root "/var/www/html/highwaymotels/console/web" does not exist.

But when I check the advanced template github it has the same folder as mine. Am I doing anything wrong? else what is the issue here?

like image 636
Abel Avatar asked Aug 31 '16 16:08

Abel


1 Answers

yii serve --docroot="frontend/web/"

like image 196
Achmad Hadi Kurnia Avatar answered Sep 22 '22 05:09

Achmad Hadi Kurnia