3

My xampp installation 1.7.4 in windows 7 does not seem to work. http://localhost returns not found error.

Xampp Control panel shows both mysql & apache service running fine.

Frustrated since past 2 weeks to find a solution to this. Any pointers and support will be appreciated!

Manikandan Thangaraj
  • 1,594
  • 8
  • 24
  • 44
  • Have you checked your apache config? Both the ServerRoot and the DocumentRoot attributes in the httpd.conf file need to point at the right directories for things to work. – user470714 Oct 05 '11 at 17:42
  • ServerRoot "/xampp/apache" and DocumentRoot "/xampp/htdocs" it is right.. – Manikandan Thangaraj Oct 05 '11 at 17:44
  • Not sure if this will make a difference for your case, but I am defining those attributes with this format: ServerRoot "C:/xampp/apache/" -- only difference is I'm specifying the drive letter. See if that helps. – user470714 Oct 05 '11 at 17:47
  • If you are getting a `404 not found` error, you probably have misplaced `index.html` or are missing it all together. – llk Nov 02 '11 at 06:37
  • 1
    Refer this url:- http://stackoverflow.com/questions/2939510/xampp-on-windows-7-not-working-properly – Sunitha Bharathy Nov 04 '11 at 05:29

9 Answers9

6

Do you have Skype or something similar running on your computer? Skype uses the default http and https ports 80 and 443 unless you explicitly change that in its settings.

Cito
  • 5,365
  • 28
  • 30
1

As I saw this is common "problem" for Windows 7 and Vista - in some cases these systems doesn't know 'localhost'. Try use http://127.0.0.1 or add one line to file C:\Windows\System32\drivers\etc\hosts This line is:

127.0.0.1 localhost

Max
  • 842
  • 5
  • 16
0

Localhost uses the default port 80. If you have changed it to 8080 in httpd.conf. Then you can also check it by using http://localhost:8080

Harpreet
  • 2,990
  • 3
  • 38
  • 52
card_master
  • 418
  • 3
  • 12
0

A long time ago I had a similar problem and I described it here on my blog (NOTE: working Skype can be a issue but I had not installed Skype then):

http://paweln66.wordpress.com/2013/08/11/why-xampp-and-wampserver-doesnt-works-under-windows-7/

There you can find:

  1. Explanation of possible reason why it does not work: issue relates generally to Windows 7
  2. Two approach to solution how you can enable XAMPP "quick" and more advanced that not disable another services

Please read this post then everything should be clear!

I hope it help you...

paweln66
  • 132
  • 1
  • 6
0

Did you check firewall ? Or if you have broken windows firewall (which is sometimes it's not available to stop or even open firewall in windows 7), it may be the reason.

Fatih Donmez
  • 4,319
  • 3
  • 33
  • 45
0

by default this link should work: ServerName http://localhost:80

at least it's in the http.conf this way. Check out if you have it the right way set (or to another port like 8080)

MartinL
  • 3,198
  • 4
  • 18
  • 20
0

Quit Skype, start xampp again, restart apache, run skype again. Now you can have both your apache server and Skype running fine :)

Tom
  • 720
  • 1
  • 6
  • 14
0

In win7, you have a IIS running on port number 80 which is also default port for Apache server

Follow the Steps

1. Open httpd.conf in the conf folder of apache folder
2. Find Line "Listen 80" and change it to any other port say 8800
3. see if the file exists httpd.conf.build, if yes change in that too
4. restart the server and you are done

Do check all the app that uses internet and see what all app you have
installed uses port 80, in case the above steps don't work.
1Mayur
  • 3,419
  • 5
  • 40
  • 64
-2

What if you use EasyPhp instead? i'm using it at work with windows 7, no problems, now xdebug works out of the box too

max4ever
  • 11,909
  • 13
  • 77
  • 115