I have Skype installed on my PC, as i knew using port 80 as default. Then, i changed httpd.config to 8080, but my apache not starting
After did a little googling, i have to uncheck 443 on Skype setting. My question: is the apache uses 2 ports? And why?

Dani AI

Generated

Good catch by and useful clarification from . A few practical points that add to the thread and help if the same conflict appears again:

Apache can listen on several TCP ports at once because plain HTTP and TLS-protected HTTPS are different protocols that use separate sockets and server-side certificates. XAMPP’s Apache keeps HTTP settings in httpd.conf (note: not httpd.config) and SSL settings in httpd-ssl.conf; changing those Listen directives is fine, but the service must be able to bind the port and the browser will require an explicit port in the URL for nonstandard ports (for example http://localhost:8080).

Quick troubleshooting steps to see who is binding a port and to confirm Apache errors:

# Windows (run in elevated CMD)
netstat -ano | findstr ":80"
netstat -ano | findstr ":443"
tasklist /fi "pid eq <PID>"

# Linux
ss -ltnp | grep -E ":(80|443)"
# or
netstat -tulpn | grep -E ":(80|443)"

Also check the Apache error log (XAMPP: xampp\apache\logs\error.log) for "Address already in use" or bind failures. If another app (Skype in this case) keeps ports, either stop/configure that app not to use 80/443, run Apache on different ports and include the port in URLs, or run the web server in a VM/container with dedicated ports. If moving HTTPS to a nonstandard port, remember certificates are unaffected but browsers require the port and some corporate proxies may block nonstandard ports.

Recommended Answers

All 2 Replies

It's so your server can serve pages over http and https/ssl.

Port 80 is the default port for http traffic (in your case, you've redirected http to port 8080 on your server, which is fair enough). And port 443 is the default port for https.

Typically on a dedicated web server, you wouldn't have Skype installed. So normally this isn't an issue. But your server must be running on a desktop or laptop PC that you use for general day to day usage.

To stop the problem, you have disabled the use of port 443 in skype.
The other option would be to use a different port for https on your server (442?), just like you did with port 8080 for http.

If ssl/https is not required, I imagine it should also be possible to disable it. That said, I haven't done any serious web development for a number of years, so I've had no need for a server. Consequently, I haven't really messed around with setting up and running an Apache web-server for a looong time. So I can't really offer any detailed info. But I'm sure that someone else here will be able to help!

I should have realized that 443 for ssl
I just changed port 443 to 442 on http-ssl.conf file
anyway, thank you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.