1 (edited by nuwinfo 2017-10-10 18:09:55)

Topic: adminer

==== Required information ====
- iRedMail version: 0.9.7 MARIADB edition
- Linux/BSD distribution name and version: Debian Stretch
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro?: Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I activated adminer.tmpl but can't access the page.

2017/10/10 12:06:44 [crit] 5934#5934: *47 connect() to unix:/var/run/php-fpm.socket failed (2: No such file or directory) while connecting to upstream, client: x.x.x.x, server: _, request: "GET /hidden/latest.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.socket:", host: "domain.com"

Error 502 - Bad Gateway

Any hints?

----

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

2 (edited by gilvancn 2017-10-11 03:15:11)

Re: adminer

Error with php-fpm socket.

How files are configured in /etc/nginx/sites-available

Can you paste a copy of the files here?
If you want, change the name of your domains, if it is explicit.

3

Re: adminer

Did you actually have Adminer program (the php file) on correct location?

4

Re: adminer

ZhangHuangbin wrote:

Did you actually have Adminer program (the php file) on correct location?

Solved this: the paths to fpm.socket were wrong; corrected them to /run/php/php7.0-fpm.socket and now it works.

5

Re: adminer

Could you please show me full content of file /etc/nginx/templates/adminer.tmpl?

6

Re: adminer

nuwinfo wrote:

==== Required information ====
- iRedMail version: 0.9.7 MARIADB edition
- Linux/BSD distribution name and version: Debian Stretch
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro?: Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I activated adminer.tmpl but can't access the page.

2017/10/10 12:06:44 [crit] 5934#5934: *47 connect() to unix:/var/run/php-fpm.socket failed (2: No such file or directory) while connecting to upstream, client: x.x.x.x, server: _, request: "GET /hidden/latest.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.socket:", host: "domain.com"

Error 502 - Bad Gateway

Any hints?

---
maybe, php-fpm service use ip+port communcation ,not use socket.  check php-fpm config