Uninstall & Blocked Ports

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Uninstall & Blocked Ports

Postby jclabuschagne » 23. March 2020 11:32

I have installed a few previous versions of Xampp on my computer, in order to upgrade an old joomla site that had compatibility issues with PHP 7.3, so I needed a Xampp installation with PHP 5.4(if I remember correctly).

Thus I installed a version, upgraded the joomla installation as far as i could, did a backup of the site, uninstalled Xampp, installed a newer version, repeat... until the website was compatible with PHP 7.3.

Each time I installed Xampp, I had to use a different port than the previous version I had installed, because the port was being block by System (PID 4).

I uninstalled each previous version through control panel(i know the recommended way is with the uninstaller, but I just saw that just today, I thought Control Panel would do the trick), before installing a newer version.

How do I get those ports open, to be reused? I do not have IIS, and no other program that could block those ports. Currently ports 80, 8080, 8082, 8083 cannot be used with Xampp.

I know I can just edit the config file and use a different port, but is there any way to release those ports? I've tried "CurrPorts", "TCPView" etc. to close the connections to no avail.

Any ideas?
jclabuschagne
 
Posts: 3
Joined: 23. March 2020 11:18
XAMPP version: 3.2.1
Operating System: Windows 10

Re: Uninstall & Blocked Ports

Postby Altrea » 23. March 2020 12:45

Port 80 blocked by PID 4 is a different topic and has nothing to do with XAMPP.
More about this issue can be read at this sticky [Q&A] Apache won't start

For the other issue I have no idea what you are doing.

Did you register any windows services for Apache?
What do you mean by uninstalling in the control panel?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 10265
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Uninstall & Blocked Ports

Postby Nobbie » 23. March 2020 13:00

Your computer is a mess. If i were you, i would do a backup of the important things (if you do not already have a backup), then format the harddisk an finally install Windows and Xampp etc. from scratch.
Nobbie
 
Posts: 11606
Joined: 09. March 2008 13:04

Re: Uninstall & Blocked Ports

Postby jclabuschagne » 23. March 2020 13:38

Yes, formatting my pc would be the brute force solution, but is there no way to release ports that was used by a xampp that was uninstalled? What if I get another client whose website I needed to upgrade again?

Why is "System" still listening on those ports? after uninstalling XAMPP? I didnt make apache and mysql a service, I started them manually each time I had to work.

I am on Windows 10. And my pc is not older than a year. I write software on it, create websites and do graphic design, that's all.

I dont have IIS on it. I uninstalled each XAMPP though Windows control panel(just stating it to avoid confusion as control panel can also mean XAMPP control panel).

The software I write also do not make use of those ports(they use different ports on another server not on my pc).

Also, what I forgot to mention, I have the same problem on my pc at home, the ports also do not release. So it's not just my work pc that has this problem.
jclabuschagne
 
Posts: 3
Joined: 23. March 2020 11:18
XAMPP version: 3.2.1
Operating System: Windows 10

Re: Uninstall & Blocked Ports

Postby Altrea » 23. March 2020 14:14

PID 4 system is HTTP.sys a proxy service handling HTTP connections. XAMPP does not use HTTP.sys so XAMPP can technically not be the issue why System is still capturing Port 80
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 10265
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Uninstall & Blocked Ports

Postby jclabuschagne » 23. March 2020 14:27

But it's not just port 80, it's also 8080, 8082, 8083. All those ports I have used before uninstalling the separate versions of XAMPP. and it's not just those ports, also the SSH ports had to be changed: 443, then I also used 4434, 4435 etc.

Why i say that it must be XAMPP causing this, is that everytime I use another port, and uninstall XAMPP, I have to use another one I haven't used previously. Everytime it's still blocked by the previous version I uninstalled.

Here is the current log(I have not configured new ports yet on the new installation of XAMPP)


15:22:04 [main] XAMPP Installation Directory: "c:\xampp\"
15:22:04 [main] Checking for prerequisites
15:22:04 [main] All prerequisites found
15:22:04 [main] Initializing Modules
15:22:04 [Apache] Problem detected!
15:22:04 [Apache] Port 80 in use by "Unable to open process" with PID 4!
15:22:04 [Apache] Apache WILL NOT start without the configured ports free!
15:22:04 [Apache] You need to uninstall/disable/reconfigure the blocking application
15:22:04 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
15:22:04 [Apache] Problem detected!
15:22:04 [Apache] Port 443 in use by "Unable to open process" with PID 4!
15:22:04 [Apache] Apache WILL NOT start without the configured ports free!
15:22:04 [Apache] You need to uninstall/disable/reconfigure the blocking application
15:22:04 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
15:22:04 [Tomcat] Problem detected!
15:22:04 [Tomcat] Port 8080 in use by "Unable to open process"!
15:22:04 [Tomcat] Tomcat WILL NOT start without the configured ports free!
15:22:04 [Tomcat] You need to uninstall/disable/reconfigure the blocking application
15:22:04 [Tomcat] or reconfigure Tomcat and the Control Panel to listen on a different port
15:22:04 [main] Starting Check-Timer
15:22:04 [main] Control Panel Ready
jclabuschagne
 
Posts: 3
Joined: 23. March 2020 11:18
XAMPP version: 3.2.1
Operating System: Windows 10

Re: Uninstall & Blocked Ports

Postby Altrea » 23. March 2020 15:32

But port 8080, 8082, 8083 are not occupied by PID 4, that's a huge difference. You would get more information about the process if you would run XAMPP with elevated administrator rights (right click -> run as administrator). You need to identify the specific process or windows service and stop it.
For that XAMPP gave you tools like the logging in the control panel or the netstat tool.

With this amount of information it is not possible for us to identify the real issue or why this could happen. It is up on you to provide us information as detailed as possible.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 10265
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 85 guests