我正试图在ubuntu 20.04上安装magento 2.4
我已经把马根托和作曲家放在一起了。
mysql和apach运行良好,php安装正确,如下所示
所有magento命令都正常工作,所以我认为magento正在工作。但是,当我导航到http://127.0.0.1/magento2/时,我没有找到404,如下所示
我认为问题可能在于php和apache的信任。
这是我的magento配置文件
/etc/apache2/sites-available/magento2.conf

mysql和apach运行良好,并正确安装了php:

magento2目录

问题是我试图得到magento url,我得到了这个错误

UPDATED1 :
http://127.0.0.1/

发布于 2022-09-17 01:35:52
看起来Magento2.4不支持基于web的installation.check这个链接

以下是我给你的建议:
如果已安装了所有需求系统,请执行以下步骤:

<VirtualHost *:80>
ServerName magento.local
ServerAdmin webmaster@localhost
DocumentRoot /var/www/magento/
<Directory /var/www/magento/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noetsudo a2ensite magento && sudo a2enmod rewritesudo systemctl restart apache2bin/magento setup:install \
--base-url=http://magento.local/ \
--db-host=localhost \
--db-name=db_name \
--db-user=db_user \
--db-password=db_pass \
--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 \
--search-engine=elasticsearch7 \
--elasticsearch-host=localhost \
--elasticsearch-port=9200 \
--elasticsearch-index-prefix=magento2 \
--elasticsearch-timeout=15希望这能帮到你。
https://stackoverflow.com/questions/73109606
复制相似问题