I was able to get web.py running without too much trouble on my hosting service Symonds.net. I created a personal status page with it, which can be viewed here. The source code for the page is also included.
Getting it up
web.py can be run on Symonds.net using FastCGI.
Note that the Python installation on Symonds.net did not have the following modules installed, so I had to install it inside my local folder.
Follow the instructions on your host:
- change directory into the newly created domain, e.g :
tar zxvf flup-r1839.tar.gz
mv flup-r1839/flup/ ./flup
On your local machine, as superuser :
- Download Cheetah from http://sourceforge.net/project/showfiles.php?group_id=28961&package_id=20864&release_id=391008 and extract it.
- Extract it using
tar xvzf Cheetah-2.0rc4.tar.gz
- Install it using :
python setup.py install
- Copy the folder named
/usr/lib/python<version>/site-packages/Cheetahto your host in the same folder you downloaded
scp -r /usr/lib/python2.4/site-packages/Cheetah username@hostname:public_html/deepak/
After that, include the following in the
.htaccess file inside the folder you downloaded
Options FollowSymLinks ExecCGI <Files *py> SetHandler cgi-script Addhandler cgi-script py </Files>
You might also want to include some URL redirection directives like :
RewriteEngine on RewriteRule ^status$ status.py/status
After this, you should be able to view your web.py app like here.