Yii2 How to install the actual combat tutorial, Yii2 Tutorial _php Tutorial

Source: Internet
Author: User

Yii2 actual Combat Tutorial How to install, Yii2 actual combat tutorial


The official documentation gives two ways to install the YII2. One is installed through an archive file and the other is installed through composer. What is the difference between the two ways? We do not discuss here, after installation you will naturally understand.

I believe many small partners want to learn Yii2, but most of them die at the beginning. The so-called beginning of everything is difficult, Yii2 undoubtedly better confirmed this point, has not started to give you a wooden club first.

Pre-Installation Preparation work

Installing through an archive file
We first install the YII2 in a simple way, the so-called simple way, in fact, it should be easier to install the success of the way, that is to install through the archive file! That is, the basic framework is someone else to organize, you just need to download and unzip and simple configuration. Why do you want to file the way to install it, in fact, you my heart is clear, because the other way of installation failed, there is no choice. Let's look at the specific steps

1, to the official website to download an advanced template, about the basic template we do not introduce, really did not introduce. Please refer to the location marked in the download

(see the original picture)

2, after the decompression copy advanced directory to the Web accessible directory, the file name advanced, do not change

3. If you are a class Linux system, switch to the advanced directory to execute the PHP init command to initialize, if you are a Windows system, double-click the Init.bat file under the Advanced directory

4, Next will let us choose development Environment 0 Development Environment 1 production environment Here we choose 0 development environment, enter after entering, will let us enter yes or no to confirm, here we enter Yes confirm can

5, verify whether the installation is successful, this time you can enter the http://localhost/advanced/frontend/web/in the browser address bar

Look at the effect, the interface shows a large congratulations that represents the successful installation!

Installation via composer
If this is the first time you've heard of composer or the first time you've ever used composer, I suggest you get to know what composer is and what this guy is doing. Here is a copy of the composer Chinese document, I hope you have some help!

In general, the data for the composer installation package (primarily the zip file) is downloaded from github.com and the metadata for the installation package is downloaded from packagist.org. As we all know, the foreign website connection speed is very slow, and at any time may be "the wall" even "does not exist", this will cause many people composer to fail. We suggest that everyone's composer domestic mirror, can refer to Packagist/composer China full-volume mirror, so that we can again through the composer installation or update will not be afraid of the problem of failure, of course, you are slow speed is still not good. Let's look at the specific steps

[Considering the current domestic web site most of the collection of articles very frequently, not to mention the original source, the original author would like to see the original text, in case there are any problems can not update all articles, to avoid misleading! ]

Continue Reading

http://www.bkjia.com/PHPjc/1129136.html www.bkjia.com true http://www.bkjia.com/PHPjc/1129136.html techarticle yii2 Actual Combat tutorial How to install, Yii2 actual combat tutorial official documentation gives two YII2 installation methods. One is installed through an archive file and the other is installed through composer. Two ...

  • 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.