Installation and learning to solve problems ThinkPHP6.0

Installation and learning to solve problems ThinkPHP6.0

  ThinkPHP6.0 development version already on the line, I have been waiting for him for a long time, and now writing a series to record the use Thinkphp6.0, we are now beginning to learn it from the installation.

  Let's make sure ThinkPHP environmental requirements, the minimum requirement is PHP 7.1.0, so we need to install a version higher than or equal to PHP version 7.1.0, I know how to install can read my previous blog, you can also directly use phpstudy, installation is very easy, not explained in detail here, can go to learn more.

Installation ThinkPHP need to install composer, here I will not speak, can ThinkPHP6.0 installation manual have detailed tutorial, I am here to talk about the site and build on it to solve some problems. ThinkPHP6.0 Manual: https://www.kancloud.cn/manual/thinkphp6_0/1037479

       Then we put our ThinkPHP6.0 downloaded, we need to build up the environment, you first need to install some phpstudy, installed after the installation we need more than PHP7.1.0 version

 

 

 After installation, we went to the building site

 

 

 

 

 

 

 location / {

    if (!-e $request_filename){

        rewrite ^(.*)$ /index.php?s=$1 last; break;

    }

}    

  This will create a Web site out, after confirmation, we need to restart the apache or nginx, we visit it and see results

 

 

 

Well, we ThinkPHP the installation is successful, here is the problem I encountered when installing!

 

Here Tip PHP version I'm using is 7.0.28, but I installed PHP7.3 in phpstudy, why it would be like this.

My computer was originally installed before 7.0.28, and environment variables using 7.0.28, so we need to change it.

Guess you like

Origin www.cnblogs.com/shengChristine/p/12030682.html