Hi,
I have installed trac and mod_wsgi. I ran the command: trac-admin /
home/straight/public_html/dev/trac initenv
I edited httpd.conf as follows:
LoadModule wsgi_module modules/mod_wsgi.so
WSGIScriptAlias /trac /home/straight/public_html/dev/trac/eggs/cgi-bin/
trac.wsgi
<Directory /home/straight/public_html/dev/trac/eggs/cgi-bin/>
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
I've set the owner of everything under /home/straight/public_html/dev
to be the straight user, which is normal for my cpanel install.
Can someone point me in the right direction? Below is the output from
the apache logs.
Thanks
David
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] mod_wsgi
(pid=3024): Exception occurred processing WSGI script '/home/straight/
public_html/dev/trac/eggs/cgi-bin/trac.$
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] Traceback
(most recent call last):
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] File "/
home/straight/public_html/dev/trac/eggs/cgi-bin/trac.wsgi", line 30,
in application
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] from
trac.web.main import dispatch_request
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] File "/usr/
lib/python2.4/site-packages/Trac-0.11.5-py2.4.egg/trac/web/
__init__.py", line 15, in ?
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] from
trac.web.api import *
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] File "/usr/
lib/python2.4/site-packages/Trac-0.11.5-py2.4.egg/trac/web/api.py",
line 29, in ?
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] from
trac.util import get_last_traceback, md5, unquote
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] File "/usr/
lib/python2.4/site-packages/Trac-0.11.5-py2.4.egg/trac/util/
__init__.py", line 33, in ?
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] from
trac.util.html import escape, unescape, Markup, Deuglifier
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] File "/usr/
lib/python2.4/site-packages/Trac-0.11.5-py2.4.egg/trac/util/html.py",
line 16, in ?
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] from
genshi import Markup, escape, unescape
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] File "/usr/
lib/python2.4/site-packages/Genshi-0.5.1-py2.4-linux-i686.egg/genshi/
__init__.py", line 32, in ?
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] File "/usr/
lib/python2.4/site-packages/Genshi-0.5.1-py2.4-linux-i686.egg/genshi/
core.py", line 544, in ?
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] File "/usr/
lib/python2.4/site-packages/Genshi-0.5.1-py2.4-linux-i686.egg/genshi/
_speedups.py", line 7, in ?
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] File "/usr/
lib/python2.4/site-packages/Genshi-0.5.1-py2.4-linux-i686.egg/genshi/
_speedups.py", line 4, in __bootstra$
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] File "/usr/
lib/python2.4/site-packages/pkg_resources.py", line 799, in
resource_filename
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] return
get_provider(package_or_requirement).get_resource_filename(
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] File "/usr/
lib/python2.4/site-packages/pkg_resources.py", line 1228, in
get_resource_filename
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226]
self._extract_resource(manager, self._eager_to_zip(name))
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] File "/usr/
lib/python2.4/site-packages/pkg_resources.py", line 1249, in
_extract_resource
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226]
real_path = manager.get_cache_path(
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] File "/usr/
lib/python2.4/site-packages/pkg_resources.py", line 880, in
get_cache_path
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226]
self.extraction_error()
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] File "/usr/
lib/python2.4/site-packages/pkg_resources.py", line 846, in
extraction_error
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] raise
err
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226]
ExtractionError: Can't extract file(s) to egg cache
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226]
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] The
following error occurred while trying to extract file(s) to the Python
egg
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] cache:
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226]
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] [Errno 13]
Permission denied: '/home/straight/public_html/dev/trac/.egg-cache'
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226]
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] The Python
egg cache directory is currently set to:
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226]
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] /home/
straight/public_html/dev/trac/.egg-cache
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226]
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] Perhaps your
account does not have write access to this directory? You can
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] change the
cache directory by setting the PYTHON_EGG_CACHE environment
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226] variable to
point to an accessible directory.
[Thu Aug 27 11:05:37 2009] [error] [client 70.159.25.226]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---