Install mod_fcgid.
Enable mod_fcgid.

Add this configuration in httpd.conf

<FilesMatch "\.py$">
 SetHandler fcgid-script
 Options +ExecCGI
</FilesMatch>

Now your hello world python application using flup.
-----------------------

#!/usr/bin/python
from flup.server.fcgi import WSGIServer

def app(env, start_response):
  start_response('200 OK', [('Content-Type', 'text/plain')])
  yield "Hello World"

WSGIServer(app).run()
-----------------------

-- 
Regards,
Nilesh Govindarajan
Facebook: http://www.facebook.com/nilesh.gr
Twitter: http://twitter.com/nileshgr
Website: http://www.itech7.com
VPS Hosting: http://www.itech7.com/a/vps

-- 
l...@iitd - http://tinyurl.com/ycueutm

Reply via email to