1

Topic: Problems in new installation of iRedmail 1.6.2 Rokylinux 9

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.2
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version: rokylinux 9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): NGINX
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I did a clean install of Iredmail 1.6.2 on the ROKYLINUX distro, but when I try to access roundcubemail https://ip_server/mail I get error internal :Oops... something went wrong!
An internal error has occurred. Your request cannot be processed at this time

However, when I access https://ip-server/iredadmin, it accesses me without problems, reviewing the nginx logs I get the following output:


[root@serverca ~]# tail -f /var/log/nginx/error.log
#0 /opt/www/roundcubemail-1.5.3/program/include/iniset.php(93): include_once()
#1 /opt/www/roundcubemail-1.5.3/index.php(43): rcmail_autoload()
#2 {main}
  thrown in /opt/www/roundcubemail-1.5.3/program/include/rcmail.php on line 29" while reading response header from upstream, client: 10.0.0.2, server: _, request: "GET /mail/ HTTP/2.0", upstream: "fastcgi://127.0.0.1:9999", host: "10.0.0.200"
2023/03/09 13:35:25 [error] 343#343: *304 FastCGI sent in stderr: "PHP message: PHP Warning:  preg_match(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in /opt/www/roundcubemail-1.5.3/program/lib/Roundcube/bootstrap.php on line 95PHP message: PHP Warning:  preg_match(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in /opt/www/roundcubemail-1.5.3/program/include/iniset.php on line 85PHP message: PHP Warning:  preg_replace(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in /opt/www/roundcubemail-1.5.3/program/lib/Roundcube/bootstrap.php on line 421PHP message: PHP Fatal error:  Uncaught Error: Class "rcube" not found in /opt/www/roundcubemail-1.5.3/program/include/rcmail.php:29
Stack trace:
#0 /opt/www/roundcubemail-1.5.3/program/include/iniset.php(93): include_once()
#1 /opt/www/roundcubemail-1.5.3/index.php(43): rcmail_autoload()
#2 {main}
  thrown in /opt/www/roundcubemail-1.5.3/program/include/rcmail.php on line 29" while reading response header from upstream, client: 10.0.0.2, server: _, request: "GET /mail/ HTTP/2.0", upstream: "fastcgi://127.0.0.1:9999", host: "10.0.0.200", referrer: "https://10.0.0.200/"

PS: I've been using and installing iRedmail for more than 5 years and I've installed all of them until now that I want to migrate my current rokylinux 8 mail server to rokylinux 9

----

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

2

Re: Problems in new installation of iRedmail 1.6.2 Rokylinux 9

Trying to reproduce the issue locally now, stay tuned.

3

Re: Problems in new installation of iRedmail 1.6.2 Rokylinux 9

Tested with latest development edition and can not reproduce this issue: Roundcube 1.6.1 + php 8.0.27. Roundcube 1.6.1 is the big difference.

Time to release a new version. smile

4

Re: Problems in new installation of iRedmail 1.6.2 Rokylinux 9

I got the same wrong on Roky 9.
    Here are the logs:
[root@mail /opt/www/roundcubemail-1.6.1]# tail -22 /var/log/nginx/error.log
2023/06/27 22:15:30 [error] 1765#1765: *10 FastCGI sent in stderr: "PHP message: PHP Warning:  preg_match(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in /opt/www/roundcubemail-1.6.1/program/lib/Roundcube/bootstrap.php on line 95PHP message: PHP Warning:  preg_match(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in /opt/www/roundcubemail-1.6.1/program/include/iniset.php on line 89PHP message: PHP Warning:  preg_replace(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in /opt/www/roundcubemail-1.6.1/program/lib/Roundcube/bootstrap.php on line 421PHP message: PHP Fatal error:  Uncaught Error: Class "rcube" not found in /opt/www/roundcubemail-1.6.1/program/include/rcmail.php:29
Stack trace:
#0 /opt/www/roundcubemail-1.6.1/program/include/iniset.php(97): include_once()
#1 /opt/www/roundcubemail-1.6.1/index.php(43): rcmail_autoload()
#2 {main}
  thrown in /opt/www/roundcubemail-1.6.1/program/include/rcmail.php on line 29" while reading response header from upstream, client: 1.1.1.1, server: mail.h.cn, request: "GET /mail/ HTTP/2.0", upstream: "fastcgi://127.0.0.1:9999", host: "mail.h.cn"
[root@mail /opt/www/roundcubemail-1.6.1]# php -v
PHP Warning:  PHP Startup: ^(text/|application/xhtml\+xml) (offset=0): unrecognised compile-time option bit(s) in Unknown on line 0
PHP 8.0.27 (cli) (built: Jan  3 2023 16:17:26) ( NTS gcc x86_64 )
Copyright (c) The PHP Group
Zend Engine v4.0.27, Copyright (c) Zend Technologies
[root@mail /opt/www/roundcubemail-1.6.1]#

    What can I do to fix it?

5

Re: Problems in new installation of iRedmail 1.6.2 Rokylinux 9

1.6.1 needs a newer version of PHP, 8.0.27 won't do it

from my own experience, the best and most easy to maintain distro would be debian (debian 12 is supported now!)

you would need to downgrade roundcube to get it working, since 1.6.1 needs a newer PCRE library than 8.0.27 offers

6

Re: Problems in new installation of iRedmail 1.6.2 Rokylinux 9

Greetings to all:

The problem with rokylinux or amalinux 9 is that it is not only necessary to install the epel, baseos or Appstream repo, it is also essential to install the CRB repo (powertool for versions 8)..... I already tried it and it solved the PHP problem.

To install Iredmail you need to have:

baseos                                            Rocky Linux 9 - BaseOS
crb                                               Rocky Linux 9 - CRB
epel                                              Extra Packages for Enterprise Linux 9 - x86_64
epel-next                                         Extra Packages for Enterprise Linux 9 - Next - x86_64
extras                                            Rocky Linux 9 - Extras

dnf install yum-utils
dnf config-manager --set-enabled crb
dnf install epel-release

With these small details I managed to make the reouncubemail work without error when loading.

7

Re: Problems in new installation of iRedmail 1.6.2 Rokylinux 9

Please use the latest iRedMail 1.6.3 instead.