1

So, at the first, my XAMPP is working no problem like this enter image description here

Note that I have change the port to 8080 because I can't access the default port 80. And when I tried to access localhost:8080/phpmyadmin/ the Apache ports changes automatically into this

enter image description here

I thought that XAMPP redirect me to the right port, so i tried to access localhost:50007/phpmyadmin/, and i still didn't work either. Does reinstalling XAMPP app is the only solution to this problem?

Decrager
  • 113
  • 2
  • 11
  • Does this answer your question? [XAMPP Ports Change On its Own](https://stackoverflow.com/questions/13130952/xampp-ports-change-on-its-own) – MrWhite Mar 14 '22 at 16:16

1 Answers1

0

reinstalling XAMPP will not work. it's saying that some process is running on port 8080. so you can end that process or change port of apache XAMPP

I will give you the first solution

so netstat -ano will give a list of processes with PID

enter image description here

now find port 8080 and kill the process

netstat -ano | findstr :8080

now note that PID and run the below command with your <PID>

taskkill /PID /F

SidPro
  • 428
  • 1
  • 5
  • 16
  • I've tried that, it will stop the Apache service, right? But when I tried to start it again, the problem is still the same – Decrager Mar 12 '22 at 07:30
  • @Decrager follow this [https://stackoverflow.com/questions/11294812/how-to-change-xampp-apache-server-port](https://stackoverflow.com/questions/11294812/how-to-change-xampp-apache-server-port) – SidPro Mar 12 '22 at 07:40
  • I've follow that and try to access `http://localhost:8012/`, and it works. Then I try to open phpmyadmin by `http://localhost:8012/phpmyadmin/`, and the same thing happened, port(s) changing automatically.. – Decrager Mar 12 '22 at 08:00
  • @Decrager - did you find the solution? i am facing the same issue. – nilesh Oct 28 '22 at 10:26
  • @nilesh No i haven't, i reinstall my xampp instead :) – Decrager Oct 28 '22 at 16:38