I am a dummy in web apps. I have a doubt regaring the functioning of apache web server. My question is mainly centered on "how apache handles each incoming request"
Q: When apache is running in the mod_python
/mod_php
mode, then does a "fork" happen for each incoming reuest?
If it forks in
mod_php
/mod_python
way, then where is the advantage over CGI mode, except for the fact that the forked process inmod_php
way already contains an interpretor instance.If it doesn't fork each time, how does it actually handle each incoming request in the
mod_php
/mod_python
way. Does it use threads?
PS: Where does FastCGI stands in the above comparison?