Re:I only know PHP. How do I write a Web application in Python?
by zokier on Sunday May 06, 2012 @02:15PM
(#3935800)
FastCGI works fairly well in my experience on shared Linux servers (that's how I host my personal projects). And for smaller scripts where I don't bother setting up FCGI, I just use plain CGI, which is just copying files.
Re:I only know PHP. How do I write a Web application in Python?
by raverbashing on Sunday May 06, 2012 @02:49PM
(#3935912)
I think shared hosts have already enabled FastCGI for all php files
Something like this: http://test.fastcgi.com/drupal/node/5?q=node/10
At least the shared hosting I use (bluehost) has warned me they were enabling this. In 2007
Still, for most uses, CGI works fine.
Re:I only know PHP. How do I write a Web application in Python?
by lukeholder on Sunday May 06, 2012 @02:42PM
(#3935894)
might want to not do that...
http://www.php.net/archive/2012.php#id2012-05-03-1
99% of web sites are hosted in "shared hosting" services
Now compare copying the .php files with configuring WSGI
"No, but WSGI is easy blah blah blah" it doesn't beat copying files And no, settings WSGI is not easy
Also, if you depend on IIS for example, PHP is almost plug'n'play
WSGI on Windows is the definition of "bag of hurt". You can try fastcgi to run on windows, and then you find out flup needs socket.fromfd
The easiest way, if it's your machine, run gunicorn or similar and just make Apache redirect the traffic.
But in shared services it's still way too complicated.