Hi Graham, sorry for replying to you so incredibly late, I haven't had
much time to work on my project.

So the syntax of the WSGIDaemonProcess directive should be,

WSGIDaemonProcess user=username group=groupname threads=15 maximum-
requests=10000

For each individual Django user. But you state in the documentation,

> Note that this option is ignored if Apache wasn't started as the root user,
> in which case no matter what the settings, the daemon processes will
> be run as the user that Apache was started as.

On the server I'm working on, Apache runs under the www-data user, not
root. Is there no way around this?

By the way, thanks for being such an involved developer! You're very
helpful.

On May 22, 1:47 am, Graham Dumpleton <graham.dumple...@gmail.com>
wrote:
> On May 22, 2:37 pm, Benjamin Webber <benjamin.web...@gmail.com> wrote:
>
> > It appears that Apache was not given permission to access the /home/
> > username/django directory and write to the database. Fixing the
> > permissions fixed everything.
>
> BTW, strongly recommend you use mod_wsgi daemon mode, configuring a
> separate mod_wsgi daemon process group for each distinct user, with
> that daemon process running as that user and not as Apache user. This
> way you aren't using embedded mode and each users code is kept
> distinct, not running in the same process and no running as he same
> user.
>
> Graham
>
>
>
> > On May 21, 6:18 pm, Ben <benjamin.web...@gmail.com> wrote:
>
> > > Hi everyone, I'm just starting out with Django and really enjoying it.
> > > For a project I am trying to install it on an Apache server at school
> > > with multiple users. The userdir module is enabled such that users can
> > > create their own websites. I'd like to allow some of these users to
> > > tinker with Django.
>
> > > I have administrator access but need to make it easy for regular users
> > > to deploy their own Django websites if they are so inclined. I have
> > > installed mod_wsgi andmod_userdir, and configured everything as such:
>
> > >         /home/username/django/                  is where their Django 
> > > application lives
> > >         /home/username/django/apache/           contains the WSGI 
> > > interface file
> > >         /home/username/www/                     is their website directory
> > >         /home/username/www/media/               is where their Django 
> > > media files live
>
> > >         example.com/~username/                  is their static website
> > >         example.com/~username/django/   WSGI mounts the Django 
> > > application at /
> > > ~username/django/
>
> > > The problem I am having is actually accessing my test Django website.
> > > When I attempt to access example.com/~username/django/admin/, I get
> > > the Django 404 debug message. So, I know it's at least running
> > > correctly. I've uncommented the three lines from urls.py to enable
> > > admin access and added the django.contrib.admin package to
> > > INSTALLED_APPS in settings.py. I ran syncdb.
>
> > > I've tried configuring urls.py to map the admin to ~username/django/
> > > admin and django/admin as well, with no luck. If anyone could help me
> > > out I'd really appreciate it!
>
> > > Thanks,
>
> > > Benjamin Webber
>
> > > --
> > > You received this message because you are subscribed to the Google Groups 
> > > "Django users" group.
> > > To post to this group, send email to django-us...@googlegroups.com.
> > > To unsubscribe from this group, send email to 
> > > django-users+unsubscr...@googlegroups.com.
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/django-users?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Django users" group.
> > To post to this group, send email to django-us...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/django-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/django-users?hl=en.

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

Reply via email to