hi
hereby all relevant information concerning versions and configs.
hopefully someone sees where the glitch is...
Am 24.01.2007 um 22:22 schrieb Emmanuel Blot:
> In order to understand your issue, do not forget to provide:
> * Trac version
0.9.5
> * Python version
Python 2.4.3 (#1, Apr 7 2006, 10:54:33)
[GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
> * relevant section(s) of your Apache config file
...
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
LoadModule python_module modules/mod_python.so
...
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
there:
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *>
# ServerName projects.<domain>.com
ServerName MacMini.local
# DocumentRoot "/var/trac/test"
#
# Trac mod_python configuration
#
Alias /trachtdocs/ "/opt/local/share/trac/htdocs/"
<Location /test>
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /var/trac/test
</Location>
<Location "/test/login">
AuthType Basic
AuthName "TRAC User Authenticationc"
AuthUserFile /var/trac/test/.htpasswd
Require valid-user
</Location>
<Location /test/svn>
DAV svn
SVNPath /var/svn/test
AuthzSVNAccessFile /var/svn/test/conf/authz
AuthType Basic
AuthName "TRAC User Authentication"
AuthUserFile /var/trac/test/.htpasswd
Require valid-user
</Location>
</VirtualHost>
> * relevant sections(s) of your trac.ini file
trac.ini:
---------
[wiki]
ignore_missing_pages = false
[header_logo]
src = common/trac_banner.png
alt = Trac
height = 73
link = http://trac.edgewall.com/
width = 236
[logging]
log_file = trac.log
#log_level = DEBUG
log_type = none
log_level = WARNING
#log_type = syslog
[trac]
default_charset = iso-8859-15
ignore_auth_case = false
permission_store = DefaultPermissionStore
check_auth_ip = true
database = sqlite:db/trac.db
templates_dir = /opt/local/share/trac/templates
default_handler = WikiModule
metanav = login,logout,settings,help,about
mainnav = wiki,timeline,roadmap,browser,tickets,newticket,search
repository_dir = /var/svn/test
[notification]
always_notify_owner = false
smtp_always_cc =
smtp_password =
smtp_enabled = false
smtp_replyto = [EMAIL PROTECTED]
smtp_port = 25
always_notify_reporter = false
smtp_server = localhost
smtp_from = [EMAIL PROTECTED]
smtp_user =
[project]
url = http://example.com/
footer = Visit the Trac open source project at<br /><a href="http://
trac.edgewall.com/">http://trac.edgewall.com/</a>
name = test
descr = My example project
icon = common/trac.ico
[mimeviewer]
php_path = php
enscript_path = enscript
tab_width = 8
max_preview_size = 262144
[attachment]
render_unsafe_content = false
max_size = 262144
[timeline]
changeset_show_files = 0
ticket_show_details = false
default_daysback = 30
[ticket]
default_version =
default_component = component1
default_type = defect
restrict_owner = false
default_milestone =
default_priority = major
[browser]
hide_properties = svk:merge
in the conf/authz file:
-----------------------
[groups]
admin = tjm, www
[/]
@admin = rw
www = r
* =
> * which 'user' is running the Apache server
www-data on linux, www on macosx.
<IfModule !mpm_netware_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User www
Group www
</IfModule>
> * which Apache distribution are you using (default, fink,
> darwinports, ...)
Server version: Apache/2.2.2
Server built: Jan 7 2007 13:00:00
installed by:
--------------
darwinports (very different than in linux debian etch)
in /opt/local/apache2/
> * ...
>
> Cheers,
> Manu
>
calling: http://localhost/test/
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.
running in standalone mode:
---------------------------
calling http://localhost:8000/test/
Welcome to Trac 0.9.5
Trac is a minimalistic approach to web-based management of software
projects. Its goal is to simplify effective tracking and handling of
software issues, enhancements and overall progress.
(SVN is on and working!)
PROBLEM seems to rely on this:
------------------------------
>>
>>
>>> Mod_python error: "PythonHandler trac.web.modpython_frontend"
>>>
>>> Traceback (most recent call last):
>>>
>>> File "/usr/lib/python2.4/site-packages/mod_python/apache.py",
>>> line 287, in HandlerDispatch
>>> log=debug)
>>>
>>> File "/usr/lib/python2.4/site-packages/mod_python/apache.py",
>>> line 461, in import_module
>>> f, p, d = imp.find_module(parts[i], path)
>>>
>>> ImportError: No module named trac
this is what I get on my debian system, that has an identical setup
as the osx version.
so apache does not load the trac.frontend module?
is this what causes that trac will not run under apache?
thanks for all help available, in advance!
.tom
> On 1/24/07, Thomas Kuehner <[EMAIL PROTECTED]> wrote:
>>
>> Hi All.
>>
>> I have a problem running Trac on Mac OS X 10.4.8 under Apache2. Tried
>> the HowTo for installing on OS X Server. It works fine in standalone
>> mode. But under Apache I always receive an "no permission to access /
>> on this server"-error.
>>
>> Directory permission of the trac folder and the svn folder have been
>> set to www as defined in httpd.conf, svn repository and trac-
>> environment has been created and configured. - Can anyone help me to
>> solve this? - It is configured to use mod_python not cgi.
>>
>> TIA!
>> .tom
>>
>>
>>>
>>
>
>
> --
> Manu
>
> >
-----------------------------
Thomas Kühner
Kretzerstr. 20
DE-50733 Köln
Tel: 0221 - 292 40 16
Fax: 0221 - 292 47 09
http://www.macgix.de
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---