Jeremy Herbison said the following on 02/19/2006 07:01 AM:
> I get the following error using mod_python and SQLite (latest stable
> versions of everything:
>
> PythonHandler trac.web.modpython_frontend: OSError: [Errno 13] Permission
> denied: '/root/.python-eggs'
>
> The recommended solution, setting:
>
> SetEnv PYTHON_EGG_CACHE /tmp
>
> in httpd.conf fixes the problem if I use CGI, but I'd rather use mod_python
> for obvious reasons. It doesn't seem like adding the SetEnv does anything at
> all since the error log always says "/root/.pything.eggs".
>
> What's the deal??
I see a similar error, but only after a server reboot:
[Errno 13] Permission denied: '/.python-eggs'
This is fixed if I restart apache.
My config follows. If you need any more let me know.
R.
projects.robinbowes.com.conf:
<VirtualHost *:80>
ServerName projects.robinbowes.com
ServerAdmin [EMAIL PROTECTED]
ErrorLog logs/projects.robinbowes.com.com-error_log
CustomLog logs/projects.robinbowes.com.com-access_log combined
# Re-direct all requests to secure server
RewriteEngine on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
</VirtualHost>
The following code is included in ssl.conf:
DocumentRoot /home/apache/projects.robinbowes.com/
# Re-direct from / to /trac
RewriteEngine On
RewriteRule ^/+$ /trac [R]
# Re-direct from old project locations to new one. 2006-02-14
RewriteRule ^/apply_replaygain$ /trac/apply_replaygain [R]
RewriteRule ^/check_validrcptto_cdb$ /trac/check_valid_rcptto_cdb [R]
RewriteRule ^/flac2mp3$ /trac/flac2mp3 [R]
RewriteRule ^/technotes$ /trac/technotes [R]
Alias /trac/ /usr/share/trac/htdocs/
<Directory "/usr/share/trac/htdocs">
Order allow,deny
Allow from all
</Directory>
<Location /trac>
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir "/home/trac/"
PythonOption TracUriRoot /trac
# page to show list of projects goes here
# PythonOption TracEnvIndexTemplate
/home/apache/projects.sitepen.com/static/AvailableProjects.cs
</Location>
<LocationMatch "/trac/[^/]+/login">
AuthType Basic
AuthName "robinbowes.com Projects"
AuthUserFile /etc/httpd/conf.d/auth/projects.robinbowes.com-users
Require valid-user
</LocationMatch>
<Directory /var/www/svn/>
Options ExecCGI FollowSymLinks
AllowOverride all
Allow from all
Order allow,deny
</Directory>
<Location /svn>
DAV svn
# any "/svn/foo" URL will map to a repository /home/svn/foo
SVNParentPath /home/svn
SVNIndexXSLT "/static/svnindex.xsl"
AuthType Basic
AuthName "Subversion repository"
AuthUserFile /etc/httpd/conf.d/auth/projects.robinbowes.com-users
AuthzSVNAccessFile
/etc/httpd/conf.d/auth/projects.robinbowes.com-svnaccess
Require valid-user
</Location>
Alias /download /home/apache/projects.robinbowes.com/download
<Directory "/home/apache/projects.robinbowes.com/download">
Options Indexes FollowSymLinks MultiViews
Order allow,deny
Allow from all
</Directory>
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac