Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #27198
| From | Emile van Sebille <emile@fenx.com> |
|---|---|
| Subject | Re: Running Python web apps on shared ASO servers? |
| Date | 2012-08-16 12:59 -0700 |
| References | <qbsd289b9ndtrb5sg17u8gr8rge60kci4p@4ax.com> <u2vp289gg33grfqidq6jofpcbokmnrstl4@4ax.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3392.1345147179.4697.python-list@python.org> (permalink) |
On 8/16/2012 7:01 AM Gilles said... > On Sun, 12 Aug 2012 02:03:33 +0200, Gilles <nospam@nospam.com> wrote: >> Does it mean that ASO only supports writing Python web apps as >> long-running processes (CGI, FCGI, WSGI, SCGI) instead of embedded >> Python à la PHP? > > I need to get the big picture about the different solutions to run a > Python web application. > >>From what I read, it seems like this is the way things involved over > the years: > > CGI : original method. Slow because the server has to spawn a new > process to run the interpreter + script every time a script is run. > > mod_python : Apache module alternative to CGI. The interpreter is > loaded once, and running a script means just handling the script > > mod_wsgi : mod_python is no longer developped, and mod_wsgi is its new > reincarnation > > FastCGI and SCGI: Faster alternativees to CGI; Run as independent > programs, and communicate with the web server through either a Unix > socket (located on the same host) or a TCP socket (remote host) > > Is this correct? > > Thank you. > I'm sure there's no single correct answer to this. Consider (python 2.6]: emile@paj39:~$ mkdir web emile@paj39:~$ cd web emile@paj39:~/web$ cat > test.html hello from test.html emile@paj39:~/web$ python -m SimpleHTTPServer Then browse to localhost:8000/test.html Emile
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Running Python web apps on shared ASO servers? Gilles <nospam@nospam.com> - 2012-08-12 02:03 +0200
Re: Running Python web apps on shared ASO servers? Dieter Maurer <dieter@handshake.de> - 2012-08-12 07:56 +0200
Re: Running Python web apps on shared ASO servers? Gilles <nospam@nospam.com> - 2012-08-12 22:52 +0200
Re: Running Python web apps on shared ASO servers? Tim Golden <mail@timgolden.me.uk> - 2012-08-12 22:26 +0100
Re: Running Python web apps on shared ASO servers? Gilles <nospam@nospam.com> - 2012-08-13 13:28 +0200
Re: Running Python web apps on shared ASO servers? Gilles <nospam@nospam.com> - 2012-08-16 16:01 +0200
Re: Running Python web apps on shared ASO servers? Emile van Sebille <emile@fenx.com> - 2012-08-16 12:59 -0700
csiph-web