Ticket #639 (closed task: fixed)
Install wsgi at NOCS
Reported by: | fvenuti | Owned by: | fvenuti |
---|---|---|---|
Priority: | required | Milestone: | |
Component: | community | Version: | |
Keywords: | Cc: |
Description (last modified by fvenuti) (diff)
Install wsgi on ndg at NOCS to support moles browse. This ticket used to be called: Install FastCGI at NOCS.
Change History
comment:2 Changed 14 years ago by fvenuti
- Cc hsnaith, lawrence added
We are experiencing difficulties in installing FastCGI It failed to compile with apache 2.2 There is a fix for 2.2.2 but that did not work as per this post: http://www.webhostingtalk.com/showthread.php?t=574098
comment:3 Changed 14 years ago by lawrence
nb: fastcgi without php!
However I'm having problems too with the glue fastcgi config; am waiting on reply from mailing list meanwhile am very tempted to recommend we all use lighttpd and proxy through apache ... lightpd is much easier to config.
But let's assume apache for a while longer: Let me know if you can't resolve this relatively easily ...
comment:4 Changed 14 years ago by fvenuti
We do need PHP though. Eventually we want to transfer rodin (the catalogue/archive system, PHP based) to the ndg server, where all the other ndg stuff resides.
comment:5 Changed 14 years ago by lawrence
Oh, I know you need PhP, but I was just pointing out that you don't need to be using fastcgi to support php, there is no reason why you can't have just the ndg services running under fastcgi and the others working under modphp or whatever.
comment:6 Changed 14 years ago by lawrence
Actually, it looks straight forward to use mod_python instead of fastcgi if you'd prefer. I think it would require a tiny modification to the ndg.ini file, and a wee mod to your httpd.conf file to point mod_python at the application.
Details are at http://pythonpaste.org/module-paste.modpython.html.
It may be that it would be easiest if Stephen or I sat with one of you to do this sometime ... I reckon it could be done in an afternoon if we we smart about it, and Fabio could come up here (as long as Fabio has root access or sudo access on the machine in question).
comment:7 Changed 14 years ago by lawrence
So the next step would be to get the hello_world working in mod_python first, a la, http://modpython.org/FAQ/faqw.py?req=show&file=faq03.029.htp
comment:9 Changed 14 years ago by fvenuti
The "hello world" example works. We have mod_python 3.2.10 (Python 2.3.4). Installed modpython_gateway.py and run the simpleapp.py example. I would add another link to the ones above: http://www.onlamp.com/pub/a/python/2006/11/09/getting-started-with-wsgi.html?page=last that spends some more words in explaining configuration settings (for non pythoners and non apache experts like me).
comment:10 Changed 14 years ago by fvenuti
- Status changed from assigned to closed
- Resolution set to fixed
- Description modified (diff)
- Summary changed from Install FastCGI at NOCS to Install wsgi at NOCS
comment:11 Changed 14 years ago by fvenuti
- Cc hsnaith, lawrence removed
browse code did not work with python 2.3 So we installed python 2.5 and reinstalled wsgi as per instructions above
comment:12 Changed 14 years ago by fvenuti
- Status changed from closed to reopened
- Resolution fixed deleted
comment:13 Changed 14 years ago by fvenuti
- Status changed from reopened to closed
- Resolution set to fixed