Windows 7 上的 Apache、PHP、MYSQL
在 Windows 7 上设置这些的最佳(也是最简单)方法是什么?我尝试过 Xampp 和 WAMP,但安装它们后得到的只是一个空白的本地主机。因此,我使用以下代码创建一个 php 信息文件:
<?php
phpinfo();
?>
将其放入 httpdocs 文件夹中,使用 http://localhost/ 调用它info.php ,我收到 404 文件未找到错误。尽管我遵循了典型的安装设置。
What is the best (and easiest) way to set these up on Windows 7? I have tried Xampp and WAMP but all I get after installing them is a blank local host. So I create a php info file using the following code:
<?php
phpinfo();
?>
Put it in the httpdocs folder, call it using http://localhost/info.php and I get a 404 file not found error. Even though I followed the typical install settings.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否有机会在后台运行 Skype? Skype 声称端口 80 和端口 443 作为防火墙解决方案。您可以在高级选项 -> 中禁用此功能联系。
我几乎每次安装新电脑时都会发生这种情况......
Are you by any chance running Skype in the background? Skype claims port 80 and port 443 as a firewall workaround. You can disable this in the advanced options -> connection.
This happens to me almost all the time I set up a new PC...
问题不在于 xampp 或 wamp。问题在于我使用互联网时安装的代理。它已阻止对本地主机的访问。在 Internet 选项中绕过 localhost 的代理 ->连接->局域网设置->代理服务器无法解决无线问题,因此要访问网络服务器,我必须断开网络连接才能执行所需操作,然后重新连接。
当我在其他非代理网络上时,网络服务器工作正常。
The problem was not with either xampp or wamp. The problem was with the proxy that is installed where I was using the internet. It has blocked access to the localhost. Bypassing the proxy for localhost in Internet options -> Connections -> LAN Settings -> Proxy Server does not fix this for wireless so to access the webserver I have to disconnect from the network to what I need to do and then reconnect.
The web server worked fine when I was on other non proxy networks.