In xampp installation thinkphp5

Installation thinkphp5 in xampp2016

(My pit, it means the thinkphp5 files into htdocs under)

1. xampp php file in the folder path into the environment variable settings, so as to run composer global

Environment variable settings:

 

 2. composer of two php files into folders

(The composer decompressed packet and a link thinkphp5.1: https: //pan.baidu.com/s/1kYUM1KAkTe2ZSubVRQ6zNg
extraction code: ueze)

 

 

 

 

2. cmd executed in window:

composer config -g repo.packagist composer https://packagist.phpcomposer.com

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

(Failure, open xampp / php / php.ini, ctrl + F to find the extension_dir, modify extension_dir = "E: \ xampp \ php \ ext" (specifically the disk position)

 

 

3. cmd performed under htdocs directory:

composer create-project topthink/think=5.1.* tp5.1test

(Failure to find your php.ini, ctrl + F to find the extension = php_openssl.dll This configuration items, remove the semicolon in front, save and exit and restart php;)

Appears in the htdocs folder tp5.1test the successful test: Enter the URL http://127.0.0.1/tp5.1test/public/

success:

 

 

Guess you like

Origin www.cnblogs.com/first-bloodlalala/p/11868839.html