无法访问localhost/xampp/index.php [英] Cannot access to localhost/xampp/index.php

查看:457
本文介绍了无法访问localhost/xampp/index.php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚为Windows 7安装了XAMPP,控制面板似乎可以正常工作,我启动了MySql和Apache,我遇到的问题是,当我在浏览器"Google Chrome"中键入localhost时,它将发送至" http://localhost/dashboard/"

I just installed XAMPP for windows 7, control panel seems to work fine, I started MySql and Apache, the problem I have is, when I type localhost in my browser "Google Chrome" it sends me to "http://localhost/dashboard/"

当我将网址更改为"//localhost/xampp/index.php"时,它告诉我: 找不到对象!

when I change the url to "//localhost/xampp/index.php", it tells me: "Object not found!

在此服务器上找不到请求的URL.如果您手动输入网址,请检查拼写,然后重试.

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

如果您认为这是服务器错误,请与网站管理员联系.

If you think this is a server error, please contact the webmaster.

错误404

本地主机 Apache/2.4.16(Win32)OpenSSL/1.0.1p PHP/5.6.11"

localhost Apache/2.4.16 (Win32) OpenSSL/1.0.1p PHP/5.6.11"

有人可以帮助我吗? 谢谢.

anyone can helps me out with this? Thanks.

推荐答案

好,无论如何创建页面yourpage.html/yourpage.php,都必须将所有页面放在C:\ Xampp \ htdocs \ dir文件夹中

Ok, Create a page yourpage.html / yourpage.php whatever, you have to put all your pages in a folder in C:\Xampp\htdocs\ dir

然后尝试访问以下网址:

Then try accessing following url:

localhost/yourpage.html

localhost/yourpage.html

localhost/yourpage.php

localhost/yourpage.php

应该可以.

这篇关于无法访问localhost/xampp/index.php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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