iredmail / iRedMail

Full-featured, open source mail server solution for mainstream Linux/BSD distributions.

Home Page:https://www.iredmail.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The lang/php74 is DEPRACATED on FreeBSD - Required by iRedMail

vermaden opened this issue · comments

Hi.

The problem is that lang/php74 has been DEPRACATED on FreeBSD Ports because php 7.4 reached it's EOL on 2022-11-22.

This means that iRedMail is not able to install on FreeBSD because php 7.4 ports are GONE.

The current supported FreeBSD version of PHP is 8.1

Hope that helps.

Logs and info below.

Regards.

REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER:

  • iRedMail version (check /etc/iredmail-release): 1.6.2
  • Deployed with iRedMail Easy or the downloadable installer? with iRedMail.sh from https://github.com/iredmail/iRedMail/archive/refs/tags/1.6.2.tar.gz
  • Linux/BSD distribution name and version: FreeBSD 13.1-RELEASE-p5
  • Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL (but does not matter in that case)
  • Web server (Apache or Nginx): NGINX (but does not matter in that case)
  • Manage mail accounts with iRedAdmin-Pro? NOPE
  • [IMPORTANT] Related original log or error message is required if you're experiencing an issue.

LOG from console output:

Move: bin/uwsgi --> bin/uwsgi-3.8
Link: @bin/uwsgi --> bin/uwsgi-3.8
====> Compressing man pages (compress-man)
===> Staging rc.d startup script(s)
if [ -d "/usr/ports/www/uwsgi/work-py38/stage/usr/local/lib/python3.8/site-packages/uwsgi-2.0.21-py3.8.egg-info" ]; then  /bin/ls /usr/ports/www/uwsgi/work-py38/stage/usr/local/lib/python3.8/site-packages/uwsgi-2.0.21-py3.8.egg-info | while read f; do  echo lib/python3.8/site-packages/uwsgi-2.0.21-py3.8.egg-info/${f} >> /usr/ports/www/uwsgi/work-py38/.PLIST.mktmp;  done;  fi;
===>  Installing for uwsgi-py38-2.0.21
===>  Checking if uwsgi-py38 is already installed
===>   Registering installation for uwsgi-py38-2.0.21
Installing uwsgi-py38-2.0.21...
===> Creating groups.
Creating group 'uwsgi' with gid '165'.
===> Creating users
Creating user 'uwsgi' with uid '165'.
===> SECURITY REPORT: 
      This port has installed the following files which may act as network
      servers and may therefore pose a remote security risk to the system.
/usr/local/bin/uwsgi-3.8

      If there are vulnerabilities in these programs there may be a security
      risk to the system. FreeBSD makes no guarantee about the security of
      ports included in the Ports Collection. Please type 'make deinstall'
      to deinstall the port if this is a concern.

      For more information, and contact details about the security
      status of this software, see the following webpage: 
https://projects.unbit.it/uwsgi/
===>  Cleaning for jansson-2.14
===>  Cleaning for jansson-2.14
===>  Cleaning for uwsgi-py38-2.0.21
Port directory /usr/ports/lang/php74 doesn't exist.
You have new mail in /var/mail/root
[root@mail ~/iRedMail-1.6.2]# 

LOG from /root/iRedMail-1.6.2/runtime/install.log file:

[root@mlca1 ~/iRedMail-1.6.2]# cat ./runtime/install.log 
[ INFO ] Checking new version of iRedMail ...
[ INFO ] Checking new version of iRedMail ...
 + < DEBUG > Creating necessary directories ...
[ INFO ] Fetching source tarballs ...
[ INFO ] + 1 of 3: https://dl.iredmail.org/yum/misc/iRedAdmin-1.8.1.tar.gz
[ INFO ] + 2 of 3: https://dl.iredmail.org/yum/misc/mlmmjadmin-3.1.5.tar.gz
[ INFO ] + 3 of 3: https://dl.iredmail.org/yum/misc/iRedAPD-5.1.tar.gz
[ INFO ] Validate downloaded source tarballs ...
[ INFO ] Checking configuration file: /root/iRedMail-1.6.2/config ...
[ INFO ] NOT FOUND. Launching installation wizard.
 + < DEBUG > Update /etc/make.conf: WANT_OPENLDAP_VER=24
 + < DEBUG > Update /etc/make.conf: WANT_OPENLDAP_SASL=YES
 + < DEBUG > Update /etc/make.conf: WANT_PGSQL_VER=12
 + < DEBUG > Update /etc/make.conf: WANT_BDB_VER=5
 + < DEBUG > Update /etc/make.conf: DEFAULT_VERSIONS=ssl=openssl python=3.8 python3=3.8 pgsql=12 php=7.4 mysql=10.5m perl5=5.34
 + < DEBUG > Update /etc/make.conf: OPTIONS_SET+=SASL
 + < DEBUG > Update /etc/make.conf: OPTIONS_UNSET+=X11
 + < DEBUG > Update /etc/make.conf: LICENSES_ACCEPTED+=DCC
[ INFO ] Ports tree: /usr/ports
[ INFO ] Fetching all distfiles for required ports (make fetch-recursive)
[ INFO ] Fetching all distfiles for port: devel/py-Jinja2
<< ERROR >> Failed in downloading package(s), please fix it manually and then relaunch iRedMail installer.
[ INFO ] Checking configuration file: /root/iRedMail-1.6.2/config ...
[ INFO ] Use config file: /root/iRedMail-1.6.2/config for mail server setting.
[ INFO ] Import installation process status from file: /root/iRedMail-1.6.2/runtime/install.status.
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_VER=24
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_SASL=YES
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_PGSQL_VER=12
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_BDB_VER=5
 + < DEBUG > Skip adding option in /etc/make.conf: DEFAULT_VERSIONS=ssl=openssl python=3.8 python3=3.8 pgsql=12 php=7.4 mysql=10.5m perl5=5.34
 + < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_SET+=SASL
 + < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_UNSET+=X11
 + < DEBUG > Skip adding option in /etc/make.conf: LICENSES_ACCEPTED+=DCC
[ INFO ] Ports tree: /usr/ports
[ INFO ] Fetching all distfiles for required ports (make fetch-recursive)
[ INFO ] Fetching all distfiles for port: devel/py-Jinja2
<< ERROR >> Failed in downloading package(s), please fix it manually and then relaunch iRedMail installer.
[ INFO ] Checking configuration file: /root/iRedMail-1.6.2/config ...
[ INFO ] Use config file: /root/iRedMail-1.6.2/config for mail server setting.
[ INFO ] Import installation process status from file: /root/iRedMail-1.6.2/runtime/install.status.
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_VER=24
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_SASL=YES
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_PGSQL_VER=12
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_BDB_VER=5
 + < DEBUG > Skip adding option in /etc/make.conf: DEFAULT_VERSIONS=ssl=openssl python=3.8 python3=3.8 pgsql=12 php=7.4 mysql=10.5m perl5=5.34
 + < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_SET+=SASL
 + < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_UNSET+=X11
 + < DEBUG > Skip adding option in /etc/make.conf: LICENSES_ACCEPTED+=DCC
[ INFO ] Ports tree: /usr/ports
[ INFO ] Fetching all distfiles for required ports (make fetch-recursive)
[ INFO ] Fetching all distfiles for port: devel/py-Jinja2
[ INFO ] Checking configuration file: /root/iRedMail-1.6.2/config ...
[ INFO ] Use config file: /root/iRedMail-1.6.2/config for mail server setting.
[ INFO ] Import installation process status from file: /root/iRedMail-1.6.2/runtime/install.status.
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_VER=24
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_SASL=YES
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_PGSQL_VER=12
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_BDB_VER=5
 + < DEBUG > Skip adding option in /etc/make.conf: DEFAULT_VERSIONS=ssl=openssl python=3.8 python3=3.8 pgsql=12 php=7.4 mysql=10.5m perl5=5.34
 + < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_SET+=SASL
 + < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_UNSET+=X11
 + < DEBUG > Skip adding option in /etc/make.conf: LICENSES_ACCEPTED+=DCC
[ INFO ] Ports tree: /usr/ports
[ INFO ] Fetching all distfiles for required ports (make fetch-recursive)
[ INFO ] Fetching all distfiles for port: devel/py-Jinja2
<< ERROR >> Failed in downloading package(s), please fix it manually and then relaunch iRedMail installer.
[ INFO ] Checking configuration file: /root/iRedMail-1.6.2/config ...
[ INFO ] Use config file: /root/iRedMail-1.6.2/config for mail server setting.
[ INFO ] Import installation process status from file: /root/iRedMail-1.6.2/runtime/install.status.
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_VER=24
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_SASL=YES
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_PGSQL_VER=12
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_BDB_VER=5
 + < DEBUG > Skip adding option in /etc/make.conf: DEFAULT_VERSIONS=ssl=openssl python=3.8 python3=3.8 pgsql=12 php=7.4 mysql=10.5m perl5=5.34
 + < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_SET+=SASL
 + < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_UNSET+=X11
 + < DEBUG > Skip adding option in /etc/make.conf: LICENSES_ACCEPTED+=DCC
[ INFO ] Ports tree: /usr/ports
[ INFO ] Fetching all distfiles for required ports (make fetch-recursive)
[ INFO ] Fetching all distfiles for port: devel/py-Jinja2
<< ERROR >> Failed in downloading package(s), please fix it manually and then relaunch iRedMail installer.
[ INFO ] Checking configuration file: /root/iRedMail-1.6.2/config ...
[ INFO ] Use config file: /root/iRedMail-1.6.2/config for mail server setting.
[ INFO ] Import installation process status from file: /root/iRedMail-1.6.2/runtime/install.status.
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_VER=24
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_SASL=YES
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_PGSQL_VER=12
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_BDB_VER=5
 + < DEBUG > Skip adding option in /etc/make.conf: DEFAULT_VERSIONS=ssl=openssl python=3.8 python3=3.8 pgsql=12 php=7.4 mysql=10.5m perl5=5.34
 + < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_SET+=SASL
 + < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_UNSET+=X11
 + < DEBUG > Skip adding option in /etc/make.conf: LICENSES_ACCEPTED+=DCC
[ INFO ] Ports tree: /usr/ports
[ INFO ] Fetching all distfiles for required ports (make fetch-recursive)
[ INFO ] Fetching all distfiles for port: devel/py-Jinja2
[ INFO ] Fetching all distfiles for port: net/py-netifaces
[ INFO ] Fetching all distfiles for port: security/py-bcrypt
[ INFO ] Fetching all distfiles for port: www/py-requests
[ INFO ] Fetching all distfiles for port: databases/postgresql12-server
[ INFO ] Fetching all distfiles for port: databases/postgresql12-contrib
[ INFO ] Fetching all distfiles for port: mail/dovecot
[ INFO ] Fetching all distfiles for port: mail/dovecot-pigeonhole
[ INFO ] Fetching all distfiles for port: mail/spamassassin
[ INFO ] Fetching all distfiles for port: security/amavisd-new
[ INFO ] Fetching all distfiles for port: mail/postfix
[ INFO ] Fetching all distfiles for port: www/nginx
[ INFO ] Fetching all distfiles for port: www/uwsgi
[ INFO ] Fetching all distfiles for port: lang/php74
[ INFO ] Fetching all distfiles for port: mail/php74-imap
[ INFO ] Fetching all distfiles for port: archivers/php74-zip
[ INFO ] Fetching all distfiles for port: archivers/php74-bz2
[ INFO ] Fetching all distfiles for port: archivers/php74-zlib
[ INFO ] Fetching all distfiles for port: devel/php74-gettext
[ INFO ] Fetching all distfiles for port: security/php74-openssl
[ INFO ] Fetching all distfiles for port: www/php74-session
[ INFO ] Fetching all distfiles for port: converters/php74-iconv
[ INFO ] Fetching all distfiles for port: textproc/php74-pspell
[ INFO ] Fetching all distfiles for port: textproc/php74-dom
[ INFO ] Fetching all distfiles for port: databases/php74-pgsql
[ INFO ] Fetching all distfiles for port: devel/p5-Exporter-Tiny
[ INFO ] Fetching all distfiles for port: security/clamav
[ INFO ] Fetching all distfiles for port: mail/mlmmj
[ INFO ] Fetching all distfiles for port: mail/roundcube
<< ERROR >> Failed in downloading package(s), please fix it manually and then relaunch iRedMail installer.
[ INFO ] Checking configuration file: /root/iRedMail-1.6.2/config ...
[ INFO ] Use config file: /root/iRedMail-1.6.2/config for mail server setting.
[ INFO ] Import installation process status from file: /root/iRedMail-1.6.2/runtime/install.status.
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_VER=24
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_SASL=YES
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_PGSQL_VER=12
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_BDB_VER=5
 + < DEBUG > Skip adding option in /etc/make.conf: DEFAULT_VERSIONS=ssl=openssl python=3.8 python3=3.8 pgsql=12 php=7.4 mysql=10.5m perl5=5.34
 + < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_SET+=SASL
 + < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_UNSET+=X11
 + < DEBUG > Skip adding option in /etc/make.conf: LICENSES_ACCEPTED+=DCC
[ INFO ] Ports tree: /usr/ports
[ INFO ] Fetching all distfiles for required ports (make fetch-recursive)
< SKIP > Fetching all distfiles for port devel/py-Jinja2 and dependencies
< SKIP > Fetching all distfiles for port net/py-netifaces and dependencies
< SKIP > Fetching all distfiles for port security/py-bcrypt and dependencies
< SKIP > Fetching all distfiles for port www/py-requests and dependencies
< SKIP > Fetching all distfiles for port databases/postgresql12-server and dependencies
< SKIP > Fetching all distfiles for port databases/postgresql12-contrib and dependencies
< SKIP > Fetching all distfiles for port mail/dovecot and dependencies
< SKIP > Fetching all distfiles for port mail/dovecot-pigeonhole and dependencies
< SKIP > Fetching all distfiles for port mail/spamassassin and dependencies
< SKIP > Fetching all distfiles for port security/amavisd-new and dependencies
< SKIP > Fetching all distfiles for port mail/postfix and dependencies
< SKIP > Fetching all distfiles for port www/nginx and dependencies
< SKIP > Fetching all distfiles for port www/uwsgi and dependencies
< SKIP > Fetching all distfiles for port lang/php74 and dependencies
< SKIP > Fetching all distfiles for port mail/php74-imap and dependencies
< SKIP > Fetching all distfiles for port archivers/php74-zip and dependencies
< SKIP > Fetching all distfiles for port archivers/php74-bz2 and dependencies
< SKIP > Fetching all distfiles for port archivers/php74-zlib and dependencies
< SKIP > Fetching all distfiles for port devel/php74-gettext and dependencies
< SKIP > Fetching all distfiles for port security/php74-openssl and dependencies
< SKIP > Fetching all distfiles for port www/php74-session and dependencies
< SKIP > Fetching all distfiles for port converters/php74-iconv and dependencies
< SKIP > Fetching all distfiles for port textproc/php74-pspell and dependencies
< SKIP > Fetching all distfiles for port textproc/php74-dom and dependencies
< SKIP > Fetching all distfiles for port databases/php74-pgsql and dependencies
< SKIP > Fetching all distfiles for port devel/p5-Exporter-Tiny and dependencies
< SKIP > Fetching all distfiles for port security/clamav and dependencies
< SKIP > Fetching all distfiles for port mail/mlmmj and dependencies
[ INFO ] Fetching all distfiles for port: mail/roundcube
<< ERROR >> Failed in downloading package(s), please fix it manually and then relaunch iRedMail installer.
[ INFO ] Checking configuration file: /root/iRedMail-1.6.2/config ...
[ INFO ] Use config file: /root/iRedMail-1.6.2/config for mail server setting.
[ INFO ] Import installation process status from file: /root/iRedMail-1.6.2/runtime/install.status.
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_VER=24
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_SASL=YES
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_PGSQL_VER=12
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_BDB_VER=5
 + < DEBUG > Skip adding option in /etc/make.conf: DEFAULT_VERSIONS=ssl=openssl python=3.8 python3=3.8 pgsql=12 php=7.4 mysql=10.5m perl5=5.34
 + < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_SET+=SASL
 + < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_UNSET+=X11
 + < DEBUG > Skip adding option in /etc/make.conf: LICENSES_ACCEPTED+=DCC
[ INFO ] Ports tree: /usr/ports
[ INFO ] Fetching all distfiles for required ports (make fetch-recursive)
< SKIP > Fetching all distfiles for port devel/py-Jinja2 and dependencies
< SKIP > Fetching all distfiles for port net/py-netifaces and dependencies
< SKIP > Fetching all distfiles for port security/py-bcrypt and dependencies
< SKIP > Fetching all distfiles for port www/py-requests and dependencies
< SKIP > Fetching all distfiles for port databases/postgresql12-server and dependencies
< SKIP > Fetching all distfiles for port databases/postgresql12-contrib and dependencies
< SKIP > Fetching all distfiles for port mail/dovecot and dependencies
< SKIP > Fetching all distfiles for port mail/dovecot-pigeonhole and dependencies
< SKIP > Fetching all distfiles for port mail/spamassassin and dependencies
< SKIP > Fetching all distfiles for port security/amavisd-new and dependencies
< SKIP > Fetching all distfiles for port mail/postfix and dependencies
< SKIP > Fetching all distfiles for port www/nginx and dependencies
< SKIP > Fetching all distfiles for port www/uwsgi and dependencies
< SKIP > Fetching all distfiles for port lang/php74 and dependencies
< SKIP > Fetching all distfiles for port mail/php74-imap and dependencies
< SKIP > Fetching all distfiles for port archivers/php74-zip and dependencies
< SKIP > Fetching all distfiles for port archivers/php74-bz2 and dependencies
< SKIP > Fetching all distfiles for port archivers/php74-zlib and dependencies
< SKIP > Fetching all distfiles for port devel/php74-gettext and dependencies
< SKIP > Fetching all distfiles for port security/php74-openssl and dependencies
< SKIP > Fetching all distfiles for port www/php74-session and dependencies
< SKIP > Fetching all distfiles for port converters/php74-iconv and dependencies
< SKIP > Fetching all distfiles for port textproc/php74-pspell and dependencies
< SKIP > Fetching all distfiles for port textproc/php74-dom and dependencies
< SKIP > Fetching all distfiles for port databases/php74-pgsql and dependencies
< SKIP > Fetching all distfiles for port devel/p5-Exporter-Tiny and dependencies
< SKIP > Fetching all distfiles for port security/clamav and dependencies
< SKIP > Fetching all distfiles for port mail/mlmmj and dependencies
[ INFO ] Fetching all distfiles for port: mail/roundcube
[ INFO ] Checking configuration file: /root/iRedMail-1.6.2/config ...
[ INFO ] Use config file: /root/iRedMail-1.6.2/config for mail server setting.
[ INFO ] Import installation process status from file: /root/iRedMail-1.6.2/runtime/install.status.
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_VER=24
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_SASL=YES
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_PGSQL_VER=12
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_BDB_VER=5
 + < DEBUG > Skip adding option in /etc/make.conf: DEFAULT_VERSIONS=ssl=openssl python=3.8 python3=3.8 pgsql=12 php=7.4 mysql=10.5m perl5=5.34
 + < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_SET+=SASL
 + < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_UNSET+=X11
 + < DEBUG > Skip adding option in /etc/make.conf: LICENSES_ACCEPTED+=DCC
[ INFO ] Ports tree: /usr/ports
[ INFO ] Fetching all distfiles for required ports (make fetch-recursive)
< SKIP > Fetching all distfiles for port devel/py-Jinja2 and dependencies
< SKIP > Fetching all distfiles for port net/py-netifaces and dependencies
< SKIP > Fetching all distfiles for port security/py-bcrypt and dependencies
< SKIP > Fetching all distfiles for port www/py-requests and dependencies
< SKIP > Fetching all distfiles for port databases/postgresql12-server and dependencies
< SKIP > Fetching all distfiles for port databases/postgresql12-contrib and dependencies
< SKIP > Fetching all distfiles for port mail/dovecot and dependencies
< SKIP > Fetching all distfiles for port mail/dovecot-pigeonhole and dependencies
< SKIP > Fetching all distfiles for port mail/spamassassin and dependencies
< SKIP > Fetching all distfiles for port security/amavisd-new and dependencies
< SKIP > Fetching all distfiles for port mail/postfix and dependencies
< SKIP > Fetching all distfiles for port www/nginx and dependencies
< SKIP > Fetching all distfiles for port www/uwsgi and dependencies
< SKIP > Fetching all distfiles for port lang/php74 and dependencies
< SKIP > Fetching all distfiles for port mail/php74-imap and dependencies
< SKIP > Fetching all distfiles for port archivers/php74-zip and dependencies
< SKIP > Fetching all distfiles for port archivers/php74-bz2 and dependencies
< SKIP > Fetching all distfiles for port archivers/php74-zlib and dependencies
< SKIP > Fetching all distfiles for port devel/php74-gettext and dependencies
< SKIP > Fetching all distfiles for port security/php74-openssl and dependencies
< SKIP > Fetching all distfiles for port www/php74-session and dependencies
< SKIP > Fetching all distfiles for port converters/php74-iconv and dependencies
< SKIP > Fetching all distfiles for port textproc/php74-pspell and dependencies
< SKIP > Fetching all distfiles for port textproc/php74-dom and dependencies
< SKIP > Fetching all distfiles for port databases/php74-pgsql and dependencies
< SKIP > Fetching all distfiles for port devel/p5-Exporter-Tiny and dependencies
< SKIP > Fetching all distfiles for port security/clamav and dependencies
< SKIP > Fetching all distfiles for port mail/mlmmj and dependencies
[ INFO ] Fetching all distfiles for port: mail/roundcube
[ INFO ] Fetching all distfiles for port: devel/sope
[ INFO ] Fetching all distfiles for port: www/sogo
[ INFO ] Fetching all distfiles for port: databases/py-psycopg2
[ INFO ] Fetching all distfiles for port: databases/py-sqlalchemy10
[ INFO ] Fetching all distfiles for port: dns/py-dnspython
[ INFO ] Fetching all distfiles for port: www/webpy
[ INFO ] Fetching all distfiles for port: devel/py-simplejson
[ INFO ] Fetching all distfiles for port: sysutils/logwatch
[ INFO ] All ports:  devel/py-Jinja2 net/py-netifaces security/py-bcrypt www/py-requests databases/postgresql12-server databases/postgresql12-contrib mail/dovecot mail/dovecot-pigeonhole mail/spamassassin security/amavisd-new mail/postfix www/nginx www/uwsgi lang/php74 mail/php74-imap archivers/php74-zip archivers/php74-bz2 archivers/php74-zlib devel/php74-gettext security/php74-openssl www/php74-session converters/php74-iconv textproc/php74-pspell textproc/php74-dom databases/php74-pgsql devel/p5-Exporter-Tiny security/clamav mail/mlmmj mail/roundcube devel/sope www/sogo databases/py-psycopg2 databases/py-sqlalchemy10 dns/py-dnspython www/webpy devel/py-simplejson sysutils/logwatch
[ INFO ] Installing port: devel/py-Jinja2 (2023-01-04 00:47:14) ...
[ INFO ] Installing port: net/py-netifaces (2023-01-04 00:47:51) ...
[ INFO ] Installing port: security/py-bcrypt (2023-01-04 00:48:00) ...
[ INFO ] Installing port: www/py-requests (2023-01-04 00:48:28) ...
<< ERROR >> Port was not successfully installed, please fix it manually and then re-execute this script.
[ INFO ] Checking configuration file: /root/iRedMail-1.6.2/config ...
[ INFO ] Use config file: /root/iRedMail-1.6.2/config for mail server setting.
[ INFO ] Import installation process status from file: /root/iRedMail-1.6.2/runtime/install.status.
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_VER=24
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_SASL=YES
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_PGSQL_VER=12
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_BDB_VER=5
 + < DEBUG > Skip adding option in /etc/make.conf: DEFAULT_VERSIONS=ssl=openssl python=3.8 python3=3.8 pgsql=12 php=7.4 mysql=10.5m perl5=5.34
 + < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_SET+=SASL
 + < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_UNSET+=X11
 + < DEBUG > Skip adding option in /etc/make.conf: LICENSES_ACCEPTED+=DCC
< SKIP > Function: fetch_all_src_tarballs.
[ INFO ] All ports:  devel/py-Jinja2 net/py-netifaces security/py-bcrypt www/py-requests databases/postgresql12-server databases/postgresql12-contrib mail/dovecot mail/dovecot-pigeonhole mail/spamassassin security/amavisd-new mail/postfix www/nginx www/uwsgi lang/php74 mail/php74-imap archivers/php74-zip archivers/php74-bz2 archivers/php74-zlib devel/php74-gettext security/php74-openssl www/php74-session converters/php74-iconv textproc/php74-pspell textproc/php74-dom databases/php74-pgsql devel/p5-Exporter-Tiny security/clamav mail/mlmmj mail/roundcube devel/sope www/sogo databases/py-psycopg2 databases/py-sqlalchemy10 dns/py-dnspython www/webpy devel/py-simplejson sysutils/logwatch
< SKIP > Installing port: devel/py-Jinja2.
< SKIP > Installing port: net/py-netifaces.
< SKIP > Installing port: security/py-bcrypt.
[ INFO ] Installing port: www/py-requests (2023-01-04 01:11:48) ...
[ INFO ] Installing port: databases/postgresql12-server (2023-01-04 01:21:52) ...
[ INFO ] Installing port: databases/postgresql12-contrib (2023-01-04 01:42:41) ...
[ INFO ] Installing port: mail/dovecot (2023-01-04 01:49:27) ...
[ INFO ] Installing port: mail/dovecot-pigeonhole (2023-01-04 02:11:21) ...
[ INFO ] Installing port: mail/spamassassin (2023-01-04 02:14:15) ...
<< ERROR >> Port was not successfully installed, please fix it manually and then re-execute this script.
[ INFO ] Checking configuration file: /root/iRedMail-1.6.2/config ...
[ INFO ] Use config file: /root/iRedMail-1.6.2/config for mail server setting.
[ INFO ] Import installation process status from file: /root/iRedMail-1.6.2/runtime/install.status.
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_VER=24
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_SASL=YES
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_PGSQL_VER=12
 + < DEBUG > Skip adding option in /etc/make.conf: WANT_BDB_VER=5
 + < DEBUG > Skip adding option in /etc/make.conf: DEFAULT_VERSIONS=ssl=openssl python=3.8 python3=3.8 pgsql=12 php=7.4 mysql=10.5m perl5=5.34
 + < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_SET+=SASL
 + < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_UNSET+=X11
 + < DEBUG > Skip adding option in /etc/make.conf: LICENSES_ACCEPTED+=DCC
< SKIP > Function: fetch_all_src_tarballs.
[ INFO ] All ports:  devel/py-Jinja2 net/py-netifaces security/py-bcrypt www/py-requests databases/postgresql12-server databases/postgresql12-contrib mail/dovecot mail/dovecot-pigeonhole mail/spamassassin security/amavisd-new mail/postfix www/nginx www/uwsgi lang/php74 mail/php74-imap archivers/php74-zip archivers/php74-bz2 archivers/php74-zlib devel/php74-gettext security/php74-openssl www/php74-session converters/php74-iconv textproc/php74-pspell textproc/php74-dom databases/php74-pgsql devel/p5-Exporter-Tiny security/clamav mail/mlmmj mail/roundcube devel/sope www/sogo databases/py-psycopg2 databases/py-sqlalchemy10 dns/py-dnspython www/webpy devel/py-simplejson sysutils/logwatch
< SKIP > Installing port: devel/py-Jinja2.
< SKIP > Installing port: net/py-netifaces.
< SKIP > Installing port: security/py-bcrypt.
< SKIP > Installing port: www/py-requests.
< SKIP > Installing port: databases/postgresql12-server.
< SKIP > Installing port: databases/postgresql12-contrib.
< SKIP > Installing port: mail/dovecot.
< SKIP > Installing port: mail/dovecot-pigeonhole.
[ INFO ] Installing port: mail/spamassassin (2023-01-04 03:50:08) ...
[ INFO ] Installing port: security/amavisd-new (2023-01-04 03:54:26) ...
[ INFO ] Installing port: mail/postfix (2023-01-04 04:04:12) ...
[ INFO ] Installing port: www/nginx (2023-01-04 04:08:35) ...
[ INFO ] Installing port: www/uwsgi (2023-01-04 04:15:37) ...

I have modified the iRedMail files to use php81 (PHP 8.1) instead of php74 (PHP 7.4) ports on FreeBSD and it seems to work properly.

These are the changes I have made:

[root@mail ~]# diff -rq iRedMail-1.6.2 iRedMail-1.6.2-php81 | grep differ | column -t
Files  iRedMail-1.6.2/conf/core                      and  iRedMail-1.6.2-php81/conf/core                      differ
Files  iRedMail-1.6.2/conf/php                       and  iRedMail-1.6.2-php81/conf/php                       differ
Files  iRedMail-1.6.2/functions/packages_freebsd.sh  and  iRedMail-1.6.2-php81/functions/packages_freebsd.sh  differ

iRedMail-1.6.2/conf/core

[root@mail ~]# diff -u  iRedMail-1.6.2/conf/core iRedMail-1.6.2-php81/conf/core
--- iRedMail-1.6.2/conf/core	2022-09-30 04:01:28.000000000 +0200
+++ iRedMail-1.6.2-php81/conf/core	2023-01-04 10:07:26.577648000 +0100
@@ -446,7 +446,7 @@
 install_pkg_rhel()
 {
     ECHO_INFO "Installing package(s): $@"
-    ${YUM} -y --disablerepo=rpmforge,ius,remi,remi-php74,remi-safe,atrpms install $@
+    ${YUM} -y --disablerepo=rpmforge,ius,remi,remi-php81,remi-safe,atrpms install $@
 
     # Leave a mark if package installation failed.
     if [ X"$?" != X'0' ]; then

iRedMail-1.6.2/conf/php

[root@mail ~]# diff -u iRedMail-1.6.2/conf/php iRedMail-1.6.2-php81/conf/php
--- iRedMail-1.6.2/conf/php	2022-09-30 04:01:28.000000000 +0200
+++ iRedMail-1.6.2-php81/conf/php	2023-01-04 10:09:03.280420000 +0100
@@ -43,10 +43,10 @@
 elif [ X"${DISTRO}" == X'DEBIAN' -o X"${DISTRO}" == X'UBUNTU' ]; then
     if [ X"${DISTRO_CODENAME}" == X'bullseye' ]; then
         # Debian 11
-        export PHP_VERSION='7.4'
+        export PHP_VERSION='8.1'
     elif [ X"${DISTRO_CODENAME}" == X'focal' ]; then
         # Ubuntu 20.04
-        export PHP_VERSION='7.4'
+        export PHP_VERSION='8.1'
     elif [ X"${DISTRO_CODENAME}" == X'jammy' ]; then
         # Ubuntu 22.04
         export PHP_VERSION='8.1'

iRedMail-1.6.2/functions/packages_freebsd.sh

[root@mail ~]# diff -u iRedMail-1.6.2/functions/packages_freebsd.sh iRedMail-1.6.2-php81/functions/packages_freebsd.sh  
--- iRedMail-1.6.2/functions/packages_freebsd.sh	2022-09-30 04:01:28.000000000 +0200
+++ iRedMail-1.6.2-php81/functions/packages_freebsd.sh	2023-01-04 20:14:06.154355000 +0100
@@ -37,7 +37,7 @@
     export PREFERRED_OPENLDAP_VER='24'
     export PREFERRED_MARIADB_VER='105'
     export PREFERRED_BDB_VER='5'
-    export PREFERRED_PHP_VER='74'
+    export PREFERRED_PHP_VER='81'
     export PREFERRED_PY3_VER='3.8'
     export PREFERRED_PY_FLAVOR='py38'
 
@@ -49,7 +49,7 @@
     freebsd_make_conf_add 'WANT_OPENLDAP_SASL' "YES"
     freebsd_make_conf_add 'WANT_PGSQL_VER' "${PGSQL_VERSION}"
     freebsd_make_conf_add 'WANT_BDB_VER' "${PREFERRED_BDB_VER}"
-    freebsd_make_conf_add 'DEFAULT_VERSIONS' "ssl=openssl python=${PREFERRED_PY3_VER} python3=${PREFERRED_PY3_VER} pgsql=${PGSQL_VERSION} php=7.4 mysql=10.5m perl5=5.34"
+    freebsd_make_conf_add 'DEFAULT_VERSIONS' "ssl=openssl python=${PREFERRED_PY3_VER} python3=${PREFERRED_PY3_VER} pgsql=${PGSQL_VERSION} php=8.1 mysql=10.5m perl5=5.34"
 
     freebsd_make_conf_plus_option 'OPTIONS_SET' 'SASL'
     freebsd_make_conf_plus_option 'OPTIONS_UNSET' 'X11'
@@ -842,7 +842,7 @@
     if [ X"${IREDMAIL_USE_PHP}" == X'YES' ]; then
         ALL_PORTS="${ALL_PORTS} lang/php${PREFERRED_PHP_VER}"
 
-        ALL_PORTS="${ALL_PORTS} mail/php${PREFERRED_PHP_VER}-imap archivers/php${PREFERRED_PHP_VER}-zip archivers/php${PREFERRED_PHP_VER}-bz2 archivers/php${PREFERRED_PHP_VER}-zlib devel/php${PREFERRED_PHP_VER}-gettext security/php${PREFERRED_PHP_VER}-openssl www/php${PREFERRED_PHP_VER}-session converters/php${PREFERRED_PHP_VER}-iconv textproc/php${PREFERRED_PHP_VER}-pspell textproc/php${PREFERRED_PHP_VER}-dom"
+        ALL_PORTS="${ALL_PORTS} mail/php${PREFERRED_PHP_VER}-imap archivers/php${PREFERRED_PHP_VER}-zip archivers/php${PREFERRED_PHP_VER}-bz2 archivers/php${PREFERRED_PHP_VER}-zlib devel/php${PREFERRED_PHP_VER}-gettext www/php${PREFERRED_PHP_VER}-session converters/php${PREFERRED_PHP_VER}-iconv textproc/php${PREFERRED_PHP_VER}-pspell textproc/php${PREFERRED_PHP_VER}-dom"
 
         if [ X"${BACKEND}" == X'OPENLDAP' ]; then
             ALL_PORTS="${ALL_PORTS} net/php${PREFERRED_PHP_VER}-ldap databases/php${PREFERRED_PHP_VER}-mysqli"

I also removed php81-openssl package (as seen above in the diff(1) output) from the files as there is no such package anymore. When php74 existed then php74-openssl also existed.

Regards.

Is anyone alive here?

It was 2 weeks ago ...

Hi @vermaden

thanks for the feedback and contribution, would you like to send a Pull Request here? Please just modify FreeBSD related files, not linux related ones (e.g. not modify php version numbers for Linux distributions).

Thank You for letting me know that You are alive :)

Besides PHP 7.4 -> 8.1 'migration' there are also other ports that need attention.

These are OpenLDAP 2.4 -> 2.6 update and also PostgreSQL 12.x -> 13.x to be precise.

I intent to create Pull Request for all these at once ... of course after I have built/installed and tested them :)

I hope to do that soon but can not promise anything as time is not my ally recently :p

Regards,
vermaden

Latest iRedMail-1.6.3 uses PHP 8.1 on FreeBSD.

Great to heat that.

Thank You!

Regards,
vermaden