Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
litespeed_wiki:other-ext-apps:python-lsapi [2018/11/30 17:30] Lisa Clarke Replace first person with second person |
litespeed_wiki:other-ext-apps:python-lsapi [2020/08/14 18:38] (current) Jackson Zhang [Setting up the External Application] |
||
---|---|---|---|
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.4.tgz|here]]. | + | The module can be downloaded from our site [[http://www.litespeedtech.com/packages/lsapi/wsgi-lsapi-1.6.tgz|here]]. |
==== Compile Python with the Module and Prepare the Executable ==== | ==== Compile Python with the Module and Prepare the Executable ==== | ||
Line 15: | Line 15: | ||
Download the module to your server root, ''/usr/local/lsws''. To recompile Python, go into the module directory and run the following commands: | Download the module to your server root, ''/usr/local/lsws''. To recompile Python, go into the module directory and run the following commands: | ||
- | cd /usr/local/lsws/wsgi-lsapi-1.4 | + | cd /usr/local/lsws/wsgi-lsapi-1.6 |
python ./configure.py | python ./configure.py | ||
make | make | ||
Line 52: | Line 52: | ||
{{litespeed_wiki:python:python_ext_app_success.png?700}} | {{litespeed_wiki:python:python_ext_app_success.png?700}} | ||
+ | |||
+ | The configuration looks like: | ||
+ | <extProcessor> | ||
+ | <type>lsapi</type> | ||
+ | <name>wsgiapp</name> | ||
+ | <address>uds://tmp/lshttpd/lswsgi.sock</address> | ||
+ | <maxConns>35</maxConns> | ||
+ | <env>LSAPI_CHILDREN=35</env> | ||
+ | <initTimeout>60</initTimeout> | ||
+ | <retryTimeout>0</retryTimeout> | ||
+ | <respBuffer>0</respBuffer> | ||
+ | <autoStart>1</autoStart> | ||
+ | <path>/usr/local/lsws/fcgi-bin/lswsgi</path> | ||
+ | <instances>1</instances> | ||
+ | </extProcessor> | ||
==== Setting up the Script Handler ==== | ==== Setting up the Script Handler ==== |