I just canceled my account.  There is no way to get python 2.5
installed and there are issues with hashlib on version 2.4 with CRYPT
so it was a bust for me. Too bad, their servers are fast. I'm going to
skip making a slice but here's how I got it working:

1) Get them to install pysqlite, hashlib, MySQL-python, uuid and
enable SSH access.

2) Install virtualenv
wget http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.5.tar.gz
tar xzf virtualenv-1.4.5.tar.gz
python virtualenv-1.4.5/virtualenv.py $HOME/local

2a)Add it to your path
PATH="$HOME/local/bin:$PATH"
export PATH

2b) Create a .bash_profile in your home folder with the same two lines
above

3) Download web2py_src.zip and extract to your web root.
wget http://www.web2py.com/examples/static/web2py_src.zip
unzip web2py_src.zip
mv web2py/* public_html/yourdomain.com/

4) Create a dispatch.fcgi in web root with the following content:
#!/home/[username]/local/bin/python
import sys
from flup.server.fcgi_fork import WSGIServer
import gluon.main
application=gluon.main.wsgibase
## or
# application=gluon.main.wsgibase_with_logging
WSGIServer(application).run()

4b) chmod +x dispatch.fcgi

5) Create a .htaccess in the web root with the following content:
AddHandler fcgid-script .fcgi
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteRule ^dispatch\.fcgi/ - [L]
RewriteRule ^(.*)$ dispatch.fcgi/$1 [L]


Give it a try.



On Mar 24, 7:11 pm, Richard <richar...@gmail.com> wrote:
> On Mar 23, 10:40 am, "mr.freeze" <nat...@freezable.com> wrote:
>
> > Hostgator works but it's not as easy as it could be. I'll try to put
> > together a slice soon.
>
> Looking forward to it.
> I have a client who already uses Hostgator and they won't want to move
> elsewhere just for my framework.
>
> On Mar 23, 10:40 am, "mr.freeze" <nat...@freezable.com> wrote:
>
> > Hostgator works but it's not as easy as it could be. I'll try to put
> > together a slice soon.
>
> > On Mar 22, 6:34 pm, Richard <richar...@gmail.com> wrote:
>
> > > I read in another thread that all that is needed for a host to support
> > > web2py is python2.4+. However I tried and failed to run web2py on
> > > Hostgator, which does support python2.5. It is likely possible, but my
> > > Apache-fu is not strong enough.
>
> > > What would be great is a list of hosts that are known to work along
> > > with instructions.
>
> > > Here is a start of what I have used personally:
> > > - Google App Engine (http://code.google.com/appengine/docs/python/
> > > gettingstarted/uploading.html)
> > > - Webfaction (http://forum.webfaction.com/viewtopic.php?id=2373)
>
> > > Others I have heard work:
> > > - Slicehost
> > > - Dreamhost
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to