Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
litespeed_wiki:other-ext-apps:python-lsapi [2017/01/09 20:54] Michael Alegre [Download the WSGI LSAPI module] |
litespeed_wiki:other-ext-apps:python-lsapi [2018/06/26 14:57] George Wang [Compile Python with the module and prepare the executable] |
||
---|---|---|---|
Line 9: | Line 9: | ||
==== Download the WSGI LSAPI module ==== | ==== Download the WSGI LSAPI module ==== | ||
- | The module can be downloaded from our site [[http://www.litespeedtech.com/packages/lsapi/wsgi-lsapi-1.1.tgz|here]]. | + | The module can be downloaded from our site [[http://www.litespeedtech.com/packages/lsapi/wsgi-lsapi-1.4.tgz|here]]. |
==== Compile Python with the module and prepare the executable ==== | ==== Compile Python with the module and prepare the executable ==== | ||
Line 15: | Line 15: | ||
I have downloaded the module to my server root ''/usr/local/lsws''. To recompile Python, I go into the module directory and run the following commands: | I have downloaded the module to my server root ''/usr/local/lsws''. To recompile Python, I go into the module directory and run the following commands: | ||
- | cd /usr/local/lsws/wsgi-lsapi-1.0 | + | cd /usr/local/lsws/wsgi-lsapi-1.4 |
python ./configure.py | python ./configure.py | ||
make | make | ||
Line 42: | Line 42: | ||
{{litespeed_wiki:python:python_ext_app_settings.png?700}} | {{litespeed_wiki:python:python_ext_app_settings.png?700}} | ||
+ | |||
+ | In the Environment field put: | ||
+ | |||
+ | LSAPI_CHILDREN=35 | ||
+ | |||
+ | For instance put 1. | ||
+ | |||
+ | |||
Now I have an LSWSGI external application. | Now I have an LSWSGI external application. |