Topic: Internal server error
Hello,
First off I'd like to thank you for all the work that's got into making this a truly brilliant mail server!
Next, there are two typos in the documentation for installing the panel on RHEL:
Create addition columns in DBMail database: dbmail.
Note: It will create several new tables to store domain administrator accounts, create two new columns on table "dbmail.dbmail_users" to store user name and mail domain name.
# mysql -uroot -p
mysql> USE dbmail;
mysql> SOURCE /var/www/dbmailadmin/docs/samples/dbmail_additions.mysql;
I believe that it should read dbmail_addition.mysql and not additions
Create a global domain admin with password generated above:
# mysql -uroot -p
It should read mysql instead of ysql
After that I'm experiencing "an internal server error" as soon as I try to load the dbmailadmin page.
the error log says:
[Sun Feb 05 16:44:08 2012] [error] [client 89.158.211.253] mod_wsgi (pid=1371): Target WSGI script '/var/www/dbmailadmin/dbmailadmin.py' cannot be loaded as Python module.
[Sun Feb 05 16:44:08 2012] [error] [client 89.158.211.253] mod_wsgi (pid=1371): Exception occurred processing WSGI script '/var/www/dbmailadmin/dbmailadmin.py'.
[Sun Feb 05 16:44:08 2012] [error] [client 89.158.211.253] Traceback (most recent call last):
[Sun Feb 05 16:44:08 2012] [error] [client 89.158.211.253] File "/var/www/dbmailadmin/dbmailadmin.py", line 8, in <module>
[Sun Feb 05 16:44:08 2012] [error] [client 89.158.211.253] from libs import iredbase
[Sun Feb 05 16:44:08 2012] [error] [client 89.158.211.253] File "/var/www/dbmailadmin/libs/iredbase.py", line 34, in <module>
[Sun Feb 05 16:44:08 2012] [error] [client 89.158.211.253] webmaster = cfg.general.get('webmaster', 'root')
[Sun Feb 05 16:44:08 2012] [error] [client 89.158.211.253] File "/usr/lib/python2.6/site-packages/web/utils.py", line 76, in __getattr__
[Sun Feb 05 16:44:08 2012] [error] [client 89.158.211.253] raise AttributeError, k
[Sun Feb 05 16:44:08 2012] [error] [client 89.158.211.253] AttributeError: 'general'
Switching the owner of the dbmailadmin directory and all its files/subfolders to apache fixes the above error, and I'm able to login but all actions (such as creating a domain or a user) are met with an Internal server error. The actions are accomplished though as new users can log into roundcube.
The error log now shows on startup:
[Sun Feb 05 17:20:08 2012] [error] Exception KeyError: KeyError(139827866965984,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Sun Feb 05 17:20:08 2012] [warn] mod_wsgi: Compiled for Python/2.6.2.
[Sun Feb 05 17:20:08 2012] [warn] mod_wsgi: Runtime using Python/2.6.6.
I appear to be experiencing a problem due to my python installation, but I keep encountering problem after problem. A quick google search returned this instructing me to recompile mod_wsgi. But I can't get it to compile and get yet another error. Apparently the error is related to my version of python installed and I should reinstall it, but I'm having a hard time finding out which version I should reinstall...
If anyone has any ideas (aside for switching over to Fedora), they would be much appreciated
Thanks!
Arthur
Centos 6.2 x64
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.