Trac svn centos问题

按照教程中的说明安装Trac / SVN

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

SVN正常工作

/svn/ 

Trac ur:

 /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 

Trac不是用PHP编写的,所以index.php错误是奇怪的。 此外,您的错误日志不会在请求中显示trac。 它似乎是从您的服务器的根目录索引index.php。 如果您请求http:// servername / trac / ?会发生什么? 你的Apache conf显示它在那个位置。