无法在 xampp 服务器上安装 magento 2

Cant install magento 2 on xampp server

我正在尝试安装 Magento 2 并 运行 它在 XAMPP 服务器上。

我已经安装了 XAMPP 和 Apache,我已经下载了 Magento 2 并将文件解压缩到 htdocs

但是当我在浏览器中输入 http://localhost/magento 时,我得到了这个:

我想我应该有 Magento 设置页面而不是这个页面。

当我点击 Magento 文件夹时,我得到了这个错误:

Vendor autoload is not found. Please run 'composer install' under application root directory."

那么这里的问题是什么?有谁能够帮助我?

要启动您的 magento,您需要将文件从 magento2-2.3.5-pl 移动到 MAGENTO 目录。 (升一级)

然后你需要安装作曲家(https://getcomposer.org/)。

和运行 magento 目录中的终端并使用命令"composer install"。此命令将安装 运行 引擎

所需的其他库

你好像没有在官网下载magento 有两种安装 magento 2 的方法 1) 从我在此处描述的 magento 网站下载 http://this-adarsh.epizy.com/installation-of-magento-2/

2) 下面给出了通过 composer 的步骤

步骤 1:安装作曲家

步骤 2:为 magento 安装创建数据库

第 3 步:获取 magento 2 市场密钥

第 4 步:使用

创建一个新的 Composer 项目

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition(如果是社区版)

composer create-project --repository-url=https://repo.magento.com/ magento/project-enterprise-edition(如果是企业版) 第五步:项目创建成功后运行

bin/magento setup:install \
--base-url=http://localhost/magento2ee \
--db-host=localhost \
--db-name=magento \
--db-user=magento \
--db-password=magento \
--admin-firstname=admin \
--admin-lastname=admin \
--admin-email=admin@admin.com \
--admin-user=admin \
--admin-password=admin123 \
--language=en_US \
--currency=USD \
--timezone=America/Chicago \
--use-rewrites=1

(更改数据库名称等参数)

您可以在 https://devdocs.magento.com/guides/v2.3/install-gde/composer.html

找到更多信息

如果您还需要什么,请告诉我

祝你有美好的一天!