我成功安装了Magento 2.3,但是当键入
I installed Magento 2.3 successfully but when type
,这些是在控制台中发现的错误:
and these are the errors found in the console:
管理面板上也面临相同的问题.我当前的PHP版本是7.2.14.
The same issue is also faced on the admin panel. My current version of PHP is 7.2.14.
推荐答案您不能将localhost/用作Magento 2的域名,至少应使用localhost/.
You cannot use localhost/ as domain name with Magento 2, you should at least use localhost/.
在Docker/XAMP/MAMP/WAMP中更改您的vHost ...以匹配您的新域名,例如localhost/;
使用sudo权限编辑主机文件:
Edit your hosts file with sudo permissions :
-
Debian/MacOS:/etc/hosts
Windows:C:\Windows\System32\drivers\etc\hosts
在文件的底部,添加以下内容:127.0.0.1 localhost
At the bottom of the file, add the following: 127.0.0.1 localhost
转到您的Magento数据库并运行以下查询:
Go to your Magento db and run the following query :
UPDATE `core_config_data` SET `value`='localhost/' WHERE `value`='localhost/';
cd /YOUR/PROJECT/PATH php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy
更多推荐
Magento开源2.3
发布评论