6
votes

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/"

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

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.

Error 404

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

anyone can helps me out with this? Thanks.

2
where does your index.php reside? - Sumeet Gavhale
Is there any index.php file in xampp directory ? - Harshit
no, i really don't know where it is, I just watched a tutorial and he did this, but it's not working - S.Joe
some others told me to go here >> localhost/xampp/htdocs/index.php but it's not working too - S.Joe
it can also be index.html :), not necessary that it will only have index.php file in the xampp root folder - Sourabh Kumar Sharma

2 Answers

2
votes

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

or

localhost/yourpage.php

That should work.

0
votes

I think you should be entering "http://localhost/index.php", because there is no such file in my ../htdocs/xampp/ folder called as index.php.

So may be the file you are referring to is in ../htdocs/index.php and to access it you need to hit the url as "http://localhost/index.php".

Thanks.