[英]My WampSever 3 Localhost isn't opening up one of my local host pages (but opens the others fine)
I have a number of web-projects saved in my localhost (using Wampserver 3).我在我的本地主机中保存了许多 Web 项目(使用 Wampserver 3)。 One of those web-projects uses php and recently it seems to have stopped working.
这些网络项目之一使用 php,最近它似乎已停止工作。 By stopped working I mean, it seems to load for a while then gives me the message -
通过停止工作我的意思是,它似乎加载了一段时间然后给我消息 -
This site can't be reached.
无法访问此站点。 Localhost refused to connect.
本地主机拒绝连接。
I had this working before and I guess I changed something and now it's not connecting.我以前有这个工作,我想我改变了一些东西,现在它没有连接。 I can access my php with my localhost password and username so the issue isn't with my local host login details.
我可以使用我的本地主机密码和用户名访问我的 php,因此问题不在于我的本地主机登录详细信息。
What I tried to do, just to confirm it was something to do with some php code I had, was I changed my index file to a very simple index.html file:我试图做的,只是为了确认它与我拥有的一些 php 代码有关,是我将索引文件更改为一个非常简单的 index.html 文件:
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
However, even this brings up the same 'refused to connect' error message.但是,即使这样也会出现相同的“拒绝连接”错误消息。 Does this mean it's not a php code issue?
这是否意味着它不是 php 代码问题? Again, other web-projects in the same localhost folders seem to work.
同样,同一本地主机文件夹中的其他 Web 项目似乎也能正常工作。
Any ideas on how this could be resolved would be much appreciated.任何关于如何解决这个问题的想法将不胜感激。
Many thanks,非常感谢,
Adam亚当
So I know this isn't really a satisfactory solution, but in trying to work out which file was causing me the issue, I created a new folder in my localhost root, and moved the files across from the location which wasn't working to the new location (which worked fine - this was the first test).所以我知道这并不是一个真正令人满意的解决方案,但在尝试找出导致我出现问题的文件时,我在本地主机根目录中创建了一个新文件夹,并将文件从无法正常工作的位置移动到新位置(效果很好——这是第一次测试)。 I ended up moving up all the files across and I didn't see the connection to local host error again.
我最终移动了所有文件,但我没有再次看到与本地主机的连接错误。
Basically, I just created a new folder, moved the contents to it, and it worked.基本上,我只是创建了一个新文件夹,将内容移到其中,然后就可以了。
No idea why.不知道为什么。
Thanks谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.