Can not start ISPconfig pannel

Discussion in 'ISPConfig 3 Priority Support' started by muekno, Oct 5, 2023.

  1. muekno

    muekno Active Member HowtoForge Supporter

    Situation customer wir 8 IPv4 Adresses /29
    Internet -> Lancom Router one IP adress ports 80, 443, 8080 -> is redirected to internal debian10 server single 192.168..... adresses
    a second IP adress port 25 is rerouted to same sever
    Server is configured with ispconfig has Postfix as Mailrelay (works fine) a master website domain.tld can be acessed valid lets encrypt key
    there are other web sites www.domain.tld from ispconfig, servername.domain and other_domainname.tld, the last 2 are redirected via ISPconfig to master website. all ca be accessed having their own lets encrypt vallid keys. HSTS is temporary disabled in ispconfig.vhost

    It is the server with the problems from later posts.

    What I did
    gone back to snapshot wehre all was working.
    added sucessfully php 7.4, but apache did not start as bevor, found the was an old PHP 6.0 module enabled in apache but no file. disabled that module, apache starts fine websites are working, but ispconfig (Version 3.2.11 installed since available) does not start, certificate problem, ignoring not possible case HSTS, so disabled HSTS. tried again http 500.
    Tried force reinstall ispconfig with and witout generating cerificate, no success. the links in /usr/local/ispconfig/interface/ssl are pointing to the servername.domain.tld vallid cerificate.
    I am out of anny ideas, need help (server is still debian 10)
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  3. muekno

    muekno Active Member HowtoForge Supporter

    Code:
    cat htf_report.txt | more
    
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Debian GNU/Linux 10 (buster)
    
    [INFO] uptime:  16:05:17 up 2 days, 23:25,  1 user,  load avera
    ge: 0.21, 0.10, 0.03
    
    [INFO] memory:
                  total        used        free      shared  buff/c
    ache   available
    Mem:          7.8Gi       2.0Gi       3.1Gi        95Mi       2
    .6Gi       5.3Gi
    Swap:         8.0Gi          0B       8.0Gi
    
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.2.11
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 8.2.10
    [INFO] php-cgi (used for cgi php in default vhost!) is version 7.4.33
    
    ##### PORT CHECK #####
    
    
    ##### MAIL SERVER CHECK #####
    
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
            Apache 2 (PID 20329)
    [INFO] I found the following mail server(s):
            Postfix (PID 24978)
    [INFO] I found the following pop3 server(s):
            Dovecot (PID 25023)
    [INFO] I found the following imap server(s):
            Dovecot (PID 25023)
    [INFO] I found the following ftp server(s):
            PureFTP (PID 25139)
    
    ##### LISTENING PORTS #####
    (only           ()
    Local           (Address)
    [anywhere]:995          (25023/dovecot)
    [localhost]:10023               (667/postgrey)
    [localhost]:10024               (25013/amavisd-new)
    [localhost]:10025               (24978/master)
    [localhost]:10026               (25013/amavisd-new)
    [localhost]:10027               (24978/master)
    [anywhere]:587          (24978/master)
    [localhost]:11211               (581/memcached)
    [anywhere]:110          (25023/dovecot)
    [anywhere]:143          (25023/dovecot)
    [anywhere]:8080         (20329/apache2)
    [anywhere]:80           (20329/apache2)
    [anywhere]:8081         (20329/apache2)
    [anywhere]:465          (24978/master)
    ***.***.***.***:53              (25149/named)
    [localhost]:53          (25149/named)
    [anywhere]:21           (25139/pure-ftpd)
    [anywhere]:22           (610/sshd)
    [localhost]:953         (25149/named)
    [anywhere]:25           (24978/master)
    [anywhere]:443          (20329/apache2)
    [anywhere]:993          (25023/dovecot)
    *:*:*:*::*:995          (25023/dovecot)
    *:*:*:*::*:10023                (667/postgrey)
    *:*:*:*::*:3306         (24617/mysqld)
    *:*:*:*::*:587          (24978/master)
    [localhost]10           (25023/dovecot)
    [localhost]43           (25023/dovecot)
    *:*:*:*::*:465          (24978/master)
    *:*:*:*::*:53           (25149/named)
    *:*:*:*::*:21           (25139/pure-ftpd)
    *:*:*:*::*:22           (610/sshd)
    *:*:*:*::*:25           (24978/master)
    *:*:*:*::*:993          (25023/dovecot)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination        
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination        
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination        
    
    
    
    
    ##### LET'S ENCRYPT #####
    Certbot is installed in /usr/bin/certbot
    
    Code:
    root@me-web:~# ifconfig
    ens32: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 192.168.100.21  netmask 255.255.255.0  broadcast 192.168.100.255
            ether 00:0c:29:b9:17:0d  txqueuelen 1000  (Ethernet)
            RX packets 2047719  bytes 340365211 (324.5 MiB)
            RX errors 0  dropped 11  overruns 0  frame 0
            TX packets 1302821  bytes 269126439 (256.6 MiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
            inet 127.0.0.1  netmask 255.0.0.0
            loop  txqueuelen 1000  (Local Loopback)
            RX packets 202002  bytes 178961056 (170.6 MiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 202002  bytes 178961056 (170.6 MiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    Code:
    lsb_release
    No LSB modules are available.
    root@me-web:~# lsb_release -a
    No LSB modules are available.
    Distributor ID: Debian
    Description:    Debian GNU/Linux 10 (buster)
    Release:        10
    Codename:       buster
    
    Code:
    php -v
    PHP 8.2.10 (cli) (built: Sep  4 2023 08:13:17) (NTS)
    Copyright (c) The PHP Group
    Zend Engine v4.2.10, Copyright (c) Zend Technologies
        with Zend OPcache v8.2.10, Copyright (c), by Zend Technologies
    
    All lets Encrpyt certificates are valid
     
    Last edited by a moderator: Oct 5, 2023
  4. muekno

    muekno Active Member HowtoForge Supporter

    additional information
    Postfix is only user as mailrelay, no POP3, IMAP or local mailboxes are used. ftp ist not used too.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Most likely you uninstalled some PHP modules which now cause the 500 error. See apache error.log, it will show you which modules are missing. or use matching perfect server guide for your OS version to install all required php modules again.
     
  6. muekno

    muekno Active Member HowtoForge Supporter

    I did a update/upgrade and number8, 9, and 10
    all module have been installed, no new modules.
    When I try https://domain.tld:8080 I get a certificate error, the valid certificate is for servername.domain.tld, if I accept this is I get the 500 error
    When I try https://servername.domain.tld:8080 I get the 500 error at once

    latest apache error log trieing to start ispconfig
    Code:
    [Thu Oct 05 16:47:18.280554 2023] [fcgid:warn] [pid 905] [client 62.54.177.160:58119] mod_fcgid: stderr:   thrown in /usr/local/ispconfig/interface/lib/classes/db_mysql.inc.php on line 83
    [Thu Oct 05 16:54:00.652281 2023] [fcgid:warn] [pid 909] [client 62.54.177.160:58135] mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: Call to undefined function mysqli_init() in /usr/local/ispconfig/interface/lib/classes/db_mysql.inc.php:83
    [Thu Oct 05 16:54:00.652434 2023] [fcgid:warn] [pid 909] [client 62.54.177.160:58135] mod_fcgid: stderr: Stack trace:
    [Thu Oct 05 16:54:00.652452 2023] [fcgid:warn] [pid 909] [client 62.54.177.160:58135] mod_fcgid: stderr: #0 /usr/local/ispconfig/interface/lib/app.inc.php(70): db->__construct()
    [Thu Oct 05 16:54:00.652469 2023] [fcgid:warn] [pid 909] [client 62.54.177.160:58135] mod_fcgid: stderr: #1 /usr/local/ispconfig/interface/lib/app.inc.php(405): app->__construct()
    [Thu Oct 05 16:54:00.652485 2023] [fcgid:warn] [pid 909] [client 62.54.177.160:58135] mod_fcgid: stderr: #2 /usr/local/ispconfig/interface/web/index.php(32): require_once('/usr/local/ispc...')
    [Thu Oct 05 16:54:00.652502 2023] [fcgid:warn] [pid 909] [client 62.54.177.160:58135] mod_fcgid: stderr: #3 {main}
    [Thu Oct 05 16:54:00.652518 2023] [fcgid:warn] [pid 909] [client 62.54.177.160:58135] mod_fcgid: stderr:   thrown in /usr/local/ispconfig/interface/lib/classes/db_mysql.inc.php on line 83
    [Thu Oct 05 16:54:39.283618 2023] [fcgid:warn] [pid 907] [client 62.54.177.160:58138] mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: Call to undefined function mysqli_init() in /usr/local/ispconfig/interface/lib/classes/db_mysql.inc.php:83
    [Thu Oct 05 16:54:39.283697 2023] [fcgid:warn] [pid 907] [client 62.54.177.160:58138] mod_fcgid: stderr: Stack trace:
    [Thu Oct 05 16:54:39.283715 2023] [fcgid:warn] [pid 907] [client 62.54.177.160:58138] mod_fcgid: stderr: #0 /usr/local/ispconfig/interface/lib/app.inc.php(70): db->__construct()
    [Thu Oct 05 16:54:39.283731 2023] [fcgid:warn] [pid 907] [client 62.54.177.160:58138] mod_fcgid: stderr: #1 /usr/local/ispconfig/interface/lib/app.inc.php(405): app->__construct()
    [Thu Oct 05 16:54:39.283748 2023] [fcgid:warn] [pid 907] [client 62.54.177.160:58138] mod_fcgid: stderr: #2 /usr/local/ispconfig/interface/web/index.php(32): require_once('/usr/local/ispc...')
    [Thu Oct 05 16:54:39.283764 2023] [fcgid:warn] [pid 907] [client 62.54.177.160:58138] mod_fcgid: stderr: #3 {main}
    [Thu Oct 05 16:54:39.283780 2023] [fcgid:warn] [pid 907] [client 62.54.177.160:58138] mod_fcgid: stderr:   thrown in /usr/local/ispconfig/interface/lib/classes/db_mysql.inc.php on line 83
    
    Yes I am working from remote, never had problems with that system since years.
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    The PHP mysql (or on later versions its named mysqli) module is not installed for the system PHP version.
     
  8. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    You have changed system default PHP version, this may be cause of missing PHP modules, i.e. they are not installed for the now used PHP version.
    Plus, on Debian 10 default PHP version is 7.3, and neither of the shown PHP versions is original default. ISPConfig supports only the OS default PHP version.
     
  9. muekno

    muekno Active Member HowtoForge Supporter

    Thanks for all the help, I will go back to snaphshot again, and try to set the system to a consistant state. The system was set up some years ago following Tims tutorials, with Debin 8 in text mode, then ist was keep up to date in am monthly mannor. Following upgrade to Debian 9, without any problem, the same some time later upgrade to Debian 10.
    I think there might be some old files makeing the problems now. I think a have to clean that up.

    Kind Regards
    Rainer
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    That's not needed, you just have to set the system php version, which you changed, back to the correct version. See 'Panel not showing up' in read before posting post: https://forum.howtoforge.com/threads/please-read-before-posting.58408/
     
    muekno likes this.
  11. muekno

    muekno Active Member HowtoForge Supporter

    Perfect, that was a really good help.
    Thank you

    Kind Regards
    Rainer
     

Share This Page