- 论坛徽章:
- 0
|
在配置Linux svn+trac的时候,trac用自启动方式启动没问题,但是加入到apache里面就有问题。
我的python系统自带的是2.4.3 自己编译用的是2.7,mod_python也是基于2.7编译的,但是加入到apache里面,总是出 500 Internal server error,
加了python on打印下列错误
MOD_PYTHON ERROR
ProcessId: 3016
Interpreter: 'main_interpreter'
ServerName: 'localhost'
DocumentRoot: '/var/www/html'
URI: '/trac/p1'
Location: '/trac/p1'
Directory: None
Filename: '/var/www/html/trac'
PathInfo: '/p1'
Phase: 'PythonHandler'
Handler: 'trac.web.modpython_frontend'
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)
File "/usr/lib/python2.4/site-packages/mod_python/importer.py", line 1202, in _process_target
module = import_module(module_name, path=path)
File "/usr/lib/python2.4/site-packages/mod_python/importer.py", line 304, in import_module
return __import__(module_name, {}, {}, ['*'])
ImportError: No module named trac.web.modpython_frontend
我重新编译过mod_python,但是问题依旧。
这是apache下面调用的部分代码
LoadModule python_module modules/mod_python.so
#<VirtualHost *>
#DocumentRoot /var/www/html
#ServerName localhost
<Location /trac/p1>
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir /home/mypro
PythonOption TracUriRoot /trac/p1
PythonOption PYTHON_EGG_CACHE /tmp
Order allow,deny
Allow from all
PythonDebug on
</Location>
<LocationMatch /tracp/p1/login>
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /home/svn/passwd
Require valid-user
不知道是哪里出了问题。 |
|