> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:trac-
> [EMAIL PROTECTED] On Behalf Of Manuzhai
> Sent: February 19, 2006 2:32 AM
> To: [email protected]
> Subject: Re: [Trac] setting PYTHON_EGG_CACHE doesn't do anything
> 
> > What's the deal??
> 
> Could you please show us the relevant httpd.conf parts?
> 
> Regards,
> 
> Manuzhai

Sure, sorry I rattled that email off rather quickly...

<Location /projects/myproject>
    SetHandler mod_python
    PythonHandler trac.web.modpython_frontend
    PythonOption TracEnv /var/trac/myproject
    PythonOption TracUriRoot /projects/myproject
    SetEnv PYTHON_EGG_CACHE /tmp/trac-eggs
</Location>

/var/log/httpd/error.log shows:

OSError: [Errno 13] Permission denied: '/root/.python-eggs'

Whether or not that SetEnv line is there. I assume this is because
the python interpreter runs as root, since my apache server runs as
user httpd. If I set things up to use CGI, then I get something like:

OSError: [Errno 13] Invalid directory: '/dev/null/.python-eggs'

Which makes sense since the httpd user has no home directory. But
with the CGI method, using SetEnv PYTHON_EGG_CACHE fixes the problem!

_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to