当前位置:网站首页>Think PHP environment construction notes

Think PHP environment construction notes

2022-06-22 13:05:00 Wandering hunter

1、php Installation package download

Download address :https://windows.php.net/download

2、PHP Class library installation file

1、 download composer.phar file , And put it on php The root directory .
2、 New file composer.cmd, write in :@php “%~dp0composer.phar” %*
3、composer update The command operation , Update class library .

3、 Verification code acquisition and installation

1、D:\opensource\php-7.4.24-Win32-vc15-x64\php.ini File modification

php Create a new file in the root directory verify, Download the certificate https://curl.se/docs/caextract.html, Put it in there

;openssl.cafile Modify it as follows :

openssl.cafile=D:/opensource/php-7.4.24-Win32-vc15-x64/verify/cacert.pem

;extension=openssl Revised as follows :

extension=openssl

Verification code acquisition requires operations :

;extension=gd2  It is amended as follows  extension=gd2

cmd command , Execute in the home directory

composer require topthink/think-captcha ( remarks : There may be various prompts during execution , Modify according to the file prompt )

;extension_dir = “ext” It is amended as follows :

extension_dir = "ext"

4、 Service startup :

cmd Command into file public Catalog , perform :

 php -S localhost:8888  router.php ( explain :8888 Port customization )
原网站

版权声明
本文为[Wandering hunter]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206221222079038.html