1 (edited by dorian 2015-02-23 04:12:29)

Topic: Install 0.9.0 failure (apache2 related)

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

Hello there,

Major failure after trying to install iRedMail 0.9.0 on a fresh Debian Wheezy 7.5. iRedMail.sh states many errors when configuring all things Apache2 related, but completes anyway. Most of the backends are unavailable (iredadmin / phpldapadmin / roundcube / etc.). Servers are ok. None of the apache2/conf.d have been created. Here are a the errors :

********************************************************************
* Start iRedMail Configurations
********************************************************************
< INFO > Create self-signed SSL certification files (2048 bits).
< INFO > Create required system account: vmail, iredadmin, iredapd.
< INFO > Configure Apache web server and PHP.
Can't open /etc/apache2/conf-available/security.conf: No such file or directory.
Can't open /etc/apache2/sites-available/default-ssl.conf: No such file or directory.
Can't open /etc/apache2/sites-available/default-ssl.conf: No such file or directory.
< INFO > Configure Nginx web server and uWSGI.
< INFO > Configure PHP.
/root/iRedMail-0.9.0/functions/web_server.sh: line 27: /var/www/html/robots.txt: No such file or directory
/root/iRedMail-0.9.0/functions/web_server.sh: line 34: /var/www/html/index.html: No such file or directory
< INFO > Configure LDAP server: OpenLDAP.
< INFO > Setup daily cron job to backup LDAP data: /var/vmail/backup/backup_openldap.sh
< INFO > Configure MySQL database server.
< INFO > Setup daily cron job to backup SQL databases: /var/vmail/backup/backup_mysql.sh
< INFO > Configure Postfix (Message Transfer Agent).
< INFO > Configure Cluebringer (postfix policy server).
Can't open /etc/apache2/sites-available/default-ssl.conf: No such file or directory.
/root/iRedMail-0.9.0/functions/cluebringer.sh: line 383: /etc/apache2/conf-available/cluebringer.conf: No such file or directory
/root/iRedMail-0.9.0/functions/cluebringer.sh: line 402: /etc/apache2/conf-available/cluebringer.conf: No such file or directory
Can't open /etc/apache2/conf-available/cluebringer.conf: No such file or directory.
/root/iRedMail-0.9.0/functions/cluebringer.sh: line 494: /etc/apache2/conf-available/cluebringer.conf: No such file or directory
< INFO > Configure Dovecot (pop3/imap/managesieve server).
< INFO > Configure ClamAV (anti-virus toolkit).
< INFO > Configure Amavisd-new (interface between MTA and content checkers).
< INFO > Configure SpamAssassin (content-based spam filter).
< INFO > Configure iRedAPD (postfix policy daemon).
< INFO > Configure iRedAdmin (official web-based admin panel).
Can't open /etc/apache2/sites-available/default-ssl.conf: No such file or directory.
Can't open /etc/apache2/sites-available/default-ssl.conf: No such file or directory.
/root/iRedMail-0.9.0/functions/iredadmin.sh: line 92: /etc/apache2/conf-available/iredadmin.conf: No such file or directory
< INFO > Configure Fail2ban (authentication failure monitor).
< INFO > Configure Roundcube webmail.
/root/iRedMail-0.9.0/functions/roundcubemail.sh: line 41: /etc/apache2/conf-available/roundcubemail.conf: No such file or directory
Can't open /etc/apache2/sites-available/default-ssl.conf: No such file or directory.
< INFO > Configure Awstats (logfile analyzer for mail and web server).
/root/iRedMail-0.9.0/functions/awstats.sh: line 36: /etc/apache2/conf-available/awstats.conf: No such file or directory
/root/iRedMail-0.9.0/functions/awstats.sh: line 61: /etc/apache2/conf-available/awstats.conf: No such file or directory
/root/iRedMail-0.9.0/functions/awstats.sh: line 67: /etc/apache2/conf-available/awstats.conf: No such file or directory
Can't open /etc/apache2/conf-available/awstats.conf: No such file or directory.
/root/iRedMail-0.9.0/functions/awstats.sh: line 170: /etc/apache2/conf-available/awstats.conf: No such file or directory
Can't open /etc/apache2/sites-available/default-ssl.conf: No such file or directory.
Can't open /etc/apache2/sites-available/default-ssl.conf: No such file or directory.
Can't open /etc/apache2/sites-available/default-ssl.conf: No such file or directory.

*************************************************************************
* iRedMail-0.9.0 installation and configuration complete.
*************************************************************************

< Question > Would you like to use firewall rules provided by iRedMail?
< Question > File: /etc/default/iptables, with SSHD port: 22. [Y|n]y
< INFO > Copy firewall sample rules: /etc/default/iptables.
< Question > Restart firewall now (with SSHD port 22)? [y|N]n
< INFO > Updating ClamAV database (freshclam), please wait ...
ClamAV update process started at Sun Feb 22 20:39:44 2015
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.98.5 Recommended version: 0.98.6
DON'T PANIC! Read http://www.clamav.net/support/faq
main.cvd is up to date (version: 55, sigs: 2424225, f-level: 60, builder: neo)
daily.cvd is up to date (version: 20092, sigs: 1330877, f-level: 63, builder: neo)
bytecode.cvd is up to date (version: 246, sigs: 42, f-level: 63, builder: neo)
********************************************************************
* URLs of installed web applications:
*
* - Webmail:
*   o Roundcube webmail://snip.eu/mail/
*
* - Web admin panel (iRedAdmin): httpS://snip.eu/iredadmin/
*
* You can login to above links with same credential:
*
*   o Username: postmaster@sounddesigners.org
*   o Password: password
*
*
********************************************************************
* Congratulations, mail server setup completed successfully. Please
* read below file for more information:
*
*   - /root/iRedMail-0.9.0/iRedMail.tips
*
* And it's sent to your mail account postmaster@sounddesigners.org.
*
* Please reboot your system to enable mail services.
*
********************************************************************

I have a /etc/apache2/sites-available/default-ssl but not /etc/apache2/sites-available/default-ssl.conf
I have a /etc/apache2/conf.d/security but not /etc/apache2/conf-available/security.conf
Etc. etc. many paths are just wrong (/etc/apache2/conf-available/, /var/www/html/, etc.)...


Any hint would be greatly appreciated, especially to reinstall all backends. Thanks in advance.

PS : i'm using iRedMail for many years now, prior on Debian Lenny, then Squeeze, and didn't face this kind of problem. An "old" one is still running on a Squeeze dedicated, but i have to migrate by the end of next week...

----

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

2

Re: Install 0.9.0 failure (apache2 related)

Looks like iRedMail cannot install some apache packages on this server. Did you notice any error during package installation? For example, package missing.

If you cannot check installation log, I suggest try to reinstall this server (OS), make sure it's the latest stable release (apt-get update/upgrade), then install iRedMail.

This time, please copy all terminal output message, if it failed again, we can check log to figure out why it happened.

3

Re: Install 0.9.0 failure (apache2 related)

Thanks for the prompt answer Zhang !
I see no error during packages installation, except clamav claiming for a fresh database download.
Wheezy is fresh and apt-get update/upgrade with correct debian sources.

Here is the complete log as txt file attachment, sorry for the length...

Post's attachments

dorian-iredmail-0.9.0-log.txt 111.86 kb, 3 downloads since 2015-02-23 

You don't have the permssions to download the attachments of this post.

4 (edited by dorian 2015-02-25 01:54:38)

Re: Install 0.9.0 failure (apache2 related)

Also, i wanted to try with the prior 0.8.7 (time is passing, i have a lot of pressure for the mail to work in less than a week...), but the installer states he's out of date :-( . Is there a way to force installation of this "old" version ? Just to see if the problems concerning apache2 php backends are the same ? Thanks in advance.

PS : i'm willing to pay for the 39$ support, but i doubt it would change anyhting, am i correct ?

5

Re: Install 0.9.0 failure (apache2 related)

I could install it for you personally, as ZhangHuangbin is possibly busy with the ongoing Chinese New Year traditions.

6

Re: Install 0.9.0 failure (apache2 related)

dorian wrote:

< INFO > Configure Apache web server and PHP.
Can't open /etc/apache2/conf-available/security.conf: No such file or directory.

I'm confused. This file should be available on Ubuntu 14.04/14.10, not Debian 7 or Ubuntu 12.04.
Could you please show me file /etc/lsb_release on your server?

7

Re: Install 0.9.0 failure (apache2 related)

# more /etc/lsb-release
DISTRIB_ID=Debian
DISTRIB_RELEASE=7
DISTRIB_CODENAME=
DISTRIB_DESCRIPTION=

@7t3chguy : i would prefer to be pointed to what config files to edit to correct filepathes, but why not. How much would you charge for that ?

8

Re: Install 0.9.0 failure (apache2 related)

dorian wrote:

# more /etc/lsb-release
DISTRIB_ID=Debian
DISTRIB_RELEASE=7
DISTRIB_CODENAME=
DISTRIB_DESCRIPTION=

@7t3chguy : i would prefer to be pointed to what config files to edit to correct filepathes, but why not. How much would you charge for that ?

$20 for up to 3 hours and only if successful

9

Re: Install 0.9.0 failure (apache2 related)

Could you please show me file /etc/debian_version?

10 (edited by dorian 2015-02-26 01:48:54)

Re: Install 0.9.0 failure (apache2 related)

# more /etc/debian_version
7.8

11

Re: Install 0.9.0 failure (apache2 related)

7t3chguy wrote:

$20 for up to 3 hours and only if successful

Fair enough. Let's wait till tomorrow, if Zhang find something.

12 (edited by schnappi 2015-02-26 02:52:24)

Re: Install 0.9.0 failure (apache2 related)

If files are not ending with ".conf" apache you are using Apache version 2.2.X regardless of the operating system.

"default-ssl.conf" or any other apache site ending in ".conf" means Apache 2.4.X;. Use a operating system with Apache 2.4.X if you want to use Apache.

Does this make sense?

13

Re: Install 0.9.0 failure (apache2 related)

Yes it does !
It means iRedmail absolutely needs Apache 2.4.x ? Unfortunately, the 2.4 branch is only available on Debian 8 Jessie, which is still in testing (not stable). Damned...
I'm reinstalling the server right now with Jessie, just to see if iRedmail installs correctly on it. But if it does, i'm not sure i'll use Jessie on a production server, yet :-( .
TBC.

PS : why iRedmail needs Apache 2.4 ?

14

Re: Install 0.9.0 failure (apache2 related)

iRedmail (as stated in the compatibility page) is not ready yet for Debian 8 Jessie, getting the error :
E: Unable to locate package postfix-cluebringer
E: Unable to locate package postfix-cluebringer-mysql
immediately after configuration.
Maybe i could try with Ubuntu server 14.04, but i would much prefer staying on Debian 7.8 :-(

15

Re: Install 0.9.0 failure (apache2 related)

I can say 14.04 works perfectly, couldn't suggest it more.

16 (edited by schnappi 2015-02-26 04:36:00)

Re: Install 0.9.0 failure (apache2 related)

Don't think this software needs apache 2.4. It says it is certified with Ubuntu 12 LTS which uses apache 2.2.

Ubuntu 14 install works perfectly if you are willing to leave Debian.

17

Re: Install 0.9.0 failure (apache2 related)

Do you have any additional apt repository in /etc/apt/sources.list (besides default official repos)? Because Debian 7 should install Apache-2.2 from official apt repo, not Apache-2.4.

18

Re: Install 0.9.0 failure (apache2 related)

I had no other repos than official ones. As stated above, Apache was 2.2, but iRedMail.sh thought it was 2.4, besides all the errors concerning conf files.
Anyway, as time is passsing, i installed Ubuntu server 14.04, and iRedMail installed fine. I'll probably stick with it...