CherryPy on a shared host with mod_fcgi?

37 views
Skip to first unread message

Gilles

unread,
Sep 28, 2012, 11:18:54 AM9/28/12
to cherryp...@googlegroups.com
Hello

I'm looking for a simple framework to write Python web apps on a shared Apache server with mod_fcgi.

So far, I failed finding a solution that will connect mod_fcgi to a basic "hello, world" example.

For instance, I could only untar Flup but not make it available anywhere in the user's htdocs directory.

Can CherryPy install and run in a restricted environment?

Thank you.

Anders Langworthy

unread,
Sep 28, 2012, 11:44:45 AM9/28/12
to cherryp...@googlegroups.com
On Fri, Sep 28, 2012 at 08:18:54AM -0700, Gilles wrote:

> Can CherryPy install and run in a restricted environment?

Certainly. I always deploy and run cherrpy under a virtualenv in an
unprivileged user home directory.

The exact details of how to get it actually serving documents correctly
will depend on your host, but I'll admit I stopped using shared host
providers a few years ago when VPSs became so cheap. Getting things
working right on a shared host can be a pain, and if your app is at all
complicated things can break in subtle ways when your provider silently
upgrades or makes changes on the host machine. Not worth the hassle
unless you have no alternative.

Cheers,
Anders.

Gilles

unread,
Sep 30, 2012, 12:02:39 PM9/30/12
to cherryp...@googlegroups.com, and...@anderware.us
Thanks for the tip. I'll read up on virtualenv.
Reply all
Reply to author
Forward
0 new messages