A few of the Apache modules are based on programming languages, like mod_php and mod_python. The description is essentially "allows use of php within apache" or "allows use of python within apache". I am attempting to understand an introduction to how these kinds of "language" modules work.
Essentially, should you install and configure mod_php correctls, a php file in a apache DirectoryRoot is going to be performed. Mod_python works similarly.
Should you install apache without mod_php and you've got foo.php at the bottom of the htdocs folder then http://yourdomain/foo.php will treat the document like a plain text file. Setting up and setting up mod_php may cause the script to become parsed like a php script, and also the output to be delivered to the browser instead of the raw text..
This really is easy Once the webserver begins, it'll register modules within its core. Language interpreter modules, like mod_php, will register a hook inside the page request handler.
What this means is whenever a user demands a webpage, the webserver will pass the request towards the module, which inspections when the asked for file is really a type that's registered to become performed through the parser behind the module. In PHP's situation you're probably adding "AddType application/x-httpd-php .php" or like the httpd.conf file, which mod_php, will consider when parsing such demands.
PHP has become in charge from the request, that will browse the file, parse, compile and carry it out after which give it back towards the request buffer that the webserver assists as content.
Same applies to other modules, although their handling of the request differs, all of them perform the same factor.