1

Topic: Installing Roundcube after server is operational

==== 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): LDAP
- Web server (Apache or Nginx):nginx
- Manage mail accounts with iRedAdmin-Pro?: Yes
- Related log if you're reporting an issue: n/a
====

Hello iRedMail people,

I've searched hi and lo for this with no luck or maybe I did something wrong. my users want roundcube over SOgO, so I want to install it over this new system.

I need to install roundcube on a production running server but I'm afraid of just doing apt-get install roundcube I'll break the whole thing.

If anyone can help me, please reply.

Thanks

----

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

2

Re: Installing Roundcube after server is operational

Go to iRedMail installation directory, e.g. /root/iRedMail-0.9.4/, edit file "/root/iRedMail-0.9.4/config", update 'export USE_RCM=NO' to "export USE_RCM=YES". then run "bash iRedMail.sh". It will install Roundcube.

Note: you must make sure file /root/iRedMail-0.9.4/runtime/install.log exists and not modified after the initial iRedMail installation.

3 (edited by garydawson 2016-04-02 00:56:52)

Re: Installing Roundcube after server is operational

Thanks Zhang,

Did as indicated, nothing happened, weird thing is that nothing was changed, the log file you mention is as originally was. This is the log.

bash iRedMail.sh
[ INFO ] Checking configuration file: /root/iRedMail-0.9.4/config ... [FOUND]
< Question > Use it for mail server setting? [y|N]y
[ INFO ] Use config file: /root/iRedMail-0.9.4/config for mail server setting.
[ INFO ] Import installation process status from file: /root/iRedMail-0.9.4/runtime/install.status.
< SKIP > Function: install_all.

********************************************************************
* Start iRedMail Configurations
********************************************************************
< SKIP > Function: generate_ssl_keys.
< SKIP > Function: add_required_users.
< SKIP > Function: web_server_config.
< SKIP > Function: openldap_config.
< SKIP > Function: openldap_data_initialize.
< SKIP > Function: ldap_server_cron_backup.
[ INFO ] Configure MySQL database server.
< SKIP > Function: mysql_initialize.
< SKIP > Function: mysql_cron_backup.
< SKIP > Function: postfix_config.
< SKIP > Function: enable_dovecot.
< SKIP > Function: clamav_config.
< SKIP > Function: amavisd_config_debian.
< SKIP > Function: amavisd_config_general.
< SKIP > Function: amavisd_import_sql.
< SKIP > Function: sa_config.
< SKIP > Function: iredapd_setup.
< SKIP > Function: iredadmin_config.
< SKIP > Function: fail2ban_config.
[ INFO ] Configure Roundcube webmail.
< SKIP > Function: sogo_config.
< SKIP > Function: cleanup.

Thanks for your reply.


ZhangHuangbin wrote:

Go to iRedMail installation directory, e.g. /root/iRedMail-0.9.4/, edit file "/root/iRedMail-0.9.4/config", update 'export USE_RCM=NO' to "export USE_RCM=YES". then run "bash iRedMail.sh". It will install Roundcube.

Note: you must make sure file /root/iRedMail-0.9.4/runtime/install.log exists and not modified after the initial iRedMail installation.

4

Re: Installing Roundcube after server is operational

Do you have Roundcube under /opt/www/?

5

Re: Installing Roundcube after server is operational

Hi Zhang

ZhangHuangbin wrote:

Do you have Roundcube under /opt/www/?

Yes, it's there.

6

Re: Installing Roundcube after server is operational

Does it work after restarted web service?
https://<server>/mail/

7

Re: Installing Roundcube after server is operational

Zhang,

ZhangHuangbin wrote:

Does it work after restarted web service?
https://<server>/mail/

Goes to SOgO.

Thanks

8

Re: Installing Roundcube after server is operational

*) Please check your Nginx config file, does it include /etc/nginx/templates/roundcube.tmpl?
*) Do you have file /var/www/index.html which redirects access to SOGo?

9 (edited by garydawson 2016-04-05 04:49:09)

Re: Installing Roundcube after server is operational

ZhangHuangbin wrote:

*) Please check your Nginx config file, does it include /etc/nginx/templates/roundcube.tmpl?

Yes!

ZhangHuangbin wrote:

*) Do you have file /var/www/index.html which redirects access to SOGo?

That file contents:

<html>
    <head>
        <meta HTTP-EQUIV="REFRESH" content="0; url=/mail/">
    </head>
</html>

That /mail/ alia always points to SOgO, any way to change that and make it point to roundcube?.

Thank you

10

Re: Installing Roundcube after server is operational

Check file /opt/www/roundcubemail/index.php, does it redirect requests to /SOGo?

11

Re: Installing Roundcube after server is operational

ZhangHuangbin wrote:

Check file /opt/www/roundcubemail/index.php, does it redirect requests to /SOGo?

Yes it does

Thanks

12

Re: Installing Roundcube after server is operational

garydawson wrote:
ZhangHuangbin wrote:

Check file /opt/www/roundcubemail/index.php, does it redirect requests to /SOGo?

Yes it does

Thanks

So, after a long thread, is there any way to fix.

Thank you very much

13

Re: Installing Roundcube after server is operational

garydawson wrote:
ZhangHuangbin wrote:

Check file /opt/www/roundcubemail/index.php, does it redirect requests to /SOGo?

Yes it does

if it redirects to /SOGo, that's what you need to fix. Do you have other files under /opt/www/roundcubemail/? They should be Roundcube files.

14

Re: Installing Roundcube after server is operational

ZhangHuangbin wrote:
garydawson wrote:
ZhangHuangbin wrote:

Check file /opt/www/roundcubemail/index.php, does it redirect requests to /SOGo?

Yes it does

if it redirects to /SOGo, that's what you need to fix. Do you have other files under /opt/www/roundcubemail/? They should be Roundcube files.

Directory listing for /opt/var/roundcube:

root@primx1:~# ls -allh /opt/www/roundcubemail/
total 12K
drwxr-xr-x 2 root root 4.0K Apr  7 10:06 .
drwxr-xr-x 6 root root 4.0K Apr  7 01:15 ..
-rw-r--r-- 1 root root  106 Apr  7 01:08 index.php
lrwxrwxrwx 1 root root   28 Apr  1 12:50 roundcubemail-1.1.4 -> /opt/www/roundcubemail-1.1.4


So for the long awaited solution given by myself:

move that /roundcube/ to roudncube_old and then create a symlink to the real roundcube-1.1.4 and it all worked.

I know it might seem dirty but that's what worked and twelve days of no answer made me act, as aI said this is a production system which needed immediate solution.

Thanks