[SOLVED] Roundcube stops working

Discussion in 'Installation/Configuration' started by kasproso, May 29, 2020.

  1. kasproso

    kasproso New Member

    Evening
    I have a strange issue and I have try all options that I have on my mind, but nothing works. I have a multiserver installation of ISPConfig 3 + roudcube from this guide https://www.howtoforge.com/using-roundcube-webmail-with-ispconfig-3-on-debian-wheezy-apache2
    Everything works fine, till last week when after login to webmail, each time I got ERROR 500. I may have a clue why it's stop workimg. Last week I have try to enable HTTP/2 protocome by enabling mod_http2 and mpm_worker or mpm_event. Therefor I have to disable mod_php. However each time that I have try to do that, everything stops working. sites or ispconfig. So after many tries, I just give up. I have rollback changes, but realize that webmail is not working now.
    The symptoms are. Login page is displayed but after trying to login, got error 500
    Code:
    [29-May-2020 22:31:53 Europe/London] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/share/roundcube/program/lib/Roundcube/rcube_plugin_api.php on line 438
    [29-May-2020 22:31:53 Europe/London] PHP Deprecated:  Function create_function() is deprecated in /usr/share/roundcube/program/include/rcmail_output_html.php on line 978
    [29-May-2020 22:31:53 Europe/London] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/share/roundcube/program/lib/Roundcube/rcube_plugin_api.php on line 438
    [29-May-2020 22:31:53 Europe/London] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/share/roundcube/program/lib/Roundcube/rcube_plugin_api.php on line 438
    [29-May-2020 22:31:53 Europe/London] PHP Deprecated:  Function create_function() is deprecated in /usr/share/roundcube/program/include/rcmail_output_html.php on line 978
    [29-May-2020 22:31:53 Europe/London] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/share/roundcube/program/lib/Roundcube/rcube_plugin_api.php on line 438
    [29-May-2020 22:31:53 Europe/London] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/share/roundcube/program/lib/Roundcube/rcube_plugin_api.php on line 438
    [29-May-2020 22:31:53 Europe/London] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/share/roundcube/program/lib/Roundcube/rcube_plugin_api.php on line 438
    [29-May-2020 22:31:53 Europe/London] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/share/roundcube/program/lib/Roundcube/rcube_plugin_api.php on line 438
    [29-May-2020 22:31:53 Europe/London] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/share/roundcube/program/lib/Roundcube/rcube_plugin_api.php on line 438
    [29-May-2020 22:31:53 Europe/London] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/share/roundcube/program/lib/Roundcube/rcube_plugin_api.php on line 438
    [29-May-2020 22:31:53 Europe/London] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/share/roundcube/program/lib/Roundcube/rcube_plugin_api.php on line 438
    [29-May-2020 22:31:53 Europe/London] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/share/roundcube/program/lib/Roundcube/rcube_plugin_api.php on line 438
    roundcube.conf looks like this
    Code:
    Alias /webmail /var/lib/roundcube
    
    <Directory /var/lib/roundcube/>
      Options +FollowSymLinks
      # This is needed to parse /var/lib/roundcube/.htaccess. See its
      # content before setting AllowOverride to None.
      DirectoryIndex index.php
    
      <IfModule mod_php5.c>
        AddType application/x-httpd-php .php
    
        php_flag magic_quotes_gpc Off
        php_flag track_vars On
        php_flag register_globals Off
        php_value include_path .:/usr/share/php
      </IfModule>
     AllowOverride All
      <IfVersion >= 2.3>
        Require all granted
      </IfVersion>
      <IfVersion < 2.3>
        Order allow,deny
        Allow from all
      </IfVersion>
    </Directory>
    
    # Protecting basic directories:
    <Directory /var/lib/roundcube/config>
            Options -FollowSymLinks
            AllowOverride None
    </Directory>
    
    <Directory /var/lib/roundcube/temp>
            Options -FollowSymLinks
            AllowOverride None
            <IfVersion >= 2.3>
              Require all denied
            </IfVersion>
            <IfVersion < 2.3>
              Order allow,deny
              Deny from all
            </IfVersion>
    </Directory>
    
    <Directory /var/lib/roundcube/logs>
            Options -FollowSymLinks
            AllowOverride None
            <IfVersion >= 2.3>
              Require all denied
            </IfVersion>
            <IfVersion < 2.3>
              Order allow,deny
              Deny from all
            </IfVersion>
    </Directory>
    Apache loaded modules
    Code:
    Loaded Modules:
     core_module (static)
     so_module (static)
     watchdog_module (static)
     http_module (static)
     log_config_module (static)
     logio_module (static)
     version_module (static)
     unixd_module (static)
     access_compat_module (shared)
     actions_module (shared)
     alias_module (shared)
     auth_basic_module (shared)
     auth_digest_module (shared)
     authn_core_module (shared)
     authn_file_module (shared)
     authz_core_module (shared)
     authz_host_module (shared)
     authz_user_module (shared)
     autoindex_module (shared)
     cgi_module (shared)
     dav_module (shared)
     dav_fs_module (shared)
     deflate_module (shared)
     dir_module (shared)
     env_module (shared)
     fcgid_module (shared)
     filter_module (shared)
     headers_module (shared)
     include_module (shared)
     mime_module (shared)
     mpm_prefork_module (shared)
     negotiation_module (shared)
     passenger_module (shared)
     php5_module (shared)
     proxy_module (shared)
     proxy_fcgi_module (shared)
     python_module (shared)
     reqtimeout_module (shared)
     rewrite_module (shared)
     ruid2_module (shared)
     security2_module (shared)
     setenvif_module (shared)
     socache_shmcb_module (shared)
     ssl_module (shared)
     status_module (shared)
     suexec_module (shared)
     unique_id_module (shared)
    So my understand is, that for some reason when Roundcube is served apache is using php-fpm instead of mod_php. However I don't know why and I have no idea what I'm doing wrong.

    Any clue where should I check else? I would be grateful for any advice.

    Thank you
     
  2. Steini86

    Steini86 Active Member

    Last edited: May 31, 2020
  3. Jesse Norell

    Jesse Norell ISPConfig Developer ISPConfig Developer

    After disabling mod_php, did you enable a different php interpreter as the default? eg. run 'a2enconf php7.3-fpm' for debian 10. FWIW, I've been running with mod_php uninstalled for probably 2-3 years now, without a single (known?) issue; roundcube and phpmyadmin work fine installed per the perfect server tutorials. (Though you can go the subdomain route for more flexibility if you want.)
     
  4. kasproso

    kasproso New Member

    Yes I did, I have enable php7.3-fpm for sure. But after this change, php fpm crushes. I will need do analyze that latter.

    Thank you Steini86, I will fallow up this thred
     
  5. kasproso

    kasproso New Member

    Ok I have manage to resolve the issue. I have fallow up this instructions
    https://www.howtoforge.com/communit...be-enigma-munin-phpmyadmin-aliases-fix.77489/
    But this doesn't work. Still got 500 error after login. But I noticed one thing in error log
    Code:
    PHP Fatal error:  Class 'Net_IDNA2' not found in /usr/share/roundcube/program/lib/Roundcube/bootstrap.php on line 405
    Apparently php-net-idna2 package was missed from my system. For some reason. Installing it, solves the problem.
     
    Jesse Norell likes this.

Share This Page