O
O
Osiris2012-05-18 09:58:46
PHP
Osiris, 2012-05-18 09:58:46

PHP and Python - how best to live together?

There is a server on which several not very large PHP sites are spinning. You need to add a site in Python to them. Apache hides behind Nginx, hence the question - is it better to add mod_wsgi (or is it mod_pyhon?) Or is it easier to hang the server on one of the ports (it's still not visible behind Nginx)? Also heard that Mysql clients can conflict.
Is it possible to rely on chance, or ruin two, three, four hours and test everything on a local machine?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Avanov, 2012-05-18
@Osiris

You need nginx to proxy requests to the uWSGI server. All current versions of nginx already have a module for uwsgi, so you just need to configure the locations correctly

V
Vlad Zhivotnev, 2012-05-18
@inkvizitor68sl

nginx. Let him go to Peyton through uwsgi (or even fcgi, these are details). In php - via fpm. As a last resort - apache + mod_php with unloaded unnecessary modules.
If you don’t need to chase highload, then there’s nothing complicated, just in nginx you will need to describe the correct config with two separate upstreams.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question