Yii 2 comes with two templates, basic and advanced. We will be working with advanced throughout the series.
In order to download the Yii 2 advanced framework, visit http://www.yiiframework.com/download/ and click on the 'Yii 2 with advanced application template'.
Once you download the tar file, extract it and move the entire advanced directory to your document root.
You can configure the document root directory in your Apache virtual host configuration file. It is the directory from where your files are served to the browser. Typically located at /var/www/html in Ubuntu environment. In Windows, it is where your WAMP or XAMPP is installed inside the htdocs directory.
So the directory structure looks like below
The root directory contains the following subdirectories:
Root directory contains a set of files.