无法在Wampserver中删除虚拟主机,因为存储虚拟主机的设备已损坏。

huangapple go评论95阅读模式
英文:

Unable to delete virtual host in Wampserver because the storage device the virtual host was in got corrupted

问题

我一直在使用Wampserver来开发一个网站,但由于某种原因,存储该网站的设备损坏了。现在我需要再次使用Wampserver,但由于我无法删除的虚拟主机,图标无法变成绿色,所以我无法使用它。我需要做的是删除阻止Wampserver变为绿色的虚拟主机。有人能帮帮我吗?我使用的是Wampserver 3.1.9 64位版本。

我已经尝试在工具菜单中重新安装所有服务,但没有起作用。我已经在网上搜索了这个问题,但没有找到相关信息。

英文:

I have been using Wampserver to work on a website and for some reason the storage device that the website was in got corrupted. Now I need to use Wampserver again and can’t do it because the icon won’t turn green due to the virtual host that I haven’t been able to delete. What I need to do is delete the virtual host that is preventing Wampserver from turning green. Can anybody help me please? I have Wampserver 3.1.9 64bit.

I have tried reinstalling all services in the tools menu, but it didn't do the trick. I have googled the problem but there's nothing about it.

答案1

得分: 1

手动移除 WAMPServer 虚拟主机。

  1. 停止 WAMPServer。

  2. 编辑 wamp64\bin\apache\apache2.4.xx\conf\extra\httpd-vhosts.conf 文件。

  3. 查找并移除定义你遇到问题的虚拟主机的 <VirtualHost> ...... </VirtualHosts> 部分。

不要移除本地主机的 VirtualHost

如果你使用的是 WAMPServer 32位版本,文件夹可能叫做 wamp 而不仅仅是 wamp64

现在你应该能够重新启动 WAMPServer。

英文:

Manually remove a WAMPServer Virtual Host.

  1. Stop WAMPServer.

  2. Edit wamp64\bin\apache\apache2.4.xx\conf\extra\httpd-vhosts.conf

  3. Find and remove the &lt;VirtualHost&gt; ...... &lt;/VirtualHosts&gt; that defined the virtual host that you are having problems with.

Dont remove the VirtuaHost for localhost

>If you are using WAMPServer 32bit the folder may be called wamp rather than just wamp64

Now you should be able to restart WAMPServer

huangapple
  • 本文由 发表于 2020年1月6日 23:33:54
  • 转载请务必保留本文链接:https://go.coder-hub.com/59614824.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定