mod_cgi , mod_fastcgi, mod_scgi , mod_wsgi, mod_python, FLUP. I don't know how many more. what is mo
- by claws
I recently learnt Python. I liked it. I just wanted to use it for web development. This thought caused all the troubles. But I like these troubles :)
Coming from PHP world where there is only one way standardized. I expected the same and searched for python & apache.
http://stackoverflow.com/questions/449055/setting-up-python-on-windows-apache says
Stay away from mod_python. One common
misleading idea is that mod_python is
like mod_php, but for python. That is
not true.
So what is equivalent of mod_php in python?
I need little clarification on this one http://stackoverflow.com/questions/219110/how-python-web-frameworks-wsgi-and-cgi-fit-together
CGI, FastCGI and SCGI are language agnostic. You can write CGI scripts in Perl, Python, C, bash, or even Assembly :). So, I guess mod_cgi , mod_fastcgi, mod_scgi are their corresponding apache modules. Right?
WSGI is some kind of optimized/improved inshort an efficient version specifically designed for python language only. In order to use this mod_wsgi is a way to go. right?
This leaves out mod_python. What is it then?
Apache - mod_fastcgi - FLUP (via CGI protocol) - Django (via WSGI protocol)
Flup is another way to run with wsgi for any webserver that can speak FCGI, SCGI or AJP
What is FLUP? What is AJP? How did Django come in the picture?
These questions raise quetions about PHP. How is it actually running? What technology is it using? mod_php & mod_python what are the differences?
In future if I want to use Perl or Java then again will I have to get confused? Kindly can someone explain things clearly and give a Complete Picture.