1

Topic: Ubuntu 14.04 LTS new install question

==== Required information ====
- iRedMail version: 0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu 14.04 LTS x64 server edition
- Related log if you're reporting an issue:
[Wed Apr 23 16:28:29.434389 2014] [:error] [pid 14748] [client 192.168.5.112:60104] mod_wsgi (pid=14748): Target WSGI script '/usr/share/apache2/iredadmin/iredadmin.py' cannot be loaded as Python module.
[Wed Apr 23 16:28:29.434418 2014] [:error] [pid 14748] [client 192.168.5.112:60104] mod_wsgi (pid=14748): Exception occurred processing WSGI script '/usr/share/apache2/iredadmin/iredadmin.py'.
[Wed Apr 23 16:28:29.434441 2014] [:error] [pid 14748] [client 192.168.5.112:60104] Traceback (most recent call last):
[Wed Apr 23 16:28:29.434454 2014] [:error] [pid 14748] [client 192.168.5.112:60104]   File "/usr/share/apache2/iredadmin/iredadmin.py", line 8, in <module>
[Wed Apr 23 16:28:29.434500 2014] [:error] [pid 14748] [client 192.168.5.112:60104]     from libs import iredbase
[Wed Apr 23 16:28:29.434509 2014] [:error] [pid 14748] [client 192.168.5.112:60104]   File "/usr/share/apache2/iredadmin/libs/iredbase.py", line 16, in <module>
[Wed Apr 23 16:28:29.434564 2014] [:error] [pid 14748] [client 192.168.5.112:60104]     import iredutils
[Wed Apr 23 16:28:29.434572 2014] [:error] [pid 14748] [client 192.168.5.112:60104]   File "/usr/share/apache2/iredadmin/libs/iredutils.py", line 15, in <module>
[Wed Apr 23 16:28:29.434663 2014] [:error] [pid 14748] [client 192.168.5.112:60104]     import settings

====
Hi Zhang,

I'm having a problem with a new install on a new shiny server.

The iredmail install went smoothly, but the iredadmin web interface isn't working, giving an internal server error (#500).  The apache error.log is provided above.

This was still the case when I copied across our existing 'Pro' version of iredadmin (1.8.1) from our working mail server (we are a lifetime licensee).

Any suggestions please?

Best,

John

----

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

2

Re: Ubuntu 14.04 LTS new install question

Please try below commands:

# a2enconf iredadmin
# /etc/init.d/apache2 restart

iRedMail-0.8.6 doesn't fully support Ubuntu 14.04 because Ubuntu 14.04 was not yet released that time. New version of iRedMail is coming.

3

Re: Ubuntu 14.04 LTS new install question

That sorted it, thanks.

Can you tell me what isn't going to work properly on 14.04 until the next version please?

I did have a search through bitbucket, and found 0.9.0 (which might also be 0.8.7 depending on which doc you read), and instructions on the upgrade - so I am guessing you're pretty close to a release, but if there are any show stoppers I'll have to think about whether to roll back to 12.04 for the new server.

4

Re: Ubuntu 14.04 LTS new install question

johnsjs wrote:

That sorted it, thanks.

Can you tell me what isn't going to work properly on 14.04 until the next version please?

I am trying out iRedMail for the first time.
My host is a KVM virtual machine running Trusty Tahr 14.04 LTS fully updated with apt-get
I can confirm that the command   a2enconf iredadmin   does indeed correct the "ImportError: No module named settings" problem.

Further problems I have encountered :
- https://mx.justtrade.net/mail/  works fine, but https://mx.justtrade.net/webmail/ does *not*.
- https://mx.justtrade.net/awstats/awstats.pl  causes the following in Apache error.log :
    [date] [authz_core:error] [pid] [client ip] AH01630: client denied by server configuration: /usr/lib/cgi-bin/awstats.pl
- phpPgAdmin -- PostgreSQL is the only server shown, but it is x'd out.  Login causes alert "Login disallowed for security reasons."

I have the minimum functionality I require for the moment, so I have not investigated further.

5

Re: Ubuntu 14.04 LTS new install question

johnsjs wrote:

Can you tell me what isn't going to work properly on 14.04 until the next version please?

Next release of iRedMail will be 0.8.7, should be available in about 2 weeks.

6

Re: Ubuntu 14.04 LTS new install question

mhb.warehouseman wrote:

- https://mx.justtrade.net/mail/  works fine, but https://mx.justtrade.net/webmail/ does *not*.

iRedMail doesn't configure Apache to use '/webmail' at all. So it's correct it doesn't work.

mhb.warehouseman wrote:

- https://mx.justtrade.net/awstats/awstats.pl  causes the following in Apache error.log :
    [date] [authz_core:error] [pid] [client ip] AH01630: client denied by server configuration: /usr/lib/cgi-bin/awstats.pl

Could you please show me file of /etc/apache2/conf-available/awstats.conf? Remove/Hide/Replace password in this file before pasting.

mhb.warehouseman wrote:

- phpPgAdmin -- PostgreSQL is the only server shown, but it is x'd out.  Login causes alert "Login disallowed for security reasons."

phpPgAdmin doesn't allow to login as 'postgres' user by default. You can change it by modifying below parameter in its config file:

        $conf['extra_login_security'] = false;

By the way, please always post your own questions in a new forum topic, do not hijack other's thread.