【问题标题】:Installing magento on local virtual host windows 7在本地虚拟主机 windows 7 上安装 magento
【发布时间】:2013-09-30 18:15:33
【问题描述】:

我正在尝试在运行 XAMPP 的系统中的虚拟主机上安装 magento

到目前为止,我已经完成了以下操作:

在 windows/system32/driver/host 下的 hosts 文件中添加行

192.168.1.69       magento2.hue
192.168.1.69       www.magento2.hue

然后在 XAMPP 文件夹的 httpd-vhosts.conf 中添加代码

NameVirtualHost 192.168.1.69:80
<VirtualHost magento2.hue>
    ServerAdmin magento2.hue
    DocumentRoot "C:/www/mag_domain2/httpdocs/"
    ServerName magento2.hue
    ServerAlias www.magento2.hue
    ErrorLog "C:/www/mag_domain2/httpdocs/error.log"
    CustomLog "C:/www/mag_domain2/httpdocs/access.log" combined
    <Directory "C:/www/mag_domain2/httpdocs">
        Options Indexes FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

重新启动 Apache 和 Mysql,但未加载站点,即 magento2.hue。

你能弄清楚我在这里做错了吗?

【问题讨论】:

  • 先检查基本的东西,ping www.magento.hue。然后“telnet www.magento2.hue 80”让我知道结果。但是,我怀疑 Windows 防火墙会导致问题。
  • 我已检查禁用防火墙,结果相同
  • 还有其他测试,ping 和 telnet?

标签: php apache magento


【解决方案1】:

尝试使用下面的 httpd.conf 设置它在我的最后工作

NameVirtualHost *:80

<VirtualHost *:80>
 DocumentRoot "D:/xampp/htdocs/yourmagentosetup" 
 ServerName magento2.hue
</VirtualHost> 

希望这对你有用。

【讨论】:

  • @SKV,我很高兴能对我们的答案进行投票,以便将来有类似问题的人可以使用。
【解决方案2】:

天哪,

我只是想通了.. 我之前添加了另一个指向 192.168.1.59 并且工作正常的虚拟主机

我只需要将新的 IP 指向相同的 IP 并将 ServerName 更改为 magento2.hue 而不是之前的 magento.hue。

现在可以了。

感谢 liyakat 和 Arjun 查看此问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-05-13
    • 2017-12-02
    • 2010-09-20
    • 2014-08-11
    • 1970-01-01
    相关资源
    最近更新 更多