Admin interface do not works anymore after ispconfig 3.15 upgrade

Discussion in 'ISPConfig 3 Priority Support' started by christian.perego, Nov 13, 2020.

  1. christian.perego

    christian.perego New Member HowtoForge Supporter

    Hi to all,
    I upgraded from ispconfig 3.11 to 3.15 and when I terminated the admin interface stop working. In the apache log I found this messages:

    [fcgid:warn] [pid 1108] (104)Connection reset by peer: [client 10.1.28.228:56862] mod_fcgid: error reading data from FastCGI server
    [core:error] [pid 1108] [client 10.1.28.228:56862] End of script output before headers: index.php

    In my ispconfig-vhost config file I have this section:

    <IfModule mod_fcgid.c>
    DocumentRoot /var/www/ispconfig/
    SuexecUserGroup ispconfig ispconfig
    <Directory /var/www/ispconfig/>
    Options -Indexes +FollowSymLinks +MultiViews +ExecCGI
    AllowOverride AuthConfig Indexes Limit Options FileInfo
    <FilesMatch "\.php$">
    SetHandler fcgid-script
    </FilesMatch>
    FCGIWrapper /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter .php
    Require all granted
    </Directory>
    IPCCommTimeout 7200
    MaxRequestLen 15728640
    </IfModule>

    I do not know how to poceed to fix it. does anyone can help me?
    Execept the ispconfig admin interface seems that everything works fine on the server.
     
    Last edited: Nov 13, 2020
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    What's your OS and PHP version?

    Why not upgrade to 3.2?
     
  3. christian.perego

    christian.perego New Member HowtoForge Supporter

    The SO is Debian 9 and I only run the update script from root, I do not know which version has been installed. But I remenber that the admin interface suggested me 3.15.
     
  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    You can get the version with
    Code:
    php -v
     
  5. christian.perego

    christian.perego New Member HowtoForge Supporter

    Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.33-0+deb9u8, Copyright (c) 1999-2017, by Zend Technologies
     
  6. christian.perego

    christian.perego New Member HowtoForge Supporter

    Just to understand. During the update process IspConfig asks if you want to do a Backup. In this backup is there the ispconfig apache config? If yes where can I find it?
     
  7. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

  8. christian.perego

    christian.perego New Member HowtoForge Supporter

    No, didn't work for me, so I decided to upgrade PHP. Now I have PHP 7.4 installed and working: phpmyadmin works, roundcube works. The ispconfig is at the 3.2 version but the isp config interface do not works. I think that the problem is only a bad 000.ispconfig.vhost config file. Could you please copy here a standard version? How it should be for a debian 9, apache 2.4 and php7.4. Thanks a lot if anyone can help me.
     
  9. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    This is from a Debian 10 test system:
    Code:
    ######################################################
    # This virtual host contains the configuration
    # for the ISPConfig controlpanel
    ######################################################
    
     Listen 8080
    NameVirtualHost *:8080
    
    <VirtualHost _default_:8080>
      ServerAdmin [email protected]
    
      Alias /mail /var/www/ispconfig/mail
    
      <Directory /var/www/ispconfig/>
        <FilesMatch "\.ph(p3?|tml)$">
          SetHandler None
        </FilesMatch>
      </Directory>
      <Directory /usr/local/ispconfig/interface/web/>
        <FilesMatch "\.ph(p3?|tml)$">
          SetHandler None
        </FilesMatch>
      </Directory>
    
      <IfModule mod_fcgid.c>
        DocumentRoot /var/www/ispconfig/
        SuexecUserGroup ispconfig ispconfig
        <Directory /var/www/ispconfig/>
          Options -Indexes +FollowSymLinks +MultiViews +ExecCGI
          AllowOverride AuthConfig Indexes Limit Options FileInfo
          <FilesMatch "\.php$">
            SetHandler fcgid-script
          </FilesMatch>
          FCGIWrapper /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter .php
                Require all granted
              </Directory>
        IPCCommTimeout  7200
        MaxRequestLen 15728640
      </IfModule>
    
      <IfModule mpm_itk_module>
        DocumentRoot /usr/local/ispconfig/interface/web/
        AssignUserId ispconfig ispconfig
        AddType application/x-httpd-php .php
        <Directory /usr/local/ispconfig/interface/web>
          # php_admin_value open_basedir "/usr/local/ispconfig/interface:/usr/share:/tmp"
          Options +FollowSymLinks
          AllowOverride None
                Require all granted
                php_value magic_quotes_gpc        0
        </Directory>
      </IfModule>
    
      # ErrorLog /var/log/apache2/error.log
      # CustomLog /var/log/apache2/access.log combined
      ServerSignature Off
    
      <IfModule mod_security2.c>
        SecRuleEngine Off
      </IfModule>
    
      # SSL Configuration
      SSLEngine On
        SSLProtocol All -SSLv3 -TLSv1 -TLSv1.1
        SSLCertificateFile /usr/local/ispconfig/interface/ssl/ispserver.crt
      SSLCertificateKeyFile /usr/local/ispconfig/interface/ssl/ispserver.key
      #SSLCACertificateFile /usr/local/ispconfig/interface/ssl/ispserver.bundle
    
      SSLCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
      SSLHonorCipherOrder On
       
      <IfModule mod_headers.c>
        # ISPConfig 3.1 currently requires unsafe-line for both scripts and styles, as well as unsafe-eval
        Header set Content-Security-Policy "default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src 'self' data:; object-src 'none'"
        Header set Content-Security-Policy "default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src 'self' data:; object-src 'none'; upgrade-insecure-requests"
        Header set X-Content-Type-Options: nosniff
        Header set X-Frame-Options: SAMEORIGIN
        Header set X-XSS-Protection: "1; mode=block"
        Header always edit Set-Cookie (.*) "$1; HTTPOnly"
        Header always edit Set-Cookie (.*) "$1; Secure"
        <IfVersion >= 2.4.7>
            Header setifempty Strict-Transport-Security "max-age=15768000"
        </IfVersion>
        <IfVersion < 2.4.7>
            Header set Strict-Transport-Security "max-age=15768000"
        </IfVersion>
        RequestHeader unset Proxy early
      </IfModule>
    
        SSLUseStapling On
      SSLStaplingResponderTimeout 5
      SSLStaplingReturnResponderErrors Off
      </VirtualHost>
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    The error in your first post is from PHP and not apache, so it's not very likely that you have an issue with the apache config. Check the global apache error.log file to see which error you get there when you open the ispconfig UI in the browser.
     
    Th0m likes this.

Share This Page