Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Have setup Trac/SVN following instructions from tutorial at


SVN works fine at


Trac ur:


Trac does not, the error it througs is

   Not Found

   The requested URL /index.php was not found on this server.

   Additionally, a 404 Not Found error was encountered while trying to use an   ErrorDocument to handle the request.

Trac.conf file is

### Sample Trac configuration taken from http://trac.edgewall.org/wiki/TracModPython    

### The recommended Trac web interface requires mod_python
<IfModule mod_python.c>

### Create your Trac environments as subdirectories of /var/trac
### They will appear in a listing on your website at /trac/, and be available 
### at /trac/PROJECTNAME/
<Location /trac>
    SetHandler mod_python
    PythonInterpreter main_interpreter
    PythonHandler trac.web.modpython_frontend 
    PythonOption TracEnvParentDir /var/www/trac
    PythonOption TracUriRoot /trac

### Use htpasswd to add Trac accounts to the AuthUserFile
<LocationMatch "/trac/[^/]+/login">
    AuthType Basic
    AuthName "Trac"
    AuthUserFile /var/www/trac/.htpasswd
    Require valid-user

Apache Error Log

[Mon Nov 15 16:07:08 2010] [error] [client] script '/var/www/html/index.php' not found or unable to stat
[Mon Nov 15 16:07:08 2010] [error] [client] script '/var/www/html/index.php' not found or unable to stat
[Mon Nov 15 16:07:08 2010] [error] [client] script '/var/www/html/index.php' not found or unable to stat
[Mon Nov 15 16:07:08 2010] [error] [client] script '/var/www/html/index.php' not found or unable to stat
share|improve this question
Do you have mod_python installed? –  Arenstar Nov 15 '10 at 7:07
Package mod_python-3.2.8-3.1.i386 already installed and latest version –  bob Nov 15 '10 at 7:15
Post your trac.conf file? Did you look at the Apache error log for more details? –  quanta Nov 15 '10 at 8:18
trac.conf file added above –  bob Nov 15 '10 at 9:05
and Apache error log? –  quanta Nov 15 '10 at 9:14

1 Answer 1

up vote 1 down vote accepted

Trac isn't written in PHP, so the index.php error is curios. Also, your error log doesn't show trac in the request. It seems to be requesting index.php from the root of your server. What happens if you request http://servername/trac/ ? Your Apache conf shows it being in that location.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.