Aha!  That's the ticket.  Thanks!

Specifically, I had to change the DATABASE_NAME value in
settings_local.py to the absolute path to my sqlite database: "C:/
reviewboard/reviewboard.sqlite"

Now Apache is working for me!  W00t!

Thanks everyone!

On Sep 17, 9:54 am, Ben <[EMAIL PROTECTED]> wrote:
> I guess your reviewboard is not able to find the database ...
>
> I got the same early today running my reviewboard via wsgi, and
> indicating a relative path to the sqlite file.
>
> Indicating the absolute path to the sqlite database solved the issue,
> but then I realized I did not wanted it rooted on my server, but with
> a SITE_ROOT value, and switched to mod_python (which did not solved my
> problem, but I did not switched back to wsgi yet).
>
> In a nuttshel: reviewboard were not able to find my database and
> continuously asking me to recreate it, I gave him the absolute path
> and it solved it.
>
> Regards,
> Ben
>
> On Sep 17, 3:40 pm, Guillaume Dufrêne <[EMAIL PROTECTED]>
> wrote:
>
> > Yes I do :
>
> > ls -al htdocs/media/uploaded/
> > drwxr-x--- 4 www-data root 4096 2008-09-16 17:57 .
> > drwxr-xr-x 9 www-data root 4096 2008-09-16 16:13 ..
> > drwxr-x--- 2 www-data root 4096 2008-09-16 17:57 images
> > drwxr-x--- 6 www-data root 4096 2008-09-16 16:13 .svn
>
> > I tried to chmod 777 the uploaded directory without any positive result ...
>
> > About ./manage.py shell :
> > Python 2.5.2 (r252:60911, Apr 21 2008, 11:12:42)
> > [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
> > Type "help", "copyright", "credits" or "license" for more information.
> > (InteractiveConsole)
> >  >>> from djblets.siteconfig.models import SiteConfiguration
> >  >>> siteconfig = SiteConfiguration.objects.get_current()
> >  >>>
>
> > no output ...
>
> > About the way I installed reviewboard, I wrote a common procedure to
> > install it on ubuntu distrib :
>
> > apt-get install libapache2-mod-python patchutils memcached libjpeg62-dev
> > libfreetype6-dev python-all-dev gcc python-svn
> > cd /usr/share
> > svn checkouthttp://reviewboard.googlecode.com/svn/trunk/reviewboard
> > cd /tmp
> > wgethttp://www.djangoproject.com/download/1.0/tarball/
> > tar zxvf Django-1.0.tar.gz
> > cd Django-1.0
> > python setup.py install
> > cd /tmp
> > wgethttp://effbot.org/downloads/Imaging-1.1.6.tar.gz
> > cd Imaging-1.1.6
> > python setup.py install
> > cd /usr/share/reviewboard
> > cp settings_local.py.tmpl settings_local.py
> > vi settings_local.py
>
> > Change configuration :
> > DATABASE_ENGINE = 'sqlite3'
> > DATABASE_NAME = 'reviewboard.sqlite'
>
> > save / exit file
>
> > ./manage.py syncdb
> > reply yes and add an admin account
> > You can now test your installation this ./manage.py runserver and 
> > accesshttp://YOUR_SERVER:8000
>
> > create an images directory in media/uploaded :
> > mkdir -p htdocs/media/uploaded/images
>
> > change owner of this directory to the apache user :
> > chown -R www-data htdocs
>
> > create a new site configuration into /etc/apache2/sites-available/ :
> > <VirtualHost *>
> >     ServerName review.sharengo.org
> >     DocumentRoot /usr/share/reviewboard/htdocs
>
> >     # Error handlers
> >     ErrorDocument 500 /errordocs/500.html
>
> >     # Serve django pages
> >     <Location "/">
> >         PythonPath "['/usr/lib/python2.5/site-packages/django'] +
> > ['/usr/share'] + ['/usr/share/reviewboard'] +
> > ['/usr/share/reviewboard/djblets'] + sys.path"
> >         SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
> >         SetHandler mod_python
> >         PythonHandler django.core.handlers.modpython
> >         PythonAutoReload Off
> >         PythonDebug Off
> >         # If you run multiple mod_python sites in the same apache
> >         # instonce, uncomment this line:
> >         PythonInterpreter reviewboard
> >     </Location>
>
> >     # Serve static media without running it through mod_python
> >     # (overrides the above)
> >     <Location "/media">
> >         SetHandler None
> >     </Location>
> >     <Location "/errordocs">
> >         SetHandler None
> >     </Location>
>
> >     # Alias static media requests to filesystem
> >     Alias /media /usr/share/reviewboard/htdocs/media
> >     Alias /errordocs /usr/share/reviewboard/htdocs/errordocs
> > </VirtualHost>
>
> > enable new site configuration :
> > a2ensite review.sharengo.org
>
> > reload apache configuration :
> > /etc/init.d/apache2 reload
>
> > fharrison wrote:
> > > Daniel, are you on Windows? If so how are chmoding, cygwin, colinux?
> > > Chmoding via cygwin won't work, you'll need to use the Windows native
> > > security settings; to give whatever the Apache user is read/write
> > > perms, do it via the folder's properties (right-click->properties-
>
> > >> 'Security' tab). Btw, I accidentally changed the security settings on
>
> > > the wrong directory "reviewboard\uploaded" instead of "reviewboard
> > > \htdocs\media\uploaded". That confused me for a couple of minutes. :(
>
> > > I'm a bit confused though, are you still getting the "Database
> > > changes" box, even after a sync? Have you tried "manage.py evolve"?
>
> > > Guillaume, are you sure you've created the images directory?
>
> > > F.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to