Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Apache/PHP - localhost stopped working. How do I get it to work again?


28 Jul 2012   #1

indows 7 64 bit
 
 
Apache/PHP - localhost stopped working. How do I get it to work again?

I have installed Apache2.2 on my computer, PHP 5, and MySQL. Everything was working fine until last night. Suddenly, I could no longer connect to the localhost. I think my computer was infected with a trojan, but that has since been removed and I am unable to reconnect to my localhost.

I have updated my hosts file Windows(C:)/Windows/System32/drivers/etc hosts in notepad: see attachment hosts_updated 65kb PNG.

I have tested my connection in the CMD prompt see attachment cmd_localhost 77kb PNG.

You'll notice [::]1, but after updating my host file, it now displays as 127.0.0.1

Additionally, port 80 IS LISTENING

instead of my web browser loading the page as localhost/vote/home.php NOW it loads as file:///C:/Websites/Vote/home.php AND NOW my PHP no longer works i.e. not being pulled into my web page.

...can't establish a connection to the server at localhost.

Why is my local host not working? Thoughts? Thank you in advance.




Attached Thumbnails
Apache/PHP - localhost stopped working. How do I get it to work again?-hosts_updated.png   Apache/PHP - localhost stopped working. How do I get it to work again?-cmd_localhost.png  
My System SpecsSystem Spec
.

Reply

 Apache/PHP - localhost stopped working. How do I get it to work again?




Thread Tools



Similar help and support threads for2: Apache/PHP - localhost stopped working. How do I get it to work again?
Thread Forum
Windows installer has stopped working or setup.exe has stopped working General Discussion
Solved Apache: Localhost Not Working Network & Sharing
How to make telnet work for both localhost and 127.0.0.1 Network & Sharing
COM surrogate stopped working error - no solution seems to work BSOD Help and Support
apache does not work, port 80 is used by... General Discussion
2TB HDD stopped working, got another chip but still won't work Hardware & Devices
Localhost not working Network & Sharing

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 01:27 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33