Tracs not working in Apache
- From: Matthew Gillen <me (at) mattgillen.net>
- Date: Tue, 28 Feb 2006 19:16:09 -0500
I'm guessing your problem is that in Fedora, apache runs under the
user.group: apache.apache
So either change the group of those directories to 'apache', or the owner.
Matt
Michael Thrift wrote:
> Hi,
> I'm new to the list, and I'm configuring trac+darcs on a server for a
> faculty member, and I've hit a speed bump. I've followed the steps word
> for word, and I've created /var/trac /var/trac-eggs with the appropriate
> permissions:
>
> drwxrwxr-x 3 root trac 4096 Feb 28 13:54 trac
> drwxrwxr-x 2 root trac 4096 Feb 28 17:26 trac-eggs
>
> I issued the chmod recursively. I've got the following in my httpd.conf:
>
> <Location /repo>
> SetHandler mod_python
> PythonHandler trac.web.modpython_frontend
> PythonOption TracEnvParentDir /var/trac
> PythonOption TracUriRoot /repo
> SetEnv PYTHON_EGG_CACHE /var/trac-eggs
> </Location>
>
> But when I try to access [server]/repo I get this in my logs:
>
> [Tue Feb 28 17:39:34 2006] [error] [client] PythonHandler
> trac.web.modpython_frontend: Traceback (most recent call last):
> [Tue Feb 28 17:39:34 2006] [error] [client] PythonHandler
> trac.web.modpython_frontend: File
> "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in
> HandlerDispatch\n result = object(req)
> [Tue Feb 28 17:39:34 2006] [error] [client] PythonHandler
> trac.web.modpython_frontend: File
> "/usr/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line
> 201, in handler\n send_project_index(mpr, project_opts)
> [Tue Feb 28 17:39:34 2006] [error] [client] PythonHandler
> trac.web.modpython_frontend: File
> "/usr/lib/python2.4/site-packages/trac/web/main.py", line 294, in
> send_project_index\n env_paths = [os.path.join(dir, f) for f in
> os.listdir(dir)]
> [Tue Feb 28 17:39:34 2006] [error] [client] PythonHandler
> trac.web.modpython_frontend: OSError: [Errno 13] Permission denied:
> '/var/trac'
>
> Any help is much appreciated, I've already put hours into darcs, and
> trac, with no success with either. My platform is: Fedora Core 4.
>
> Thanks!
> _______________________________________________
> Trac mailing list
> Trac (at) lists.edgewall.com
> http://lists.edgewall.com/mailman/listinfo/trac
_______________________________________________
Trac mailing list
Trac (at) lists.edgewall.com
http://lists.edgewall.com/mailman/listinfo/trac