1 (edited by Larsba 2013-12-14 04:52:36)

Topic: 500 internal server error iredadmin

iRedmail version: 0.8.5
FreeBSD 9.2
Backend: MySQL

Hi i'm having an issue not with the mails they work just fine sending and reciving even the roundcube webmail works as expected.
I am having trouble with https://mydomain.com/iredadmin/
it's giving me a 500 Internal server error.
httpd-error.log:

[Fri Dec 13 22:43:38 2013] [error] [client xx.xx.xx.xx] mod_wsgi (pid=1033): Target WSGI script '/usr/local/www/iredadmin/iredadmin.py' cannot be loaded as Python module.
[Fri Dec 13 22:43:38 2013] [error] [client xx.xx.xx.xx] mod_wsgi (pid=1033): Exception occurred processing WSGI script '/usr/local/www/iredadmin/iredadmin.py'.
[Fri Dec 13 22:43:38 2013] [error] [client xx.xx.xx.xx] Traceback (most recent call last):
[Fri Dec 13 22:43:38 2013] [error] [client xx.xx.xx.xx]   File "/usr/local/www/iredadmin/iredadmin.py", line 9, in <module>
[Fri Dec 13 22:43:38 2013] [error] [client xx.xx.xx.xx]     from libs import iredbase
[Fri Dec 13 22:43:38 2013] [error] [client xx.xx.xx.xx]   File "/usr/local/www/iredadmin/libs/iredbase.py", line 70, in <module>
[Fri Dec 13 22:43:38 2013] [error] [client xx.xx.xx.xx]     pw=cfg.iredadmin.get('passwd'),
[Fri Dec 13 22:43:38 2013] [error] [client xx.xx.xx.xx]   File "/usr/local/lib/python2.7/site-packages/web/db.py", line 1143, in database
[Fri Dec 13 22:43:38 2013] [error] [client xx.xx.xx.xx]     return _databases[dbn](**params)
[Fri Dec 13 22:43:38 2013] [error] [client xx.xx.xx.xx]   File "/usr/local/lib/python2.7/site-packages/web/db.py", line 975, in __init__
[Fri Dec 13 22:43:38 2013] [error] [client xx.xx.xx.xx]     import MySQLdb as db
[Fri Dec 13 22:43:38 2013] [error] [client xx.xx.xx.xx] ImportError: No module named MySQLdb

I hope someone can help me with this issue.
If any other information is needed in order to help let me know.

Kind Regards
Lars

2

Re: 500 internal server error iredadmin

Please install port 'databases/py-MySQLdb' then restart Apache service.

3

Re: 500 internal server error iredadmin

Thank you very much that did the trick.
I am really impressed with this package you created here at iRedMail!