LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > CGI/Perl/Python > WSGI + Directadmin + Shared Hosting

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-15-2010, 07:07 PM
QuantumNet QuantumNet is offline
Senior Member
 
Join Date: Nov 2007
Posts: 61
Default WSGI + Directadmin + Shared Hosting

I am trying to set it up so customers can easily install WSGI based scripts, there is a web chat that integrates into IRC servers and we would like to have it so each customer can upload their chat client to a subdomain with minimal effort on their or our part.

Here is the excerpt from the script's readme:

Quote:
In reality, you probably want to use mod_wsgi or something. You can find
a mod_wsgi configuration script at atheme-web.wsgi. Then you want to do
something like:

WSGIScriptAlias / /path/to/atheme-web/atheme-web.wsgi

You MUST edit the atheme-web.wsgi so that it can find the application
modules. Instructions are included inside the atheme-web.wsgi file.
and the script that needs to be accessible on a subdomain:

Quote:
#!/usr/bin/env python

# depending on your mod_wsgi configuration, you may need to uncomment these
# lines and adjust them as appropriate to make the relocations work:

# import os, sys
# sys.path.append('/var/www/atheme-web')
# os.chdir('/var/www/atheme-web')

def make_app(global_conf=None):
from middleware.classpublisher import ClassPublisher
from athemeweb.webroot import WebRoot
real_app = ClassPublisher(WebRoot())

from paste.exceptions.errormiddleware import ErrorMiddleware
error_app = ErrorMiddleware(real_app, global_conf=global_conf)

from paste.session import SessionMiddleware
return SessionMiddleware(error_app)

application = make_app({'debug': True, 'expiration': 60})
I am really lost on how to configure the server and litespeed so that this is an easy process for each customer, I am hoping this can be setup as easily as PHP with .php .wsgi .py Aliases

Last edited by QuantumNet; 08-15-2010 at 07:09 PM..
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:55 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.