在本地主机上找不到 Magento 2 安装
Can't find Magento 2 install on localhost
我 运行 我的 magento 使用此命令安装:
php bin/magento setup:install --base-url='http://127.0.0.1/mage2'
--db-host='localhost' --db-name=*** --db-user=***
--db-password=*** --admin-firstname='System' --admin-lastname='Administrator'
--admin-email='admin@example.com' --admin-user=***
--admin-password=*** --language='sv_SE' --currency='SEK'
--timezone='America/Chicago'
我希望我的 Magento 2 网站出现在 http://www.my-magento-host.com/mage2 但它是空的。
如果我转到 root/(magento2-folder)/public_html,文件就在那里。我尝试过的所有 php bin/magento 命令也都有效。
我只是不知道我的网站在哪里...
我的网络浏览器显示此错误:
未找到
在此服务器上找不到请求的 URL /index.php。
Apache/2.4.7 (Ubuntu) 服务器在(我的服务器 ip)端口 ****
正确的基数 url 不是 http://127.0.0.1/。
它的语法看起来像这样 http://111.111.111.111/.
所以你需要输入base-url的serverip或domain。
对于我的情况,正确的基础 url 是 http://myserverip/mage2。
我 运行 我的 magento 使用此命令安装:
php bin/magento setup:install --base-url='http://127.0.0.1/mage2'
--db-host='localhost' --db-name=*** --db-user=***
--db-password=*** --admin-firstname='System' --admin-lastname='Administrator'
--admin-email='admin@example.com' --admin-user=***
--admin-password=*** --language='sv_SE' --currency='SEK'
--timezone='America/Chicago'
我希望我的 Magento 2 网站出现在 http://www.my-magento-host.com/mage2 但它是空的。
如果我转到 root/(magento2-folder)/public_html,文件就在那里。我尝试过的所有 php bin/magento 命令也都有效。
我只是不知道我的网站在哪里...
我的网络浏览器显示此错误:
未找到
在此服务器上找不到请求的 URL /index.php。
Apache/2.4.7 (Ubuntu) 服务器在(我的服务器 ip)端口 ****
正确的基数 url 不是 http://127.0.0.1/。
它的语法看起来像这样 http://111.111.111.111/.
所以你需要输入base-url的serverip或domain。
对于我的情况,正确的基础 url 是 http://myserverip/mage2。