Did you happen to read the excellent docs on myd_wsgi? It is NOT the same as cgi at all. Nowhere near.
If you wish to use python to power a Web page you need a way to "call" it. CGI obviously can do this, albeit inefficiently amount other issues. Wsgi is "Web server gateway interface". The basic idea is to configure a web server (apache) with wsgi (mod_wsgi) and then point it to your whatever.wsgi script which contains your application function which is then called each time a request comes in. Sugreat you find os packages for python and mod_wsgi and apache so they all play nice. Then read the manual on configuring. Also - a light framework like Flask will make development easy. J On Jan 23, 2017 3:06 PM, <[email protected]> wrote: > So I was advised to use *wsgi* instead of cgi, so I tried to set it up > with following settings for a *basic example*, without Django or any > other webframe: > > *specs:* > > - linux Kubuntu, apache 2.4, python 3.5 > - apache is running, mod_wsgi installed and enabled > - website files are in root/var/www/html/, I have sudo access to this > folder > - the python 3.5 path is usr/bin/env python3 > - the python script: "index.py, simplest of scripts, has been made > executable > - the python executable lives in root/var/www/scripts > > *Questions:* > > - > > how do I make this function spit out it's result > - > > what's the deal with this wsgi script? I have no need for that, I also > do not want any wsgi extensions > - what apache directive do I need to introduce to run a script > - So where does the 'application' function live? > > Really lost in this wsgi idea, some clarification might help > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/modwsgi. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
