News for hackers. Stuff that matters.
Re:I only know PHP. How do I write a Web application in Python? by raverbashing on Sunday May 06, 2012 @09:06AM (#3935018)
And therein lies the problem, in WSGI

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.

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)
Re:I only know PHP. How do I write a Web application in Python? by duskwuff on Sunday May 06, 2012 @04:05PM (#3936147)
That only affects PHP scripts running as CGI (using a certain specific configuration), not CGI scripts in general.