Reputation: 199
My apache ports keep changing on netstat of XAMPP control panel like this image shows.
Note: my localhost works fine, and httpd.exe is using 80, 443. port changes per second.
Upvotes: 1
Views: 6845
Reputation: 11
The error that you're recieving is based on the fact that there's an error in your sql query. The XAMPP port changes when an SQL query fails to run. When this occurs the port changes; and your localhost becomes irresponsive due to the wrong port in the request.
Please double check your SQL command; to ensure there is no error in there.
I see this question everywhere on Google; it's not a problem with XAMPP. It's a problem with your SQL query.
Upvotes: 0
Reputation: 5310
Don't worry. From my understanding this is normal.
I once found a post discussing it here: https://community.apachefriends.org/f/viewtopic.php?p=197896&sid=df3bb64d241e7e17c754fa1982a0fc4c
The main quote that put my mind at rest was:
Apache listens for and accepts requests on ports 80 and 443 but it does not service requests on those ports. When you or others connect to your servers, they will be handled by other connections usually using high ports. The control panel just looks for all ports associated with a module. It is just picking up those client ports and the box to show all the ports is just not big enough to show them all.
Upvotes: 1