1

Topic: Error 500 if PHP 7.0.1 (Remi)

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 093
- Linux/BSD distribution name and version: CentOS 7.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB 5
- Web server (Apache or Nginx): Apache 2.4.6
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
====
After install on clean my Server have such problem:

If I try to authentificate on Roundcube have "Error 500"

---
php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/apc.so' - /usr/lib64/php/modules/apc.so: undefined symbol: zif_apcu_store in Unknown on line 0
PHP 7.0.1 (cli) (built: Dec 16 2015 15:23:56) ( NTS )
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies

---
yum install php-apc

Package php-pecl-apcu-bc-1.0.0-1.el7.remi.7.0.x86_64 already installed and latest version
Nothing to do

---

----

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

2

Re: Error 500 if PHP 7.0.1 (Remi)

*) does it work if you disable "apc" module?
*) I'm not sure whether Roundcube works with php 7. Any error message in its log file? it logs to Postfix log file /var/log/maillog.

3

Re: Error 500 if PHP 7.0.1 (Remi)

ZhangHuangbin wrote:

*) does it work if you disable "apc" module?
*) I'm not sure whether Roundcube works with php 7. Any error message in its log file? it logs to Postfix log file /var/log/maillog.

Dec 21 20:12:44 centos-7-x64 postfix/postfix-script[1256]: starting the Postfix mail system
Dec 21 20:12:44 centos-7-x64 postfix/master[1258]: daemon started -- version 2.10.1, configuration /etc/postfix
Dec 22 05:35:51 centos-7-x64 postfix/postfix-script[21965]: refreshing the Postfix mail system
Dec 22 05:35:51 centos-7-x64 postfix/master[1258]: reload -- version 2.10.1, configuration /etc/postfix
Dec 22 05:35:51 centos-7-x64 postfix/master[1258]: warning: service smtp: ignoring inet_interfaces change
Dec 22 05:35:51 centos-7-x64 postfix/master[1258]: warning: to change inet_interfaces, stop and start Postfix
Dec 22 05:35:51 centos-7-x64 postfix/master[1258]: warning: service submission: ignoring inet_interfaces change
Dec 22 05:35:51 centos-7-x64 postfix/master[1258]: warning: to change inet_interfaces, stop and start Postfix
Dec 22 05:35:51 centos-7-x64 postfix/master[1258]: warning: service 127.0.0.1:10025: ignoring inet_interfaces change
Dec 22 05:35:51 centos-7-x64 postfix/master[1258]: warning: to change inet_interfaces, stop and start Postfix
Dec 22 12:37:53 myhost clamd[1159]: clamd daemon 0.98.7 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Dec 22 12:37:53 myhost clamd[1159]: Running as user amavis (UID 994, GID 991)
Dec 22 12:37:53 myhost clamd[1159]: Log file size limited to 1048576 bytes.
Dec 22 12:37:53 myhost clamd[1159]: Reading databases from /var/lib/clamav
Dec 22 12:37:53 myhost clamd[1159]: Not loading PUA signatures.
Dec 22 12:37:53 myhost clamd[1159]: Bytecode: Security mode set to "TrustSigned".
Dec 22 12:37:57 myhost amavis[1160]: starting. /usr/sbin/amavisd at myhost.kyiv.ua amavisd-new-2.10.1 (20141025), Unicode aware, LANG="en_US.UTF-8"
Dec 22 12:37:57 myhost postfix/postfix-script[1656]: starting the Postfix mail system
Dec 22 12:37:57 myhost postfix/master[1668]: daemon started -- version 2.10.1, configuration /etc/postfix
Dec 22 12:37:59 myhost amavis[1871]: Net::Server: Group Not Defined.  Defaulting to EGID '991 991'
Dec 22 12:37:59 myhost amavis[1871]: Net::Server: User Not Defined.  Defaulting to EUID '994'
Dec 22 12:37:59 myhost amavis[1871]: Module Amavis::Conf        2.404
Dec 22 12:37:59 myhost amavis[1871]: Module Archive::Zip        1.30
Dec 22 12:37:59 myhost amavis[1871]: Module BerkeleyDB          0.51
Dec 22 12:37:59 myhost amavis[1871]: Module Compress::Raw::Zlib 2.061
Dec 22 12:37:59 myhost amavis[1871]: Module Compress::Zlib      2.061
Dec 22 12:37:59 myhost amavis[1871]: Module Crypt::OpenSSL::RSA 0.28
Dec 22 12:37:59 myhost amavis[1871]: Module DBD::mysql          4.023
Dec 22 12:37:59 myhost amavis[1871]: Module DBI                 1.627
Dec 22 12:37:59 myhost amavis[1871]: Module DB_File             1.83
Dec 22 12:37:59 myhost amavis[1871]: Module Digest::MD5         2.52
Dec 22 12:37:59 myhost amavis[1871]: Module Digest::SHA         5.85
Dec 22 12:37:59 myhost amavis[1871]: Module Encode              2.51
Dec 22 12:37:59 myhost amavis[1871]: Module File::Temp          0.2301
Dec 22 12:37:59 myhost amavis[1871]: Module IO::Socket::INET6   2.69
Dec 22 12:37:59 myhost amavis[1871]: Module IO::Socket::IP      0.21
Dec 22 12:37:59 myhost amavis[1871]: Module MIME::Entity        5.505
Dec 22 12:37:59 myhost amavis[1871]: Module MIME::Parser        5.505
Dec 22 12:37:59 myhost amavis[1871]: Module MIME::Tools         5.505
Dec 22 12:37:59 myhost amavis[1871]: Module Mail::DKIM::Signer  0.39
Dec 22 12:37:59 myhost amavis[1871]: Module Mail::DKIM::Verifier 0.39
Dec 22 12:37:59 myhost amavis[1871]: Module Mail::Header        2.12
Dec 22 12:37:59 myhost amavis[1871]: Module Mail::Internet      2.12
Dec 22 12:37:59 myhost amavis[1871]: Module Mail::SPF           v2.008
Dec 22 12:37:59 myhost amavis[1871]: Module Mail::SpamAssassin  3.004000
Dec 22 12:37:59 myhost amavis[1871]: Module Net::DNS            0.72
Dec 22 12:37:59 myhost amavis[1871]: Module Net::LibIDN         0.12
Dec 22 12:37:59 myhost amavis[1871]: Module Net::Server         2.007
Dec 22 12:37:59 myhost amavis[1871]: Module NetAddr::IP         4.069
Dec 22 12:37:59 myhost amavis[1871]: Module Razor2::Client::Version 2.84
Dec 22 12:37:59 myhost amavis[1871]: Module Scalar::Util        1.27
Dec 22 12:37:59 myhost amavis[1871]: Module Socket              2.010
Dec 22 12:37:59 myhost amavis[1871]: Module Socket6             0.23
Dec 22 12:37:59 myhost amavis[1871]: Module Time::HiRes         1.9725
Dec 22 12:37:59 myhost amavis[1871]: Module URI                 1.60
Dec 22 12:37:59 myhost amavis[1871]: Module Unix::Syslog        1.1
Dec 22 12:37:59 myhost amavis[1871]: Amavis::ZMQ code     NOT loaded
Dec 22 12:37:59 myhost amavis[1871]: Amavis::DB code      loaded
Dec 22 12:37:59 myhost amavis[1871]: SQL base code        loaded
Dec 22 12:37:59 myhost amavis[1871]: SQL::Log code        loaded
Dec 22 12:37:59 myhost amavis[1871]: SQL::Quarantine      loaded
Dec 22 12:37:59 myhost amavis[1871]: Lookup::SQL code     loaded
Dec 22 12:37:59 myhost amavis[1871]: Lookup::LDAP code    NOT loaded
Dec 22 12:37:59 myhost amavis[1871]: AM.PDP-in proto code loaded
Dec 22 12:37:59 myhost amavis[1871]: SMTP-in proto code   loaded
Dec 22 12:37:59 myhost amavis[1871]: Courier proto code   NOT loaded
Dec 22 12:37:59 myhost amavis[1871]: SMTP-out proto code  loaded
Dec 22 12:37:59 myhost amavis[1871]: Pipe-out proto code  NOT loaded
Dec 22 12:37:59 myhost amavis[1871]: BSMTP-out proto code NOT loaded
Dec 22 12:37:59 myhost amavis[1871]: Local-out proto code NOT loaded
Dec 22 12:37:59 myhost amavis[1871]: OS_Fingerprint code  NOT loaded
Dec 22 12:37:59 myhost amavis[1871]: ANTI-VIRUS code      loaded
Dec 22 12:37:59 myhost amavis[1871]: ANTI-SPAM code       loaded
Dec 22 12:37:59 myhost amavis[1871]: ANTI-SPAM-EXT code   NOT loaded
Dec 22 12:37:59 myhost amavis[1871]: ANTI-SPAM-C code     NOT loaded
Dec 22 12:37:59 myhost amavis[1871]: ANTI-SPAM-SA code    loaded
Dec 22 12:37:59 myhost amavis[1871]: Unpackers code       loaded
Dec 22 12:37:59 myhost amavis[1871]: DKIM code            loaded
Dec 22 12:37:59 myhost amavis[1871]: Tools code           NOT loaded
Dec 22 12:37:59 myhost amavis[1871]: Found $file            at /usr/bin/file
Dec 22 12:37:59 myhost amavis[1871]: Found $altermime       at /usr/bin/altermime
Dec 22 12:37:59 myhost amavis[1871]: Internal decoder for .mail
Dec 22 12:37:59 myhost amavis[1871]: Found decoder for    .F    at /usr/bin/unfreeze
Dec 22 12:37:59 myhost amavis[1871]: Found decoder for    .Z    at /usr/bin/gzip -d
Dec 22 12:37:59 myhost amavis[1871]: Found decoder for    .gz   at /usr/bin/gzip -d
Dec 22 12:37:59 myhost amavis[1871]: Found decoder for    .bz2  at /usr/bin/bzip2 -d
Dec 22 12:37:59 myhost amavis[1871]: Found decoder for    .xz   at /usr/bin/xzdec
Dec 22 12:37:59 myhost amavis[1871]: Found decoder for    .lzma at /usr/bin/xz -dc --format=lzma
Dec 22 12:37:59 myhost amavis[1871]: Found decoder for    .lrz  at /usr/bin/lrzip -q -k -d -o -
Dec 22 12:37:59 myhost amavis[1871]: Found decoder for    .lzo  at /usr/bin/lzop -d
Dec 22 12:37:59 myhost amavis[1871]: No ext program for   .lz4, tried: lz4c -d
Dec 22 12:37:59 myhost amavis[1871]: Found decoder for    .rpm  at /usr/bin/rpm2cpio
Dec 22 12:37:59 myhost amavis[1871]: Found decoder for    .cpio at /usr/bin/pax
Dec 22 12:37:59 myhost amavis[1871]: Found decoder for    .tar  at /usr/bin/pax
Dec 22 12:37:59 myhost amavis[1871]: Found decoder for    .deb  at /usr/bin/ar
Dec 22 12:37:59 myhost amavis[1871]: Found decoder for    .rar  at /usr/bin/unrar
Dec 22 12:37:59 myhost amavis[1871]: Found decoder for    .arj  at /usr/bin/unarj
Dec 22 12:37:59 myhost amavis[1871]: Found decoder for    .arc  at /usr/bin/nomarch
Dec 22 12:37:59 myhost amavis[1871]: Found decoder for    .zoo  at /usr/bin/unzoo
Dec 22 12:37:59 myhost amavis[1871]: Found decoder for    .cab  at /usr/bin/cabextract
Dec 22 12:37:59 myhost amavis[1871]: Internal decoder for .tnef
Dec 22 12:37:59 myhost amavis[1871]: Found decoder for    .zip  at /usr/bin/7za
Dec 22 12:37:59 myhost amavis[1871]: Found decoder for    .kmz  at /usr/bin/7za
Dec 22 12:37:59 myhost amavis[1871]: Found decoder for    .7z   at /usr/bin/7za
Dec 22 12:37:59 myhost amavis[1871]: Found decoder for    .jar  at /usr/bin/7z
Dec 22 12:37:59 myhost amavis[1871]: Found decoder for    .swf  at /usr/bin/7z
Dec 22 12:37:59 myhost amavis[1871]: Found decoder for    .lha  at /usr/bin/7z
Dec 22 12:37:59 myhost amavis[1871]: Found decoder for    .iso  at /usr/bin/7z
Dec 22 12:37:59 myhost amavis[1871]: Found decoder for    .exe  at /usr/bin/unrar; /usr/bin/unarj
Dec 22 12:37:59 myhost amavis[1871]: No decoder for       .lz4
Dec 22 12:37:59 myhost amavis[1871]: Using primary internal av scanner code for ClamAV-clamd
Dec 22 12:37:59 myhost amavis[1871]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
Dec 22 12:37:59 myhost amavis[1871]: Deleting db files  in /var/spool/amavisd/db
Dec 22 12:37:59 myhost amavis[1871]: Creating db in /var/spool/amavisd/db/; BerkeleyDB 0.51, libdb 5.3
Dec 22 12:38:18 myhost clamd[1159]: Loaded 4172783 signatures.
Dec 22 12:38:20 myhost clamd[1159]: LOCAL: Unix socket file /var/run/clamd.amavisd/clamd.socket
Dec 22 12:38:20 myhost clamd[1159]: LOCAL: Setting connection queue length to 200
Dec 22 12:38:20 myhost clamd[1159]: Limits: Global size limit set to 104857600 bytes.
Dec 22 12:38:20 myhost clamd[1159]: Limits: File size limit set to 26214400 bytes.
Dec 22 12:38:20 myhost clamd[1159]: Limits: Recursion level limit set to 16.
Dec 22 12:38:20 myhost clamd[1159]: Limits: Files limit set to 10000.
Dec 22 12:38:20 myhost clamd[1159]: Limits: MaxEmbeddedPE limit set to 10485760 bytes.
Dec 22 12:38:20 myhost clamd[1159]: Limits: MaxHTMLNormalize limit set to 10485760 bytes.
Dec 22 12:38:20 myhost clamd[1159]: Limits: MaxHTMLNoTags limit set to 2097152 bytes.
Dec 22 12:38:20 myhost clamd[1159]: Limits: MaxScriptNormalize limit set to 5242880 bytes.
Dec 22 12:38:20 myhost clamd[1159]: Limits: MaxZipTypeRcg limit set to 1048576 bytes.
Dec 22 12:38:20 myhost clamd[1159]: Limits: MaxPartitions limit set to 50.
Dec 22 12:38:20 myhost clamd[1159]: Limits: MaxIconsPE limit set to 100.
Dec 22 12:38:20 myhost clamd[1159]: Archive support enabled.
Dec 22 12:38:20 myhost clamd[1159]: Algorithmic detection enabled.
Dec 22 12:38:20 myhost clamd[1159]: Portable Executable support enabled.
Dec 22 12:38:20 myhost clamd[1159]: ELF support enabled.
Dec 22 12:38:20 myhost clamd[1159]: Mail files support enabled.
Dec 22 12:38:20 myhost clamd[1159]: OLE2 support enabled.
Dec 22 12:38:20 myhost clamd[1159]: PDF support enabled.
Dec 22 12:38:20 myhost clamd[1159]: SWF support enabled.
Dec 22 12:38:20 myhost clamd[1159]: HTML support enabled.
Dec 22 12:38:20 myhost clamd[1159]: Self checking every 600 seconds.
Dec 22 12:42:19 myhost roundcube: PHP Catchable fatal error:  session_regenerate_id(): Failed to create(read) session ID: user (path: /var/lib/php/session) in /var/www/roundcubemail-1.1.3/program/lib/Roundcube/rcube_session.php on line 436
Dec 22 12:48:20 myhost clamd[1159]: No stats for Database check - forcing reload
Dec 22 12:48:21 myhost clamd[1159]: Reading databases from /var/lib/clamav
Dec 22 12:48:40 myhost clamd[1159]: Database correctly reloaded (4172783 signatures)
Dec 22 12:58:40 myhost clamd[1159]: SelfCheck: Database status OK.
Dec 22 13:08:40 myhost clamd[1159]: SelfCheck: Database status OK.
Dec 22 13:18:41 myhost clamd[1159]: SelfCheck: Database status OK.
Dec 22 13:27:37 myhost roundcube: PHP Catchable fatal error:  session_regenerate_id(): Failed to create(read) session ID: user (path: /var/lib/php/session) in /var/www/roundcubemail-1.1.3/program/lib/Roundcube/rcube_session.php on line 436
Dec 22 13:28:41 myhost clamd[1159]: SelfCheck: Database status OK.

4

Re: Error 500 if PHP 7.0.1 (Remi)

kysil wrote:

Dec 22 13:27:37 myhost roundcube: PHP Catchable fatal error:  session_regenerate_id(): Failed to create(read) session ID: user (path: /var/lib/php/session) in /var/www/roundcubemail-1.1.3/program/lib/Roundcube/rcube_session.php on line 436

Not sure whether Roundcube works with PHP 7.
I suggest you ask support in Roundcube mailing list instead.

5

Re: Error 500 if PHP 7.0.1 (Remi)

Only Roundcube 1.2 works with PHP7. We do not plan to work on PHP7 support for previous Roundcube versions. sad

http://www.roundcubeforum.net/index.php … 7#msg62529