Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
litespeed_wiki:python:lswsgi [2013/08/07 18:27]
Michael
litespeed_wiki:python:lswsgi [2015/07/29 14:33]
Michael Alegre removed
Line 1: Line 1:
 ====== Running a Python Application with LSAPI ====== ====== Running a Python Application with LSAPI ======
  
-LiteSpeed SAPI is the easiest and fastest way to run web applications with LiteSpeed Web Server. Recently, we've introduced LSAPI support for Python applications through WSGI. WSGI (Web Server...) is an API for .... It is important to note that, while almost all Python applications ​in wide use on the Internet ​are WSGI-compatible, ​Python applications ​are not necessarily WSGI-compatible. This wiki will go over how to set up LSWS to run Python applications with LWSGI. This wiki assumes that you already have a working version of Python installed and virtual hosts set up to run it on.+LiteSpeed SAPI is the easiest and fastest way to run web applications with LiteSpeed Web Server. Recently, we've introduced LSAPI support for Python applications through WSGI. WSGI (Web Server ​Gateway Interface) is a low-level interface between web servers and web applications. It allows Python applications designed ​for WSGI to be used in a variety of settings. It is important to note that, while most Python applications are WSGI-compatible, ​not all are. 
 + 
 +This wiki will go over how to set up LSWS to run Python applications with LWSGI. This wiki assumes that you already have a working version of Python installed and virtual hosts set up to run it on.
  
 ===== Compile Python with LSWSGI ===== ===== Compile Python with LSWSGI =====
Line 37: Line 39:
 {{litespeed_wiki:​python:​python_ext_app_type.png?​700}} {{litespeed_wiki:​python:​python_ext_app_type.png?​700}}
  
-I give it a name and a socket. Most importantly,​ for the Command setting, I specify the location of my lswsgi executable: ''/​usr/​local/​lsws/​fcgi-bin/​lswsgi''​. (You also have to pick values for Max Connections,​ Initial ​Rquest ​Timeout, and Retry Timeout.)+I give it a name and a socket. Most importantly,​ for the Command setting, I specify the location of my lswsgi executable: ''/​usr/​local/​lsws/​fcgi-bin/​lswsgi''​. (You also have to pick values for Max Connections,​ Initial ​Request ​Timeout, and Retry Timeout.)
  
 {{litespeed_wiki:​python:​python_ext_app_settings.png?​700}} {{litespeed_wiki:​python:​python_ext_app_settings.png?​700}}