Comment #8 on issue 1737 by [email protected]: Exception is thrown when
adding a private GitHub repository
http://code.google.com/p/reviewboard/issues/detail?id=1737
Thanks for looking into this, and sorry for this false alert. I have
successfully run Reviewboard without any problems on a dedicated server.
This particular install is on a shared host, where I don't have access to
the apache and python configuration. Hence the installation steps below
(taken from a site that explains how to install a django-based app on
shared hosting) work around the limitations there, and use fastcgi. Are
there any official instructions on how to install Reviewboard in a shared
hosting environment? The database and everything else are a clean install
btw.
### Prepare installing local binaries.
export
PATH=$HOME/opt/bin:$HOME/bin:$HOME/.local/lib/python/site-packages:$PATH
### Install customizable Python.
cd ~/src
wget http://peak.telecommunity.com/dist/virtual-python.py
python ~/src/virtual-python.py
### install python setuptools
cd ~/src
wget http://peak.telecommunity.com/dist/ez_setup.py
python ez_setup.py --install-dir=~/.local/lib/python/site-packages
### install Reviewboard
easy_install --prefix=$HOME/.local -f
http://downloads.reviewboard.org/releases/ReviewBoard/1.5/ -U ReviewBoard
easy_install --prefix=$HOME/.local mysql-python
rb-site install reviewboard
### add this .htaccess file
AddHandler fcgid-script .fcgi
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ reviewboard.fcgi/$1 [QSA,L]
### change reviewboard.fcgi
#!/home3/kevmaste/bin/python
import os, sys
sys.path.insert(0, "/home3/kevmaste/reviewboard/conf")
sys.path.insert(0, "/home3/kevmaste/reviewboard/htdocs")
sys.path.insert(0, "/home3/kevmaste/.local/lib/python/site-packages")
sys.path.insert(0, "/home3/kevmaste/.local/lib/python2.4/site-packages")
sys.path.insert(0, "/home3/kevmaste/.local/bin")
sys.path.insert(0, "/home3/kevmaste/bin")
sys.path.insert(0,
'/home3/kevmaste/.local/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg')
sys.path.insert(0,
'/home3/kevmaste/.local/lib/python2.4/site-packages/ReviewBoard-1.5rc1-py2.4.egg')
sys.path.insert(0,
'/home3/kevmaste/.local/lib/python2.4/site-packages/python_memcached-1.45-py2.4.egg')
sys.path.insert(0,
'/home3/kevmaste/.local/lib/python2.4/site-packages/pytz-2010h-py2.4.egg')
sys.path.insert(0,
'/home3/kevmaste/.local/lib/python2.4/site-packages/flup-1.0.3.dev_20100525-py2.4.egg')
sys.path.insert(0,
'/home3/kevmaste/.local/lib/python2.4/site-packages/Pygments-1.3.1-py2.4.egg')
sys.path.insert(0,
'/home3/kevmaste/.local/lib/python2.4/site-packages/Djblets-0.6.3-py2.4.egg')
sys.path.insert(0,
'/home3/kevmaste/.local/lib/python2.4/site-packages/django_evolution-0.5-py2.4.egg')
sys.path.insert(0,
'/home3/kevmaste/.local/lib/python2.4/site-packages/Django-1.2.1-py2.4.egg')
sys.path.insert(0,
'/home3/kevmaste/.local/lib/python2.4/site-packages/PIL-1.1.7-py2.4-linux-x86_64.egg')
sys.path.insert(0,
'/home3/kevmaste/.local/lib/python2.4/site-packages/paramiko-1.7.6-py2.4.egg')
sys.path.insert(0,
'/home3/kevmaste/.local/lib/python2.4/site-packages/pycrypto-2.1.0-py2.4-linux-x86_64.egg')
sys.path.insert(0,
'/home3/kevmaste/.local/lib/python2.4/site-packages/python_dateutil-1.5-py2.4.egg')
sys.path.insert(0,
'/home3/kevmaste/.local/lib/python2.4/site-packages/recaptcha_client-1.0.5-py2.4.egg')
os.environ["DJANGO_SETTINGS_MODULE"] = "reviewboard.settings"
os.environ["PYTHON_EGG_CACHE"]
= "/home3/kevmaste/.local/lib/python/site-packages"
from django.core.servers.fastcgi import runfastcgi
runfastcgi(method="threaded", daemonize="false")
--
You received this message because you are subscribed to the Google Groups
"reviewboard-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/reviewboard-issues?hl=en.