1 (edited by yogick90 2018-05-04 18:51:40)

Topic: iRedAdmin + Apache got 500 Error

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.8 OPENLDAP edition.
- Linux/BSD distribution name and version: Ubuntu 16.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

[Fri May 04 10:46:41.458539 2018] [wsgi:error] [pid 10740:tid 139827855410944] mod_wsgi (pid=10740): Target WSGI script '/opt/www/iredadmin/iredadmin.py' cannot be loaded as Python module.
[Fri May 04 10:46:41.458597 2018] [wsgi:error] [pid 10740:tid 139827855410944] mod_wsgi (pid=10740): Exception occurred processing WSGI script '/opt/www/iredadmin/iredadmin.py'.
[Fri May 04 10:46:41.458722 2018] [wsgi:error] [pid 10740:tid 139827855410944] Traceback (most recent call last):
[Fri May 04 10:46:41.458760 2018] [wsgi:error] [pid 10740:tid 139827855410944]  File "/opt/www/iredadmin/iredadmin.py", line 9, in <module>
[Fri May 04 10:46:41.458771 2018] [wsgi:error] [pid 10740:tid 139827855410944]    from libs import iredbase
[Fri May 04 10:46:41.458796 2018] [wsgi:error] [pid 10740:tid 139827855410944]   File "/opt/www/iredadmin/libs/iredbase.py", line 202
[Fri May 04 10:46:41.458817 2018] [wsgi:error] [pid 10740:tid 139827855410944]     except Exception, e:
[Fri May 04 10:46:41.458853 2018] [wsgi:error] [pid 10740:tid 139827855410944]                     ^
[Fri May 04 10:46:41.458874 2018] [wsgi:error] [pid 10740:tid 139827855410944] SyntaxError: invalid syntax

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: iRedAdmin + Apache got 500 Error

Seems you're running Python 3 for Apache module 'mod_wsgi'. Please double check.

3 (edited by yogick90 2018-05-04 23:46:45)

Re: iRedAdmin + Apache got 500 Error

ZhangHuangbin wrote:

Seems you're running Python 3 for Apache module 'mod_wsgi'. Please double check.

I checked. It used 2.7. How can i check it  to be sure for 100%

4

Re: iRedAdmin + Apache got 500 Error

Which package do you have? libapache2-mod-wsgi or libapache2-mod-wsgi-py3?
You need "libapache2-mod-wsgi", and REMOVE "libapache2-mod-wsgi-py3".

5

Re: iRedAdmin + Apache got 500 Error

ZhangHuangbin wrote:

Which package do you have? libapache2-mod-wsgi or libapache2-mod-wsgi-py3?
You need "libapache2-mod-wsgi", and REMOVE "libapache2-mod-wsgi-py3".


Thanks. I found this issue yesterday myself