主题: 安装iredadmin问题【已解决】

centos 5.3 基本安装,然后按照文档安装iredmail,一切正常
然后安装iredamin,安装过程中没有报错,完成后却无法访问 报错 Internal Server Error

/var/log/httpd/目录下
error_log 日志如下

[Wed Oct 21 10:01:31 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Oct 21 10:01:32 2009] [notice] Digest: generating secret for digest authentication ...
[Wed Oct 21 10:01:32 2009] [notice] Digest: done
[Wed Oct 21 10:01:32 2009] [notice] Apache configured -- resuming normal operations
[Wed Oct 21 10:31:58 2009] [notice] caught SIGTERM, shutting down
[Wed Oct 21 10:32:10 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Oct 21 10:32:11 2009] [notice] Digest: generating secret for digest authentication ...
[Wed Oct 21 10:32:11 2009] [notice] Digest: done
[Wed Oct 21 10:32:12 2009] [notice] Apache configured -- resuming normal operations
[Wed Oct 21 10:41:27 2009] [notice] caught SIGTERM, shutting down
[Wed Oct 21 10:41:30 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Oct 21 10:41:30 2009] [notice] Digest: generating secret for digest authentication ...
[Wed Oct 21 10:41:30 2009] [notice] Digest: done
[Wed Oct 21 10:41:30 2009] [notice] Apache configured -- resuming normal operations

ssl_error_log 日志如下

Wed Oct 21 10:42:34 2009] [error] [client 127.0.0.1]
[Wed Oct 21 10:42:52 2009] [error] [client 192.168.20.50] Traceback (most recent call last):
[Wed Oct 21 10:42:52 2009] [error] [client 192.168.20.50]   File "/usr/lib/python2.4/site-packages/web.py-0.32-py2.4.egg/web/application.py", line 240, in process
[Wed Oct 21 10:42:52 2009] [error] [client 192.168.20.50]     return p(lambda: process(processors))
[Wed Oct 21 10:42:52 2009] [error] [client 192.168.20.50]   File "/usr/lib/python2.4/site-packages/web.py-0.32-py2.4.egg/web/session.py", line 55, in _processor
[Wed Oct 21 10:42:52 2009] [error] [client 192.168.20.50]     self._cleanup()
[Wed Oct 21 10:42:52 2009] [error] [client 192.168.20.50]   File "/usr/lib/python2.4/site-packages/web.py-0.32-py2.4.egg/web/session.py", line 135, in _cleanup
[Wed Oct 21 10:42:52 2009] [error] [client 192.168.20.50]     self.store.cleanup(timeout)
[Wed Oct 21 10:42:52 2009] [error] [client 192.168.20.50]   File "/usr/lib/python2.4/site-packages/web.py-0.32-py2.4.egg/web/session.py", line 280, in cleanup
[Wed Oct 21 10:42:52 2009] [error] [client 192.168.20.50]     self.db.delete(self.table, where="$last_allowed_time > atime", vars=locals())
[Wed Oct 21 10:42:52 2009] [error] [client 192.168.20.50]   File "/usr/lib/python2.4/site-packages/web.py-0.32-py2.4.egg/web/db.py", line 844, in delete
[Wed Oct 21 10:42:52 2009] [error] [client 192.168.20.50]     db_cursor = self._db_cursor()
[Wed Oct 21 10:42:52 2009] [error] [client 192.168.20.50]   File "/usr/lib/python2.4/site-packages/web.py-0.32-py2.4.egg/web/db.py", line 522, in _db_cursor
[Wed Oct 21 10:42:52 2009] [error] [client 192.168.20.50]     return self.ctx.db.cursor()

将setting.ini文件 debug=false 该为true后 访问 http://ip/iredadmin web报错如下

_mysql_exceptions.OperationalError at /
(1045, "Access denied for user 'iredadmin_ose'@'localhost' (using password: YES)")
Python     /usr/lib/python2.4/site-packages/MySQLdb/connections.py in __init__, line 163
Web     GET https://ip/iredadmin/
Traceback (innermost first)

    * /usr/lib/python2.4/site-packages/MySQLdb/connections.py in __init__
       156. if client_version >= (4, 1):
       157. client_flag |= CLIENT.MULTI_STATEMENTS
       158. if client_version >= (5, 0):
       159. client_flag |= CLIENT.MULTI_RESULTS
       160.
       161. kwargs2['client_flag'] = client_flag
       162.
       163. super(Connection, self).__init__(*args, **kwargs2) ...
       164.
       165. self.encoders = dict([ (k, v) for k, v in conv.items()
       166. if type(k) is not int ])
       167.
       168. self._server_version = tuple([ int(n) for n in self.get_server_info().split('.')[:2] ])
       169.

请版主或各位指点一下,多谢!

[ 本帖最后由 ghost009 于 2009-10-22 10:27 编辑 ]

回复: 安装iredadmin问题【已解决】

别沉了,先顶上去

回复: 安装iredadmin问题【已解决】

看这个信息:

(1045, "Access denied for user 'iredadmin_ose'@'localhost' (using password: YES)")


表示你在 settings.ini 里写的 mysql 用户的帐号和密码有问题,无法成功访问 MYSQL。

回复: 安装iredadmin问题【已解决】

iredadmin 暂时还不支持 MYSQL。这里的 MYSQL 数据库只是用来保存 session 的,以后还会用来保存管理员登录、操作等日志。

回复: 安装iredadmin问题【已解决】

已经回复。居然可以这样搭顺风车 :lol

回复: 安装iredadmin问题【已解决】

感谢版主回复,问题已解决!
期待下一个版本的发布