1

Topic: nginx and roundcube not working properly in iRedMail

==== Required information ====
-iRedMail =  0.9.8 MYSQL edition.
web server = nginx
NAME="Ubuntu"
VERSION="18.04 LTS (Bionic Beaver)"
====

webmail shows 404 not found
nginx: will not start with the following line enabled in /etc/nginx/templates/fastcgi-php.tmpl

# Handle PHP files with upstream handler
#fastcgi_pass php_workers;

It looks like the other admin may have updated php from 7.1 to 7.2

I have moved /etc/php/7.2 to /etc/php/7.2.old and copied /etc/php/7.1 to /etc/php7.2
Updated /etc/php/7.2/fpm/pool.d:

;listen = /run/php/php7.1-fpm.sock
listen = /var/run/php-fpm.socket


everything is working but webmail,

----

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

2

Re: nginx and roundcube not working properly in iRedMail

Quick Update:

the nginx error log shows:

no port in upstream "php_workers" in /etc/nginx/templates/fastcgi_php.tmpl:13

3

Re: nginx and roundcube not working properly in iRedMail

Did you upgrade from Ubuntu 16.04 to 18.04?

4

Re: nginx and roundcube not working properly in iRedMail

ZhangHuangbin wrote:

Did you upgrade from Ubuntu 16.04 to 18.04?

Apparently it was upgraded. I have it working now.

I tried adding sogo using the template file on your web page. The users are authenticating correctly but get an error after that.

5

Re: nginx and roundcube not working properly in iRedMail

webwomble wrote:

The users are authenticating correctly but get an error after that.

Do you have correct php-fpm socket path in file /etc/nginx/conf-available/php-fpm.conf?

6

Re: nginx and roundcube not working properly in iRedMail

ZhangHuangbin wrote:
webwomble wrote:

The users are authenticating correctly but get an error after that.

Do you have correct php-fpm socket path in file /etc/nginx/conf-available/php-fpm.conf?

yes, I can change the default sogo module and it works - looks like it  cannot connect to the imap server

7

Re: nginx and roundcube not working properly in iRedMail

webwomble wrote:

yes, I can change the default sogo module and it works - looks like it  cannot connect to the imap server

SOGo cannot connect to IMAP server? what's the error message in SOGo log file?

8

Re: nginx and roundcube not working properly in iRedMail

ZhangHuangbin wrote:
webwomble wrote:

yes, I can change the default sogo module and it works - looks like it  cannot connect to the imap server

SOGo cannot connect to IMAP server? what's the error message in SOGo log file?

Thank you for your help - I have removed sogo - I thought it would be good to have but I don’t need it