YII2.0 installation tutorial, database configuration front and back table

Source: Internet
Author: User
Tags yii

1. First download yii-advanced-app-2.0.6.tgz

My local service is Apache.

2. Unzip to the E:\WAMP\WWW\YII2 directory and cut all files in the directory advanced to E:\wamp\www\yii2

3. Open cmd, switch to the current directory, run the Init.bat file

4. You can now open your browser: Enter http://localhost:8080/yii2/

5. Click frontend "Web" To view the successful installation


6. Next we start to configure the database, first found in the current directory common>config>main-local.php

Open main-local.php to modify, change yii2advanced to your own database, mine is the new Yii2;

7. Open cmd to switch to root E:\wamp\www\yii2, enter: Yii.bat migrate (meaning to create a data table for migrate), where a user table is created by default

8. We can switch to the background interface to see the input Url:http://localhost/yii2/backend/web

9. How do I log in or register? All right, open the front desk. Click Signup to register, such as Demo

10. Open the Database user table for viewing

By the end of this installation, you can log in to the front office.

YII2.0 installation tutorial, database configuration front and back table

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.