Hello,

I'm using an Ubuntu Dapper box and I've installed trac packages
(0.9.3-1ubuntu1) [universe] (+ subversvion and sqlite)

I want to use Trac with Mod Python (I have already a MoinMoin working
with mod python).

I followed the instructions there for the Mod Python part:
http://trac.edgewall.org/wiki/TracOnUbuntu

when I run the Trac test server it works fine but when I want to access
it at http://myserver/trac I have an internal server error.

If I look at the error.log of apache2 I have this and I can see it
doesn't find ModPythonHandler module:

----------------------------------------------
[Sun Oct 08 00:11:25 2006] [error] [client XXXX] PythonHandler
trac.ModPythonHandler:   File
"/usr/lib/python2.4/site-packages/mod_python/apache.py", line 287, in
HandlerDispatch\n    log=debug)
[Sun Oct 08 00:11:25 2006] [error] [client XXXX] PythonHandler
trac.ModPythonHandler:   File
"/usr/lib/python2.4/site-packages/mod_python/apache.py", line 454, in
import_module\n    f, p, d = imp.find_module(parts[i], path)
[Sun Oct 08 00:11:25 2006] [error] [client XXXX] PythonHandler
trac.ModPythonHandler: ImportError: No module named ModPythonHandler
--------------------------------------------------

My repository for my project is in  /var/svn/repository/mytrac and it
works fine through svn (or http://myserver/svn/mytrac)

My /etc/apache2/sites-available/default looks like this :

------------------------------------------------------
NameVirtualHost *
<VirtualHost *>

.....

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        <Location /homewiki>
                SetHandler python-program
                # Add the path of your wiki directory
                PythonPath "['/usr/local/share/moin/homewiki'] +
sys.path"
                PythonHandler MoinMoin.request::RequestModPy.run
        </Location>

        <Location /trac>
                SetHandler mod_python
                PythonHandler trac.ModPythonHandler # For Breezy++ use:
PythonHandler trac.web.modpython_frontend
                PythonOption TracEnv /var/trac
                PythonOption TracUriRoot "/trac"
        </Location>
      ErrorLog /var/log/apache2/error.log

        # Possible values include: debug, info, notice, warn, error,
crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/access.log combined
        ServerSignature On


...

</VirtualHost>
--------------------------------------------------------


Thanks for any help or suggestion.


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

Reply via email to