英文:
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 虚拟主机。
-
停止 WAMPServer。
-
编辑
wamp64\bin\apache\apache2.4.xx\conf\extra\httpd-vhosts.conf
文件。 -
查找并移除定义你遇到问题的虚拟主机的
<VirtualHost> ...... </VirtualHosts>
部分。
不要移除本地主机的 VirtualHost
如果你使用的是 WAMPServer 32位版本,文件夹可能叫做
wamp
而不仅仅是wamp64
。
现在你应该能够重新启动 WAMPServer。
英文:
Manually remove a WAMPServer Virtual Host.
-
Stop WAMPServer.
-
Edit
wamp64\bin\apache\apache2.4.xx\conf\extra\httpd-vhosts.conf
-
Find and remove the
<VirtualHost> ...... </VirtualHosts>
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论