php magento2.4.3 版本 开发环境部署(无示例数据)
本次安装基于 windos10 + phpstudy8.1.1.3 + php7.4.3 + mysql8.0.12 + nginx1.15.11 + magento2.4.3
。
安装步骤很简单,安装phpstudy,githup下载magento,配置nginx,安装magento,访问站点。
但是安装过程,遇到的坑确实不少。。。。。。
1、安装phpstudy和安装composer。
省略。
2、下载magento。
打开githup地址:
https://github.com/magento/magento2/tree/2.4.3
寻找仓库tags中的2.4.3版本
下载(Download ZIP): magento2-2.4.3.zip文件
解压magento2-2.4.3.zip文件至phpstudy网站根目录WWW目录下:
3、配置nginx。
①:
②:
修改替换第一次生成网站后nginx生成的配置文件内容,这是local.magento.com_80.conf要替换的内容
upstream fastcgi_backend {
server 127.0.0.1:9001;
}
server {
listen 80;
server_name local.magento.com;
error_log D:/phpstudy_pro/Extensions/Nginx1.15.11/logs/local.magento.com_error.log;
access_log D:/phpstudy_pro/Extensions/Nginx1.15.11/logs/local.magento.com_acess.log;
set $MAGE_ROOT D:/phpstudy_pro/WWW/magento2-2.4.3;
include D:/phpstudy_pro/WWW/magento2-2.4.3/nginx.conf.sample;
}
③:修改nginx.conf.sample,如下:
# PHP entry point for main application
location ~ ^/(index|get|static|errors/report|erro