1

Topic: Mail page shows "502 Bad Gateway nginx" iredmail page working

Setup:

- iRedMail version: 0.9.4
- Linux/BSD distribution name and version: RHEL 7.2
- Store mail accounts in which backend: PGSQL
- Web server: nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log: (part of instalation script output)
...
* Start iRedMail Configurations
********************************************************************
[ INFO ] Create self-signed SSL certification files (2048 bits).
[ INFO ] Generate a strong, unique Diffie Hellman Group with openssl, please wait.
[ INFO ] Create required system account: vmail, iredadmin, iredapd.
[ INFO ] Configure Nginx web server and uWSGI.
Can't open /etc/php-fpm.d/www.conf: No such file or directory.
Can't open /etc/php-fpm.d/www.conf: No such file or directory.
Can't open /etc/php-fpm.d/www.conf: No such file or directory.
Can't open /etc/php-fpm.d/www.conf: No such file or directory.
Can't open /etc/php-fpm.d/www.conf: No such file or directory.
Can't open /etc/php-fpm.d/www.conf: No such file or directory.
[ INFO ] Configure PHP.
[ INFO ] Configure PostgreSQL database server.
[ INFO ] Setup daily cron job to backup PostgreSQL databases with /data-enc/vmail/backup/backup_pgsql.sh
[ INFO ] Configure Postfix (Message Transfer Agent).
[ 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).
[ INFO ] Configure Fail2ban (authentication failure monitor).
[ INFO ] Configure Roundcube webmail.

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

admin page (https://my_server/iredadmin) works
mail page (https://my_server/mail) does not

It is a new install.

searched the forum, and found no similar issues...

any ideas?

----

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

2

Re: Mail page shows "502 Bad Gateway nginx" iredmail page working

qwebly wrote:

[ INFO ] Configure Nginx web server and uWSGI.
Can't open /etc/php-fpm.d/www.conf: No such file or directory.
Can't open /etc/php-fpm.d/www.conf: No such file or directory.
Can't open /etc/php-fpm.d/www.conf: No such file or directory.
Can't open /etc/php-fpm.d/www.conf: No such file or directory.
Can't open /etc/php-fpm.d/www.conf: No such file or directory.
Can't open /etc/php-fpm.d/www.conf: No such file or directory.

Do you have package 'php-fpm' installed? If not, is it available from any enabled yum repositories?

Also, please show us which yum repos are enabled on your server:

yum repolist

3

Re: Mail page shows "502 Bad Gateway nginx" iredmail page working

No, that package was not installed

yum repolist gave:

Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
Repo rhui-REGION-client-config-server-7 forced skip_if_unavailable=True due to: /etc/pki/rhui/cdn.redhat.com-chain.crt
Repo rhui-REGION-client-config-server-7 forced skip_if_unavailable=True due to: /etc/pki/rhui/product/rhui-client-config-server-7.crt
Repo rhui-REGION-client-config-server-7 forced skip_if_unavailable=True due to: /etc/pki/rhui/rhui-client-config-server-7.key
Repo rhui-REGION-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/rhui/cdn.redhat.com-chain.crt
Repo rhui-REGION-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/rhui/product/content-rhel7.crt
Repo rhui-REGION-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/rhui/content-rhel7.key
Repo rhui-REGION-rhel-server-rh-common forced skip_if_unavailable=True due to: /etc/pki/rhui/cdn.redhat.com-chain.crt
Repo rhui-REGION-rhel-server-rh-common forced skip_if_unavailable=True due to: /etc/pki/rhui/product/content-rhel7.crt
Repo rhui-REGION-rhel-server-rh-common forced skip_if_unavailable=True due to: /etc/pki/rhui/content-rhel7.key
Could not contact CDS load balancer rhui2-cds01.eu-central-1.aws.ce.redhat.com, trying others.


Could not contact any CDS load balancers: rhui2-cds01.eu-central-1.aws.ce.redhat.com, rhui2-cds02.eu-central-1.aws.ce.redhat.com.

seems ther was a conflict

4

Re: Mail page shows "502 Bad Gateway nginx" iredmail page working

Why you don't have EPEL repo enabled? it's required by iRedMail, and iRedMail will create /etc/yum.repos.d/epel.repo and enable it by default.