Vista 上的 XAMPP 不执行我自己的 PHP 文件
我在装有 Vista Business SP1 版本的机器上安装了 xampp。默认页面(带有“您已在此系统上成功安装 XAMPP”消息)可以正常打开。
但是,当我将 php 页面放入 htdocs 文件夹并尝试使用 127.0.0.1/mypage.php 访问它时,我收到“未找到对象”错误。 apache 服务正在运行,如 XAMPP 控制面板所示。我单击了 xampp 控制面板上的“端口检查”按钮,其内容如下:
Apache(HTTP) 80 System
我用 XP 计算机进行了检查,它显示:
Apache(HTTP) 80 C:\xampp\apache\bin\httpd.exe
如何解决此问题?我已经禁用了 Windows 防火墙和 UAC。
I installed xampp on a machine with vista business SP1 version. The default page (with the "You have successfully installed XAMPP on this system" message) opens up fine.
But when I put a php page in the htdocs folder and try to access it using 127.0.0.1/mypage.php, I get the "Object not found" error.. The apache service is running as indicated by XAMPP Control Panel. I clicked the "Port-Check" button on the xampp control panel and this what it says:
Apache(HTTP) 80 System
I checked with a XP machine and it says:
Apache(HTTP) 80 C:\xampp\apache\bin\httpd.exe
How do I resolve this issue? I have disabled windows firewall and UAC.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,我认为您的 PHP 解释器没有问题,因为 XAMPP 欢迎屏幕工作正常并且它使用 PHP。
事实上,您将 PHP 文件放入 htdocs 并且无法通过浏览器访问它,再加上您的“端口检查”显示一些奇怪的条目,我假设您的系统上安装了另一个 Apache 或者您有您的系统中启用的 Web 服务器组件。从端口检查转储的信息清楚地表明您有一些系统服务正在侦听端口 80,这似乎在 XAMPP 上的 Apache 可以处理它之前捕获了所有请求。但是,另一方面,如何才能运行 XAMPP 欢迎屏幕呢?情况确实很奇怪。
作为第一步,我建议对所有活动服务(运行“services.msc”)、已安装的程序和启用的系统组件(均在负责处理程序和系统组件的控制面板部分中)进行广泛的研究。禁用或卸载所有似乎与 Web 服务器相关的内容。
如果这没有带来任何效果,那么您应该将问题提交给名为“ServerFault”的 StackExchange 姊妹项目,因为这似乎纯粹是与服务器或系统相关的问题,不属于 StackOverflow 上讨论的 XAMPP。
First of all, I don't think there are some problems with your PHP interpreter, as XAMPP Welcome Screen works fine and it uses PHP.
Form the fact, that you put PHP file into htdocs and can't access it via browser plus the fact that your "port-check" shows some strange entries, I assume that you have another installation of Apache on your system or that you have a web server component enabled in your system. Information dumped from port-check clearly says that you have some system service listening on port 80, which seems to be capturing all the request before Apache on-board your XAMPP can handle it. But, on the other hand, how then you would be able to run XAMPP Welcome Screen? Really strange situation.
As first step, I would recommend doing extensive research through all your active services (run "services.msc"), installed programs and enabled system components (both in Control Panel section responsible for handling program and sys comps). Disable or uninstall everything that seems to be related to web server.
If this brings no effect, then you should address your question to a StackExchange sister project called "ServerFault", because this seems to purely server or system related question, not belonging to XAMPP discussed on StackOverflow.