This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
magento [2017/12/10 08:40] jordan [Magento安装常见问题] |
magento [2023/03/08 16:09] (current) xujianglong ↷ Page moved from 内部资料:magento to magento |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | # Magento | + | ====== |
- | ## Magento版本介绍 | + | ===== Magento版本介绍 |
- | ## Magento安装 | + | Magento包含社区版(Magento Open Source)和企业版(Magento Commerce)两种版本,其中社区版免费开源。 |
- | ### Magento环境要求 | + | ===== Magento安装 ===== |
- | 详见[Magento 2.1 环境要求官方文档](http:// | + | [[http:// |
- | * 64位Linux操作系统(RedHat Enterprise Linux(RHEL), | + | ==== Magento环境要求 ==== |
- | * Web服务器(Apache2, | + | |
- | * PHP及PHP扩展 | + | |
- | * 数据库(MySQL等) | + | |
- | ### Magento安装步骤 | + | 详见[[http:// |
- | * [下载Magento Open Source](http:// | + | |
- | * 上传到服务器(使用ftp或scp等) | + | * Web服务器(Apache2, nginx) |
- | * 解压安装包到合适的目录([[tar]], gunzip, unar等) | + | * PHP及PHP扩展 |
- | * 安装 | + | * 数据库(MySQL等) |
- | * 命令行安装 | + | |
- | * 安装向导安装 | + | |
- | 使用浏览器打开`http://< | + | ==== Magento安装步骤 ==== |
- | ### Magento安装常见问题 | + | < |
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
- | #### setup页面无法正确显示 | + | ==== Magento安装常见问题 ==== |
- | 如果打开setup页面,没有显示magento的安装页面,而是纯文本内容,可能是apache没有启用php模块,参照[Apache PHP配置](apache2配置# | + | === setup页面无法正确显示 |
- | {{: | + | |
- | #### Readiness Check失败 | + | 如果打开setup页面,没有显示magento的安装页面,而是纯文本内容,可能是apache没有启用php模块,参照[[apache2配置#apache2_php配置|Apache PHP配置]] {{magento_home_page_without_style.png? |
- | * PHP Settings | + | === Readiness |
- | | + | |
- | * PHP Extensions Check: 11 missing PHP extensions. | + | Ubuntu下通过'' |
- | Ubuntu下通过`sudo apt install php7.0-< | + | |
+ | |||
+ | Ubuntu下通过'' | ||
+ | |||
+ | module名称基本与extension名称相同,但是部分module可能包含了多个extension,如果安装过程中发现php7.0-< | ||
+ | |||
+ | * File Permission Check: 5 file permission not met | ||
+ | |||
+ | 将magento根目录的owner设置为www-data即可,例如'' | ||
+ | |||
+ | === Add a Database失败 === | ||
+ | |||
+ | 提示:Database ' | ||
+ | |||
+ | 需要在服务器上先进入mysql数据库,手动创建数据库 | ||
+ | |||
+ | === 安装成功后404错误(包括打开首页样式错误和admin页面404错误) === | ||
+ | |||
+ | 解决方案:启用Apache2的rewrite,详细操作如下(以Apache2.4配置为例): | ||
+ | |||
+ | * 启用rewrite模块'' | ||
+ | * 修改Apache2站点配置(Ubuntu下通常是'' | ||
+ | |||
+ | < | ||
+ | < | ||
+ | AllowOverride | ||
+ | </ | ||
+ | </ | ||
+ | * 重启Apache2'' | ||
+ | |||
+ | ===== Magento配置 ===== | ||
+ | |||
+ | ==== Magento cron job配置(TBD) ==== | ||
+ | |||
+ | ===== Magento使用常见问题 ===== | ||
+ | |||
+ | ==== 新增的产品在前端看不到 ==== | ||
+ | |||
+ | 解决方案:确保产品的Stock Status是In Stock | ||
- | ## Magento配置 |