Trac svn centos 问题

Trac svn centos 问题

按照教程中的说明设置 Trac/SVN

http://www.sohailriaz.com/how-to-install-subversion-with-trac-on-centos-5-x/

SVN 工作正常

/svn/

追踪您:

/trac/

Trac 没有,它的错误是

   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 文件是

###
### 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
</Location>

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

Apache 错误日志

[Mon Nov 15 16:07:08 2010] [error] [client 10.10.0.14] script '/var/www/html/index.php' not found or unable to stat
[Mon Nov 15 16:07:08 2010] [error] [client 10.10.0.14] script '/var/www/html/index.php' not found or unable to stat
[Mon Nov 15 16:07:08 2010] [error] [client 10.10.0.14] script '/var/www/html/index.php' not found or unable to stat
[Mon Nov 15 16:07:08 2010] [error] [client 10.10.0.14] script '/var/www/html/index.php' not found or unable to stat

答案1

Trac 不是用 PHP 编写的,因此 index.php 错误很奇怪。另外,您的错误日志未在请求中显示 trac。它似乎正在从服务器的根目录请求 index.php。如果您请求http://服务器名称/trac/? 您的 Apache 配置显示它位于该位置。

相关内容