Is Apache really "developing" in mod_php / python to handle requests?

I am a mannequin in web applications. I have doubts about the functioning of the apache web server. My question is mainly focused on "how does apache handle every incoming request"

Q: When apache is working in mod_python / mod_php mode, then does a β€œfork” occur for every incoming request?

  • If he develops the mod_php / mod_python path, then where is the advantage over CGI mode, except for the fact that the forked process in mod_php already contains an interpreter instance.

  • If it does not work every time, how it processes every incoming request in mod_php / mod_python . Does it use threads?

PS: Where is FastCGI located in the above comparison?

+4
source share
1 answer

With the modern version of Apache, if you don't configure it in prefork mode, it should run threaded (not fork). mod_python is thread safe and does not require each instance to be forked into its own space.

0
source

Source: https://habr.com/ru/post/1482690/


All Articles