PHP Yii2.0 Framework installation using tutorial

Source: Internet
Author: User
1. Download YII2.0 source file

2. Unzip Yii2.0, copy to website root directory

3. Import into your own IDE

4. The above basic construction is OK

5. The next step is to build your own application project, copy backend this directory to the sibling directory, and named blog

6. Configure bootstrap.php

7. Copy backend This directory to a sibling directory and named blog

8. Configuring the Init.bat File

9. Open the OpenSSL extension in php.ini

10. Next Run Init.bat, select 0 to return the car, then select Yes to enter

11. Completed the construction of the project

12. To access the application, if this error occurs, resolve the following:

Workaround:

It's OK to run again.

13. If this interface is present, OK.

14. Ways to access address changes

After the change: http://blog.xkhua.com

WORKAROUND: In Apache's vhost.conf configuration file, add the following, restart Apache

15. When I enter a user name and password, I am prompted with this error

Workaround:

Configuration code: Http://www.yiichina.com/doc/guide/2.0/db-dao

15. Configure the namespace, the ID of the configuration item

  • Related Article

    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.