php - add python as a CGI on a apache/php5-fpm enabled debian server -
i implemented apache server php5-fpm client hosts several websites (php based guessed), works fine, , in context i'd provide possibility devel python based websites (and later node.js beyond question).
i never experimented yet (apache + php + python). should run entire apache dedicated python uwsgi module apart existing apache-php5-fpm ?
or can run both php5-fpm , wsgi apache module python ?
i'm not interested use mod_cgi or mod_python, or funny thing found here :) (will test anyway on laptop :)) https://sourceforge.net/p/phpython/wiki/phpython%20-%20get%20started/
and implement equivalent php5-fpm/mpm_worker python. concern cpu time sharing , security. uwsgi seems option ? http://uwsgi-docs.readthedocs.io/en/latest/apache.html
how did ?
here enabled a2 modules :
proxy_fcgi mpm_worker proxy alias filter authz_core authz_user autoindex setenvif dir authn_file status mime auth_basic negotiation deflate env authn_core ssl socache_shmcb authz_host rewrite access_compat lot of cpu time , mem space still available. [ if can add php5-fpm or mpm_worker tag nice ]
Comments
Post a Comment