1

Topic: FreeBSD jail installation doesn not work

==== Required information ====
- iRedMail version (check /etc/iredmail-release): iRedMail-0.9.8
- Linux/BSD distribution name and version: FreeBSD 11.1-RELEASE-p9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): NGINX
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Just after a fresh install in a jail:

doveconf: Error: t_readlink(/var/run/dovecot/dovecot.conf) failed: readlink() failed: No such file or directory
nginx: [emerg] no port in upstream "php_workers" in /usr/local/etc/nginx/templates/fastcgi_php.tmpl:13

It seems that php is not installed.
No idea about /var/run/dovecot/dovecot.conf.

----

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

2

Re: FreeBSD jail installation doesn not work

Did you restart server? Same issue after restarted server?

3

Re: FreeBSD jail installation doesn not work

ZhangHuangbin wrote:

Did you restart server? Same issue after restarted server?

Yes, I restarted the jail.
It seems that something went wrong during the installation, so php was not installed.
Evidently, I can install it myself, but I hope to be useful for debugging this issue.

4

Re: FreeBSD jail installation doesn not work

- Did you see any error on console during iRedMail installation?
- Any error in file iRedMail-0.9.8/runtime/install.log?

5

Re: FreeBSD jail installation doesn not work

ZhangHuangbin wrote:

- Did you see any error on console during iRedMail installation?
- Any error in file iRedMail-0.9.8/runtime/install.log?

No errors in install.log

I installed the port php71 and started php-fpm. Then I created the lost symlink for /usr/local/etc/nginx/conf-enabled/php-fpm.conf. Then I could start nginx.

6

Re: FreeBSD jail installation doesn not work

As about Dovecot message - it seems that there is a (non-critical) bug in Dovecot on FreeBSD.
A ticket is open:
https://bugs.freebsd.org/bugzilla/show_ … ?id=225078