Ah... that would explain the problem I'm having, then! I'm definitely running through mod_wsgi - I got things working with that (not including the LDAP authentication piece and LdapPlugin usage). I haven't installed mod_python at all. I was trying to figure out where this PythonOption directive was coming from. So, if I want to run LdapPlugin, it sounds like I can't be using mod_wsgi because it doesn't contain that directive.
On Apr 21, 10:06 pm, "Erik Bray" <[EMAIL PROTECTED]> wrote: > On 4/21/08, James Fellrath <[EMAIL PROTECTED]> wrote: > > > > > We are running Apache 2.2.8, Python 2.4, Trac 0.10, and using mod_wsgi as > > our Python/Apache link. Our OS is Windows 2003 Server. > > > I have been successful in getting the WSGI connection to work and bringing > > up our project's webpage without setting up any LDAP authentication. Now > > I've installed the plugin per the instructions, but it appears that the > > installation process hasn't loaded everything it should have. I'm unable to > > restart Apache. > > > Here are the lines from our httpd.conf file that pertain to the LDAP > > authentication and LdapPlugin settings: > > > <Location "C:/projects/trac/ccc_solutions"> > > PythonOption TracEnv "C:/projects/trac/ccc_solutions" > > PythonOption TracUriRoot "/ccc_solutions" > > AuthType Basic > > AuthName "ccc_solutions" > > AuthBasicProvider ldap > > Order Allow,Deny > > Allow from All > > AuthLDAPURL "<ldapURL>" > > AuthzLDAPAuthoritative off > > Require valid-user > > </Location> > > > Commenting out the two "PythonOption" lines results in Apache starting (but > > without the LDAP authentication). Leaving them there results in the > > following error from the Apache error log. > > > [Mon Apr 21 16:25:07 2008] [notice] Parent: Received restart signal -- > > Restarting the server. > > Syntax error on line 502 of C:/Program Files/Apache Software > > Foundation/Apache2.2/conf/httpd.conf: > > Invalid command 'PythonOption', perhaps misspelled or defined by a module > > not included in the server configuration > > [Mon Apr 21 16:25:07 2008] [notice] Child 4068: Exit event signaled. Child > > process is ending. > > [Mon Apr 21 16:25:07 2008] [warn] (OS 995)The I/O operation has been > > aborted because of either a thread exit or an application request. : > > winnt_accept: Asynchronous AcceptEx failed. > > [Mon Apr 21 16:25:08 2008] [notice] Child 4068: Released the start mutex > > [Mon Apr 21 16:25:09 2008] [notice] Child 4068: All worker threads have > > exited. > > [Mon Apr 21 16:25:09 2008] [notice] Child 4068: Child process is exiting > > > I didn't get any error messages when I was running setup.py to install > > LdapPlugin-0.5.1dev-py2.4.egg. But it seems that somewhere in that > > installation may be where the error lies. > > Are you sure you're running Trac through mod_wsgi? Whatever you're > trying to do with LDAP isn't even directly related here... > PythonOption is a directive specific to mod_python, so it doesn't make > sense to have that in your config if you're using mod_wsgi (of which I > see no evidence in the config you posted). --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
