3 ms·
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,
by raverbashing 15y ago
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.
- zokier 15y agoFastCGI 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.
- lukeholder 15y agomight want to not do that... http://www.php.net/archive/2012.php#id2012-05-03-1 http://www.php.net/archive/2012.php#id2012-05-03-1
- duskwuff 15y agoThat only affects PHP scripts running as CGI (using a certain specific configuration), not CGI scripts in general.
- raverbashing 15y agoI think shared hosts have already enabled FastCGI for all php files Something like this: http://test.fastcgi.com/drupal/node/5?q=node/10 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.