Topic: IredMail wreck my website
======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.4
- Linux/BSD distribution name and version: Ubuntu 14.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache 2 (apache2-mpm-prefork)
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue: Have no log because had to revert to working snapshot to serve existing users on the main website, which became non-working when trying to install IredMail.
====
Hi ZhangHuangbin
I very much appreciate your IredMail, and have it installed on a couple of websites, working well
However, I have a special server where I have installed Booktype from http://sourcefabric.org. Booktype is installed using an automated install, that creates a document root /var/www/booktype. And it is difficult to change this in order to have it installed in /var/www/html. In this Booktype installation I have several books, and several users, so I can NOT start installing IredMail on a fresh Ubuntu droplet, I have to install it on the existing one.
When I followed your installguide for Ubuntu/Debian, after configuring the /etc/host and /etc/hostname files as suggested, then IredMail works as expected, but the Booktype installation gives apache server error.
Booktype is configured to be served by the root domain: example.com:80
Pointing to /var/www/booktype
After installing IredMail the root domain redirects to https://example.com/mail
For problem solving, I a2dissite default-ssl.conf to see if domain then will resolve to my Booktype installation, which it does, but now with the above mentioned server error.
The booktype installation is a simple <VirtualHost *:80> with the following virtual host configuration:
<VirtualHost *:80>
# Change the following three lines for your server
ServerName example.com
ServerAlias www.example.com
SetEnv HTTP_HOST "example.com"
ServerAdmin root@localhost
SetEnv LC_TIME "en_GB.UTF-8"
SetEnv LANG "en_GB.UTF-8"
WSGIScriptAlias / /var/www/booktype/instance1/instance1_site/wsgi.py
# uncomment 'Require all granted' for Apache 2.4 without mod_access_compat
<Location "/">
Require all granted
Options FollowSymLinks
</Location>
Alias /static/ "/var/www/booktype/instance1/static/"
<Directory "/var/www/booktype/instance1/static/">
Require all granted
Options -Indexes
</Directory>
Alias /data/ "/var/www/booktype/instance1/data/"
<Directory "/var/www/booktype/instance1/data/">
Require all granted
Options -Indexes
</Directory>
ErrorLog ${APACHE_LOG_DIR}/booktype-instance1-error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/booktype-instance1-access.log combined
</VirtualHost>
I just wonder, what on earth do the IredMail installation do, that can wreck this previos Booktype installation? I understand the default-ssl.conf file rules the day by default, but this should not create a server ERROR on the Booktype site, specially when I also a2dissite default-ssl.conf
I am sorry I don't have any error logs to display, but if you absolutely need it in order to point me in the right direction to solve the problem, then I can reinstall iRedMail and dig out the error logs. Just hoped I could avoid it, in order to not distrupt the ongoing working Booktype website.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.