I have a question abut the Apache Web Server running over XAMPP: Why it uses two PIDs and two ports?
Thanks in advance for your help!
I have a question abut the Apache Web Server running over XAMPP: Why it uses two PIDs and two ports?
Thanks in advance for your help!
In general Apache has a main privileged process that spawns other less privileged processes as needed that it passes off the requests to for processing. How many depends on the Apache version, the selected process model and configuration settings.
The two default ports apache listens on are HTTP (80) and HTTPS (443) both of which the main process listens on.
Viewing the process tree in a utility like htop
highlights the relationship. The default for Centos 7 is show below.
If you checked which PID was listening on the ports for the above system it would be PID 10699.