1 (edited by wdphd 2014-04-21 22:24:41)

Topic: Cannot access iredadmin web interface

==== Required information ====
- iRedMail version: 0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: CentOS
- Related log if you're reporting an issue:
====

Hi,
I have installed iredmail on my centos server with MySQL. I'm unable to access the iredadmin web interface at https://mydomain.com/iredadmin. I'm getting a 404 not found error.

Need help,
Thanks

----

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

2

Re: Cannot access iredadmin web interface

*) Does it work if you access with IP address instead of domain name (mydomain.com)?
*) Is your domain name resolvable in external network?

3

Re: Cannot access iredadmin web interface

ZhangHuangbin wrote:

*) Does it work if you access with IP address instead of domain name (mydomain.com)?
*) Is your domain name resolvable in external network?

1. No, I'm unable to access it even with IP address.
2. Yes, the domain name is resolvable.

My homepage isn't SSL cert enabled but I can still access it with HTTPS. Only getting problem with mail

4

Re: Cannot access iredadmin web interface

Any related log in Apache log file (/var/log/httpd/ssl_error_log)?

5

Re: Cannot access iredadmin web interface

Yes. I looked into the Apache error log file and found that ExecGCI is turned off. So i added the following into iredadmin.conf file.

Options Indexes FollowSymLinks MultiViews +ExecCGI

But this lead to an 500 Internal server error which i'm unable to fix. Here's the ssl_error_log:

[Tue Apr 22 11:16:36 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Apr 22 11:16:37 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Apr 22 11:17:48 2014] [error] [client 173.122.16.55] Options ExecCGI is off in this directory: /var/www/iredadmin/iredadmin.py
[Tue Apr 22 11:25:27 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Apr 22 11:25:28 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Apr 22 11:26:04 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Apr 22 11:26:04 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Apr 22 11:26:08 2014] [error] [client 173.122.16.55] Traceback (most recent call last):
[Tue Apr 22 11:26:08 2014] [error] [client 173.122.16.55]   File "/var/www/iredadmin/iredadmin.py", line 9, in <module>
[Tue Apr 22 11:26:08 2014] [error] [client 173.122.16.55]
[Tue Apr 22 11:26:08 2014] [error] [client 173.122.16.55] from libs import iredbase
[Tue Apr 22 11:26:08 2014] [error] [client 173.122.16.55]   File "/var/www/iredadmin/libs/iredbase.py", line 18, in <module>
[Tue Apr 22 11:26:08 2014] [error] [client 173.122.16.55]
[Tue Apr 22 11:26:08 2014] [error] [client 173.122.16.55] import iredutils
[Tue Apr 22 11:26:08 2014] [error] [client 173.122.16.55]   File "/var/www/iredadmin/libs/iredutils.py", line 13, in <module>
[Tue Apr 22 11:26:08 2014] [error] [client 173.122.16.55]
[Tue Apr 22 11:26:08 2014] [error] [client 173.122.16.55] import settings
[Tue Apr 22 11:26:08 2014] [error] [client 173.122.16.55] ImportError
[Tue Apr 22 11:26:08 2014] [error] [client 173.122.16.55] :
[Tue Apr 22 11:26:08 2014] [error] [client 173.122.16.55] No module named settings
[Tue Apr 22 11:26:08 2014] [error] [client 173.122.16.55]
[Tue Apr 22 11:26:08 2014] [error] [client 173.122.16.55] Premature end of script headers: iredadmin.py

6

Re: Cannot access iredadmin web interface

wdphd wrote:

[Tue Apr 22 11:26:08 2014] [error] [client 173.122.16.55] No module named settings

Do you have file /var/www/iredadmin/settings.py? What's its owner and permission?

7

Re: Cannot access iredadmin web interface

ZhangHuangbin wrote:
wdphd wrote:

[Tue Apr 22 11:26:08 2014] [error] [client 173.122.16.55] No module named settings

Do you have file /var/www/iredadmin/settings.py? What's its owner and permission?

Yes, I do.

-r--------  1 iredadmin iredadmin  3945 Apr 22 11:15 settings.py

8

Re: Cannot access iredadmin web interface

Could you please check owner/group and permission of its parent directory?

/var/www/iredadmin/settings.py
/var/www/iredadmin/
/var/www/