Debian 9 with php 7.0 7.4 and 8.1 roundcube not wotking

Discussion in 'ISPConfig 3 Priority Support' started by nmazza, Mar 15, 2022.

  1. nmazza

    nmazza Member HowtoForge Supporter

    Hello,
    After some days ago I have installed php 7.4 and 8.0 for some of my clientes, and after that roundcube not works anymore
    https://www.howtoforge.com/tutorial...nfig-3-from-debian-packages-on-debian-8-and-9

    Today, after apt-get update and upgrade

    Setting up roundcube-core (1.2.3+dfsg.1-4+deb9u10) ...

    Determining localhost credentials from /etc/mysql/debian.cnf: failed (password not equal).

    dbconfig-common: writing config to /etc/dbconfig-common/roundcube.conf
    dbconfig-common: flushing administrative password

    Package apache2 is not configured yet. Will defer actions by package roundcube-core.

    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/apcu.so' - /usr/lib/php/20151012/apcu.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/apc.so' - /usr/lib/php/20151012/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/imagick.so' - /usr/lib/php/20151012/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/memcache.so' - /usr/lib/php/20151012/memcache.so: cannot open shared object file: No such file or directory in Unknown on line 0

    This instance of Roundcube is up-to-date.
    Have fun!

    root@mail:~# grep -Ril "apcu.so" /etc/php
    /etc/php/8.1/cli/conf.d/20-apcu.ini
    /etc/php/8.1/fpm/conf.d/20-apcu.ini
    /etc/php/8.1/cgi/conf.d/20-apcu.ini
    /etc/php/8.1/mods-available/apcu.ini
    /etc/php/7.0/cli/conf.d/20-apcu.ini
    /etc/php/7.0/fpm/conf.d/20-apcu.ini
    /etc/php/7.0/apache2/conf.d/20-apcu.ini
    /etc/php/7.0/cgi/conf.d/20-apcu.ini
    /etc/php/7.0/mods-available/apcu.ini
    /etc/php/7.4/cli/conf.d/20-apcu.ini
    /etc/php/7.4/fpm/conf.d/20-apcu.ini
    /etc/php/7.4/cgi/conf.d/20-apcu.ini
    /etc/php/7.4/mods-available/apcu.ini
    and comment out the line apcu.so extension
    root@mail:~# nano /etc/php/8.1/cli/conf.d/20-apcu.ini
    root@mail:~# nano /etc/php/7.0/cli/conf.d/20-apcu.ini
    root@mail:~# nano /etc/php/7.4/cli/conf.d/20-apcu.ini

    root@mail:~# grep -Ril "apc.so" /etc/php

    /etc/php/7.0/cli/conf.d/20-apcu_bc.ini
    /etc/php/7.0/fpm/conf.d/20-apcu_bc.ini
    /etc/php/7.0/apache2/conf.d/20-apcu_bc.ini
    /etc/php/7.0/cgi/conf.d/20-apcu_bc.ini
    /etc/php/7.0/mods-available/apcu_bc.ini
    /etc/php/7.4/cli/conf.d/25-apcu_bc.ini
    /etc/php/7.4/fpm/conf.d/25-apcu_bc.ini
    /etc/php/7.4/cgi/conf.d/25-apcu_bc.ini
    /etc/php/7.4/mods-available/apcu_bc.ini
    and comment out the line apc.so extension
    root@mail:~# nano /etc/php/7.0/cli/conf.d/20-apcu_bc.ini
    root@mail:~# nano /etc/php/7.4/cli/conf.d/25-apcu_bc.ini

    root@mail:~# grep -Ril "imagick.so" /etc/php
    /etc/php/8.1/cli/conf.d/20-imagick.ini
    /etc/php/8.1/fpm/conf.d/20-imagick.ini
    /etc/php/8.1/cgi/conf.d/20-imagick.ini
    /etc/php/8.1/mods-available/imagick.ini
    /etc/php/7.0/cli/conf.d/20-imagick.ini
    /etc/php/7.0/fpm/conf.d/20-imagick.ini
    /etc/php/7.0/apache2/conf.d/20-imagick.ini
    /etc/php/7.0/cgi/conf.d/20-imagick.ini
    /etc/php/7.0/mods-available/imagick.ini
    and comment out the line imagick.so extension
    root@mail:~# nano /etc/php/8.1/cli/conf.d/20-imagick.ini
    root@mail:~# nano /etc/php/7.0/cli/conf.d/20-imagick.ini

    root@mail:~# grep -Ril "memcache.so" /etc/php
    /etc/php/8.1/cli/conf.d/20-memcache.ini
    /etc/php/8.1/fpm/conf.d/20-memcache.ini
    /etc/php/8.1/cgi/conf.d/20-memcache.ini
    /etc/php/8.1/mods-available/memcache.ini
    /etc/php/7.0/cli/conf.d/20-memcache.ini
    /etc/php/7.0/fpm/conf.d/20-memcache.ini
    /etc/php/7.0/apache2/conf.d/20-memcache.ini
    /etc/php/7.0/cgi/conf.d/20-memcache.ini
    /etc/php/7.0/mods-available/memcache.ini
    and comment out the line memcache.so extension
    root@mail:~# nano /etc/php/8.1/cli/conf.d/20-memcache.ini
    root@mail:~# nano /etc/php/7.0/cli/conf.d/20-memcache.ini

    But Still not working RoundCube Webmail
    for example: https://www.tesauro.com.ar/webmail/
    I'll appreciate your cooperation
    Thanks
    Nestor Mazza
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Take a look into the error.log of the webserver to find out why. The most likely reason in m opinion is that you are using a PHP version that's too new for Roundcube.
     
  3. nmazza

    nmazza Member HowtoForge Supporter

    Hello,
    The error.log in tesauro.com.ar site

    [Wed Mar 16 09:42:51.567836 2022] [proxy_fcgi:error] [pid 14260]
    [client 181.166.141.108:2436] AH01071: Got error 'PHP message: PHP Warning: Undefined global variable $env in /usr/share/roundcube/index.php on line 43PHP message: PHP Warning: Undefined variable $rcmail_config in /usr/share/roundcube/program/lib/Roundcube/rcube_config.php on line 323PHP message: PHP Warning: Undefined variable $rcmail_config in /usr/share/roundcube/program/lib/Roundcube/rcube_config.php on line 323PHP message: PHP Warning: Undefined array key 2 in /usr/share/roundcube/program/lib/Roundcube/rcube_charset.php on line 118PHP message: PHP Warning: Undefined array key "UTF-8" in /usr/share/roundcube/program/lib/Roundcube/rcube_charset.php on line 232PHP message: PHP Warning: Undefined array key "UTF7-IMAP" in /usr/share/roundcube/program/lib/Roundcube/rcube_charset.php on line 233PHP message: PHP Warning: Undefined array key "UTF-8" in /usr/share/roundcube/program/lib/Roundcube/rcube_charset.php on line 232PHP message: PHP Warning: Undefined array key "UTF7-IMAP" in /usr/share/roundcube/program/lib/Roundcube/rcube_charset.php on line 233PHP message: PHP Warning: Undefined array key "UTF-8" in /usr/share/roundcube/program/lib/Roundcube/rcube_charset.php on line 232PHP message: PHP Warning: Undefined array key "UTF7-IMAP" in /usr/share/roundcube/program/lib/Roundcube/rcube_charset.php on line 233PHP message: PHP Warning: Undefined array key "UTF-8" in /usr/share/roundcube/program/lib/Roundcube/rcube_charset.php on line 232PHP message: PHP Warning: Undefined array key "UTF7-IMAP" in /usr/share/roundcube/program/lib/Roundcube/rcube_charset.php on line 233'

    Thanks
    And, the fix to solve this ??
    Nestor
     
  4. nmazza

    nmazza Member HowtoForge Supporter

    Hello, good morning

    Any idea ?
    Thanks
    Nestor Mazza
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    The RoundCube messages are warnings and not errors. Are you able to access RoundCube through the hostname of the server successfully?
     
  6. nmazza

    nmazza Member HowtoForge Supporter

    Hello, good morning
    I modified /etc/roundcube/config.inc.php

    // $config['default_host'] = 'localhost';
    $config['default_host'] = 'mail.sofihacloud.com.ar';

    // $config['smtp_server'] = 'localhost';
    $config['smtp_server'] = 'mail.sofihacloud.com.ar';

    The result is the same, If I'm in right way, not works

    https://www.sofiha.com.ar/webmail/
    La página www.sofiha.com.ar no puede procesar esta solicitud ahora.
    HTTP ERROR 500

    And .. my hotname data ...
    /etc/hostname
    mail
    and hostname -f
    mail.sofihacloud.com.ar

    Thanks
    Nestor Mazza
     
    Last edited: Apr 4, 2022
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    It should be localhost, you should edit the config and change back the server names there. The 500 error should be either in the log file of the website which you use to access RoundCube or in the global webserver error.log file.
     
  8. nmazza

    nmazza Member HowtoForge Supporter

    Yes, it was only a test
     

Share This Page