1.2.1.创建项目
composer create-project topthink/think=5.1.* leyou-shop
1.2.2.配置虚拟主机
修改vhost配置文件
<VirtualHost *:80>
DocumentRoot "D:\leyou-shop\public"
ServerName local.leyou.com
ServerAlias
<Directory "D:\leyou-shop\public">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
修改hosts文件
127.0.0.1 local.leyou.com
重启Apache
1.2.3 常规配置

image.png

image.png