Tuesday, 6 September 2016

yii2 advanced installation in xampp / Wamp

Installing Yii2.0 from an Archive File
Download the archive file from yiiframework.com
Unpack the downloaded file to a Web accessible folder.
Getting Started
  1. After installation of application, you have to follow these steps to initialize the installed application. You only need to do these once for all.
    type the following code in your command prompt to inititalise
    php c:/wamp/www/yii2advanced/init



2. Create a new database and adjust the components.db configuration in C:/wamp/www/yii2advanced/common/config/main-local.php accordingly.
3. Apply migrations with console command c:\wamp\www\yii2advanced> yii migrate


4.Set document roots of your Web server:

  1. for frontend /path/to/yii-application/frontend/web/ [ In my case http://localhost/yii2advanced/frontend/web/index.php"
  2. for backend /path/to/yii-application/backend/web/ [ In my case http://localhost/yii2advanced/backend/web/]
yii2 advanced installation in xampp

No comments:

Post a Comment