Until yesterday everything was fine to my localhost, but starting yesterday, localhost is not opening. It's saying "Unable to connect".
I tried number of times to start the Apache
on XAMPP
, but it is saying message that busy. The port 80 is busy, I hope.
I have tried every possible way to free the port 80. For example, Disabled option that "Use port 80" in Skype
and Teamviewer
. I don't know which program is using the Port 80.
How can I determine that which program is using the Port 80 and then stop it permanently and use port 80 as my localhost?
On Linux (Run this as root):
Then you can see what process name running on what port.
On Windows: (I used Windows XP and I don't know about compatibitlity)
You can see process ID on rightmost column. Press
Ctrl+Alt+Del
to show Task Manager, go to Process tab, open menuView > Select Column
, show process identifier. Then find matching process name on that tab.I deleted each and every file of XAMPP, and reinstalled the new version. Now it is working for me.
If you have installed php on your
c:
drive, change port number 80 to 81 inC:\xampp\apache\conf\httpd.conf
Have you messed up with
httpd.conf
orphp.ini
?If not and it happened by itself, you might have to try this: Read Very Carefully
c:/xammp/htdocs/
folder, grab everything you need (all sites you need), and backup tn some map on your desktop.c:/xammp/mysql/data
folder too. Get all databases you need and backup those too in somemysql folder
on desktop.After you did it, shutdown your PC for 20 seconds.
Turn your PC on, and:
xammp
. Erase all of the folders and other files.Turn your PC on, again, and:
xammp 1.7.1
and installxammp
IT MUST BE RUNNING!P.S.: My guess is that some of file may be corrupt. If that isn't going to help, my second guess is that you HDD is on fire.
So you might have to:
Xammp
mysql/data
to the same one inXampps
.You will have everything like before.
At the end, use that new HDD for localhost exclusively (if youre doing important things), old HDD for playing around via Internet and stuff.