XAMPP - “此网页不可用" [英] XAMPP - "This webpage is not available"

查看:32
本文介绍了XAMPP - “此网页不可用"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 php 和 xampp 尝试我的第一个 Hello World 应用程序.到目前为止,我一直在遇到错误,并且正在一一解决问题.到目前为止,我有:

I am trying my first Hello World app using php and xampp. I've been getting errors so far and been working through the problems one by one. So far I have:

  1. 在 C:\xampp\htdocs 上保存了 php 文件(hello.php").以下行位于 htmlbody"标签之间.

  1. Saved the php file ("hello.php") on C:\xampp\htdocs. The following line is in between html "body" tags.

<?php echo '<p>Hello World</p>'; ?> 

  • 禁止万维网服务使用端口 80,因为这会导致我的 xampp 控制面板出现错误.
  • 禁用了 mySQL56 使用端口 3306,这也导致了我的 xampp 控制面板上的错误.此时,当我打开 xampp 控制面板时,一切看起来都很好(我这么说是因为我只能看到蓝色和黑色的文字),除了它说我没有以管理员权限运行.
  • 当我在 Chrome 或 Firefox 上输入 http://localhost/hello.php 时,我得到此网页无法使用."错误.
  • Disabled World Wide Web Services from using port 80 as that caused an error on my xampp control panel.
  • Disabled mySQL56 from using port 3306 as also caused an error on my xampp control panel. At this point, when I turn on xampp control panel, everything looks fine (I say this because all i can see is blue and black writing) except it says I am not running with admin rights.
  • When I type in http://localhost/hello.php on either Chrome or Firefox, I get "This webpage is not available." error.
  • 有人知道我做错了什么吗?

    Does anyone know what I am doing wrong?

    进一步说明:我使用的是 Windows 7 并且没有从 PHP 下载任何东西.

    Further notes: I am using Windows 7 and haven't downloaded anything from PHP.

    我的问题可能太宽泛了,我深表歉意.我试图通过概述我采取的所有行动来尽可能具体.

    I apologise for perhaps a too wide question. I have tried to be as specific as possible by outlining all actions I have taken.

    推荐答案

    尝试以管理员权限运行控制面板.右键单击控制面板图标并选择以管理员身份运行".如果您将启动 apache 时在控制面板中获得的消息粘贴到此处也会有所帮助(运行 hello.php 文件不需要 mysql,因为您不访问任何数据库).

    Try running control panel with admin rights. Right click on control panel icon and select "Run as administrator". Also it would help if you pasted here the messages that you get in control panel when you start apache (mysql is not needed to run your hello.php file since you don't access any database).

    这篇关于XAMPP - “此网页不可用"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆