XAMPP - “此网页不可用" [英] XAMPP - "This webpage is not available"
问题描述
我正在使用 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:
在 C:\xampp\htdocs 上保存了 php 文件(hello.php").以下行位于 htmlbody"标签之间.
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>'; ?>
有人知道我做错了什么吗?
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屋!