Might be a permissions problem. Check that the user that is running the
httpd process (maybe 'apache'?) can access /var/tracbird and /usr/share/trac

On 23 February 2011 16:05, showa3 <[email protected]> wrote:

> (I am a Japanese and I am not good at English. So, I have some English
> mistakes in this sentences. I'm sorry.)
>
>
> I can't connect Trac with Apache.
>
> (( version ))
> Apache : 2.2.17(from source code)
> Python : 2.4.3(preInstalled)
> centOS : 5.5
> Trac : Trac-0.12.1.ja1
> mod_wsgi : 3.3
>
> (( command ))
>  $ su
>  # cd /var
>  # mkdir tracbird
>  # cd /var/tracbird
>  # pwd
>  # trac-admin birdproject initenv
>  ->birdproject->[Enter]
>  ->Congratulations!
>  # chown -R webuser:webgroup /var/tracbird
>  # cd /var/tracbird
>  # trac-admin birdproject deploy /tmp/deploy
>  # cp -i /tmp/deploy/* /var/tracbird
>  # chown -R webuser:webgroup /var/tracbird
>
> (( in httpd.conf ))
>  WSGIScriptAlias /tracbird /usr/share/trac/cgi-bin/trac.wsgi
>  <Directory /usr/share/trac/cgi-bin>
>   WSGIApplicationGroup %{GLOBAL}
>   Order deny,allow
>   Allow from all
>  </Directory>
>
>
> When I watch the browser, http://localhost/tracbird, I notice this Error.
>
> 「Internal Server Error
> The server encountered an internal error or misconfiguration and was unable
> to complete your request.
> Please contact the server administrator, [email protected] and inform them
> of
> the time the error occurred, and anything you might have done that may have
> caused the error.
> More information about this error may be available in the server error log.
> 」
>
> (( Error_log))
> [error] [client 127.0.0.1] mod_wsgi (pid=2276 135267 ): Exception occurred
> processing WSGI script '/var/tracbird/cgi-bin/trac.wsgi'.
> [error] [client 127.0.0.1] Traceback (most recent call last):
> [error] [client 127.0.0.1]   File "/var/tracbird/cgi-bin/trac.wsgi", line
> 30, in application
> [error] [client 127.0.0.1]     from trac.web.main import dispatch_request
> [error] [client 127.0.0.1] IOError: zipimport: can not open file
> /usr/lib/python2.4/site-packages/Trac-0.12.1ja1-py2.4.egg
>
> (( trac.wsgi ))
>  #!/usr/bin/python
>  import os
>  def application(environ, start_request):
>        if not 'trac.env_parent_dir' in environ:
>                environ.setdefault('trac.env_path',
> '/var/tracbird/birdproject')
>        if 'PYTHON_EGG_CACHE' in environ:
>                os.environ['PYTHON_EGG_CACHE'] = environ['PYTHON_EGG_CACHE']
>        elif 'trac.env_path' in environ:
>                os.environ['PYTHON_EGG_CACHE'] = \
>                        os.path.join(environ['trac.env_path'], '.egg-cache')
>        elif 'trac.env_parent_dir' in environ:
>                os.environ['PYTHON_EGG_CACHE'] = \
>                        os.path.join(environ['trac.env_parent_dir'],
> '.egg-cache')
>        from trac.web.main import dispatch_request
>        return dispatch_request(environ, start_request)
>
>  # ls | grep Trac-0.12.1ja1-py2.4.egg
>  -rw-------  1 root root 2705119  2月 18 10:07 Trac-0.12.1ja1-py2.4.egg
>
> I tried this command.
>
>  # chown webuser.webgroup rac-0.12.1ja1-py2.4.egg
>
> But I couldn't.
>
>
> How can I resolve this problem?
> Will you show me some advice and process?
>
>
> --
> 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.
>
>

-- 
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.

Reply via email to