Search results

  1. K

    problem importing python module into wsgi file

    Well since it is just standard WSGI I could try to run it with any other WSGI compliant server. I guess that is the next logical troubleshooting step, but if it runs on the other server does that mean it's a bug with OLS? Believe it or not not only is Apache not installed on my VPS, but I have...
  2. K

    problem importing python module into wsgi file

    This returns a 500 error (doesn't work): from pyadd.lib import addme def application(environ, start_response): q = environ['QUERY_STRING'] num1 = int(q[(q.index('=') + 1)]) num2 = int(q[(q.index('=',6) + 1)]) sum = str(addme(num1, num2)) start_response('200 OK'...
  3. K

    is mod_lua still supported?

    It appears like support has been dropped for the Lua module in the 1.6.x branch. Can anyone confirm this? ./configure no longer works so the configure --with-lua=[DIR] option is moot and the ols.conf file has no (documented) option for the Lua module. I would really like to be able to use Lua...
  4. K

    OLS will not run a simple hello world wsgi python script

    Here are some screenshots of the webadmin and other setup I just did with a new server that has 1 gig of ram instead of only 256 megs. This is with OLS 1.64 and lswsgi 1.5 which appears to be the latest version. I noticed that in one of the tutorials the UDS address is given as lswcgi.sock...
  5. K

    how to install Lua support in OLS 1.6+

    The lua module is not the problem. The problem is building OLS with full support for the Lua module. Up to 1.59 you could run the configure program with "--with-lua=yes" but now a different install method is used and there does not seem to be anywhere to put "--with-lua=yes". Maybe the litespeed...
  6. K

    how to install Lua support in OLS 1.6+

    The Lua module installation instructions seem to assume you are using a version of OLS that still uses the configure script, but in version 1.6+ the configure script is no longer used. So how do I use Lua with version 1.64?
  7. K

    OLS will not run a simple hello world wsgi python script

    That was not my entire conf file. I just pasted the bits I thought might be relevant. Maybe I should post screenshots of the WebAdmin console. I did follow both of the links I posted pretty closely. I can also upload the complete conf file. Are you willing to help troubleshoot this?
  8. K

    OLS will not run a simple hello world wsgi python script

    https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:other-ext-apps:python-lsapi https://openlitespeed.org/kb/python-wsgi-applications/ I followed these guides and tried to run the hello.wsgi example linked to above without success. I get a "503 service unavailable" error every...
Top