I am trying to install a software called indico on a red hat machie which needs mod_python and python. I have installed all the packages and all the modules properly and have modified the content of httpd.conf with the following content. Apache restarts properly but then i try to access it on the
http://localhost/indico/index.py I get the 505 error. Can some one help me in resolving the issue and where am i making the mistake. Here is what I have added to the httpd.conf.
LoadModule python_module modules/mod_python.so
PythonInterpreter main_interpreter
PythonImport MaKaC::setEnvironment main_interpreter
<Directory "/opt/indico/htdocs">
AddHandler python-program .py
PythonHandler mod_python.publisher
Allow from All
</Directory>
<Directory "/opt/indico/htdocs/services">
SetHandler python-program
PythonHandler MaKaC.services.handler
PythonInterpreter main_interpreter
Allow from All
</Directory>
Alias /indico/images "/opt/indico/htdocs/images"
Alias /indico "/opt/indico/htdocs"
Here is the output of the apache error-log.
[Sun Oct 30 02:52:16 2011] [error] [client 127.0.0.1] File "/usr/lib64/python2
.6/site-packages/mod_python/importer.py", line 296, in import_module\n log, i
mport_path)
[Sun Oct 30 02:52:16 2011] [error] [client 127.0.0.1] File "/usr/lib64/python2
.6/site-packages/mod_python/importer.py", line 680, in import_module\n execfi
le(file, module.__dict__)
[Sun Oct 30 02:52:16 2011] [error] [client 127.0.0.1] File "/opt/indico/htdocs
/index.py", line 21, in <module>\n import MaKaC.webinterface.rh.welcome as we
lcome
[Sun Oct 30 02:52:16 2011] [error] [client 127.0.0.1] File "/usr/lib/python2.6
/site-packages/cds_indico-0.97.1-py2.6.egg/MaKaC/webinterface/rh/welcome.py", li
ne 21, in <module>\n import MaKaC.webinterface.rh.base as base
[Sun Oct 30 02:52:16 2011] [error] [client 127.0.0.1] File "/usr/lib/python2.6
/site-packages/cds_indico-0.97.1-py2.6.egg/MaKaC/webinterface/rh/base.py", line
39, in <module>\n from MaKaC.common import fossilize
[Sun Oct 30 02:52:16 2011] [error] [client 127.0.0.1] File "/usr/lib/python2.6
/site-packages/cds_indico-0.97.1-py2.6.egg/MaKaC/common/__init__.py", line 28, i
n <module>\n from db import DBMgr
[Sun Oct 30 02:52:16 2011] [error] [client 127.0.0.1] File "/usr/lib/python2.6
/site-packages/cds_indico-0.97.1-py2.6.egg/MaKaC/common/db.py", line 38, in <mod
ule>\n from MaKaC.common.logger import Logger
[Sun Oct 30 02:52:16 2011] [error] [client 127.0.0.1] File "/usr/lib/python2.6
/site-packages/cds_indico-0.97.1-py2.6.egg/MaKaC/common/logger.py", line 196, in
<module>\n class Logger:
[Sun Oct 30 02:52:16 2011] [error] [client 127.0.0.1] File "/usr/lib/python2.6
/site-packages/cds_indico-0.97.1-py2.6.egg/MaKaC/common/logger.py", line 224, in
Logger\n LoggerUtils.configFromFile(logConfFilepath, defaultArgs, filters)
[Sun Oct 30 02:52:16 2011] [error] [client 127.0.0.1] File "/usr/lib/python2.6
/site-packages/cds_indico-0.97.1-py2.6.egg/MaKaC/common/logger.py", line 42, in
configFromFile\n handlers = cls._install_handlers(cp, defaultArgs, formatters
, filters)
[Sun Oct 30 02:52:16 2011] [error] [client 127.0.0.1] File "/usr/lib/python2.6
/site-packages/cds_indico-0.97.1-py2.6.egg/MaKaC/common/logger.py", line 88, in
_install_handlers\n h = apply(klass, args)
[Sun Oct 30 02:52:16 2011] [error] [client 127.0.0.1] File "/usr/lib64/python2
.6/logging/__init__.py", line 827, in __init__\n StreamHandler.__init__(self,
self._open())
[Sun Oct 30 02:52:16 2011] [error] [client 127.0.0.1] File "/usr/lib64/python2
.6/logging/__init__.py", line 846, in _open\n stream = open(self.baseFilename
, self.mode)
[Sun Oct 30 02:52:16 2011] [error] [client 127.0.0.1] IOError: [Errno 13] Permis
sion denied: '/opt/indico/log/indico.log'
[Sun Oct 30 02:52:20 2011] [error] [client 127.0.0.1] File does not exist: /usr/
local/apache2/htdocs/favicon.ico
Thank you.