Topic: [SOLVED] After PHP 7.4 upgrade Roundcube gives HTTP ERROR 500
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.2
- Deployed with iRedMail Easy or the downloadable installer? Upgraded from previous version installed by downloadable installer.
- Linux/BSD distribution name and version: Ubuntu 18.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? iRedAdmin
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello, I have upgraded to PHP 7.4 and all is well. iRedAdmin is working well but after reboot to check I found that Roundcube is not working anymore. It was working before the reboot.
I've searched and checked the configurations, but cannot find the issue.
I'm sure it's simple due the to PHP upgrade but can't find it.
Any ideas are welcome, thank you.
Greg
ADDED 20 Dec - I'm having trouble deciphering this log file. Using port 4434 deliberately, iRedAdmin runs fine on this port. (also Roundcube is V1.4.9 I didn't change the folder name when upgrading)
2020/12/20 10:32:04 [error] 10188#10188: *4 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function mb_internal_encoding() in /opt/www/roundcubemail-1.4.7/program/lib/Roundcube/bootstrap.php:86
Stack trace:
#0 /opt/www/roundcubemail-1.4.7/program/include/iniset.php(62): require_once()
#1 /opt/www/roundcubemail-1.4.7/index.php(40): require_once('/opt/www/roundc...')
#2 {main}
thrown in /opt/www/roundcubemail-1.4.7/program/lib/Roundcube/bootstrap.php on line 86" while reading response header from upstream, client: 45.248.78.164, server: _, request: "GET /mail/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9999", host: "XXX.XXX.XXX.XX:4434"
This is line 86 of bootstrap.php mb_internal_encoding(RCUBE_CHARSET);Here is the result of php -m wrote:# php -m
[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
hash
iconv
imagick
imap
intl
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
xsl
Zend OPcache
zip
zlib[Zend Modules]
Zend OPcachelogs wrote:php-fpm
127.0.0.1 - 20/Dec/2020:11:44:25 +1100 "GET /mail/index.php" 500
127.0.0.1 - 20/Dec/2020:11:48:41 +1100 "GET /mail/index.php" 500
127.0.0.1 - 20/Dec/2020:11:49:05 +1100 "GET /mail/index.php" 500
php7.5-fpm
[20-Dec-2020 12:03:23] NOTICE: fpm is running, pid 12774
[20-Dec-2020 12:03:23] NOTICE: ready to handle connections
[20-Dec-2020 12:03:23] NOTICE: systemd monitor interval set to 10000ms
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.