安装PHP环境
wamp 集成环境 :修改PHP配置文件
- 开启PHP动态扩展(magento依赖)
php_xsl.dll
php_soap.dll
- 更改内存限制
memory_limit = 128M
更新为
memory_limit = 2G
- 更改内存限制
配置Apache虚拟机
- windows添加host配置
C:\Windows\System32\drivers\etc\host
添加
127.0.0.1 magento2ce.com
- 开启加载虚拟机配置文件
apache2\conf\httpd.conf
开启
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
- 添加虚拟机配置
apache2\conf\extra\httpd-vhosts.conf
添加
- windows添加host配置
# 监听所有IP的80端口
<VirtualHost *:80>
# 管理员的邮件地址
ServerAdmin apache@qq.com
# 虚拟机域名(网站名称/主机名)
ServerName magento2ce.com
# 网站根目录
DocumentRoot "E:/www/magento2ce"
# 错误日志
ErrorLog "logs/magento2ce-error.log"
# 访问日志
CustomLog "logs/magento2ce-access.log" common
<Directory "E:/www/magento2ce">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.php
AllowOverride All
#允许所有请求
Require all granted
</Directory>
重启Apache
创建数据库
phpMyAdmin ==> 账户 ==> 新增用户账户 ==> 添加相关信息官方下载zip包
网址:https://magento.com/tech-resources/download
两个版本,根据需求,选择一个,解压到网站根目录- 有演示数据(ZIP with sample data)
- 无演示数据(ZIP with no sample data)