I have a linux based web hosting provider (fatcow.com) that doesn’t give any command line access and won’t run the setup script for CherryPy (python web server) for me.
Is there any way to run get around this limitation so that I have a working install of CherryPy?
This might be more or a serverfault.com question, but maybe someone here has dealt with this before.
If CherryPy is pure Python, then you may be able to simply put the
cherrypyfolder in the same place your project resides. This will enable you toimportthe necessary things from CherryPy without needing to copy it to the official install directory. I’ve personally never used CherryPy, so I don’t know precisely what’s being installed and how it’s used, but I’ve done this same thing with Django without a hitch.OK, I just downloaded CherryPy 3.1.2, unzipped it, and copied the contents of
./cherrypy/tutorialto., ran the suggested tut101_helloworld.py and it seems to work.As far as hooking it up to Apache, it depends on what’s available on your host. I think the most common Python interface is
mod_python. When following these instructions, it’s important to set thesys.pathright in order formod_pythonto be able to seecherrypy.