Hello, OS: Debian 9.13, Apache 2 I have just upgraded my ISPConfig with default settings, as I usually do. Unfortunately, instead of standard login page, I saw 500 Internal Server Error Apache screen. I have checked my Apache logs and they look like this (tail -f): [Sun Nov 08 10:21:32.534634 2020] [core:error] [pid 27127] [client 89.77.211.XXX:63899] End of script output before headers: index.php .php-fcgi-starter: line 6: /usr/bin/php-cgi7.0: No such file or directory [Sun Nov 08 10:23:28.176230 2020] [fcgid:warn] [pid 27358] (104)Connection reset by peer: [client 89.77.211.XXX:60717] mod_fcgid: error reading data from FastCGI server [Sun Nov 08 10:23:28.176289 2020] [core:error] [pid 27358] [client 89.77.211.XXX:60717] End of script output before headers: index.php .php-fcgi-starter: line 6: /usr/bin/php-cgi7.0: No such file or directory [Sun Nov 08 10:23:35.701094 2020] [fcgid:warn] [pid 27338] (104)Connection reset by peer: [client 89.77.211.XXX:60724] mod_fcgid: error reading data from FastCGI server [Sun Nov 08 10:23:35.701147 2020] [core:error] [pid 27338] [client 89.77.211.XXX:60724] End of script output before headers: index.php .php-fcgi-starter: line 6: /usr/bin/php-cgi7.0: No such file or directory [Sun Nov 08 10:23:37.882016 2020] [fcgid:warn] [pid 27132] (104)Connection reset by peer: [client 89.77.211.XXX:60723] mod_fcgid: error reading data from FastCGI server [Sun Nov 08 10:23:37.882068 2020] [core:error] [pid 27132] [client 89.77.211.XXX:60723] End of script output before headers: index.php What has happened and how can I fix this? All webistes and PHPmyadmin work well, I just cannot login into ISPConfig.
Hello. Just installed PHP 7 CGI package. Got more errors with tail -f: [Sun Nov 08 10:53:17.676513 2020] [fcgid:warn] [pid 4642] [client 89.77.211.XXX:62260] mod_fcgid: stderr: #2 /usr/local/ispconfig/interface/web/index.php(32): require_once('/usr/local/ispc...') [Sun Nov 08 10:53:17.676515 2020] [fcgid:warn] [pid 4642] [client 89.77.211.XXX:62260] mod_fcgid: stderr: #3 {main} [Sun Nov 08 10:53:17.676518 2020] [fcgid:warn] [pid 4642] [client 89.77.211.XXX:62260] mod_fcgid: stderr: thrown in /usr/local/ispconfig/interface/lib/classes/db_mysql.inc.php on line 83 [Sun Nov 08 10:53:22.606906 2020] [fcgid:warn] [pid 4647] [client 89.77.211.XXX:62268] 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 [Sun Nov 08 10:53:22.606945 2020] [fcgid:warn] [pid 4647] [client 89.77.211.XXX:62268] mod_fcgid: stderr: Stack trace: [Sun Nov 08 10:53:22.606954 2020] [fcgid:warn] [pid 4647] [client 89.77.211.XXX:62268] mod_fcgid: stderr: #0 /usr/local/ispconfig/interface/lib/app.inc.php(66): db->__construct() [Sun Nov 08 10:53:22.606962 2020] [fcgid:warn] [pid 4647] [client 89.77.211.XXX:62268] mod_fcgid: stderr: #1 /usr/local/ispconfig/interface/lib/app.inc.php(392): app->__construct() [Sun Nov 08 10:53:22.606970 2020] [fcgid:warn] [pid 4647] [client 89.77.211.XXX:62268] mod_fcgid: stderr: #2 /usr/local/ispconfig/interface/web/index.php(32): require_once('/usr/local/ispc...') [Sun Nov 08 10:53:22.606977 2020] [fcgid:warn] [pid 4647] [client 89.77.211.XXX:62268] mod_fcgid: stderr: #3 {main} [Sun Nov 08 10:53:22.606984 2020] [fcgid:warn] [pid 4647] [client 89.77.211.XXX:62268] mod_fcgid: stderr: thrown in /usr/local/ispconfig/interface/lib/classes/db_mysql.inc.php on line 83 Something is definitely wrong...
Yes, many PHP packages are missing. I wonder how your system worked before as any older ISPConfig version required the same packages. Install the missing packages with this command: apt-get -y install php7.0 php7.0-common php7.0-gd php7.0-mysql php7.0-imap php7.0-cli php7.0-cgi php-pear php7.0-mcrypt php7.0-curl php7.0-intl php7.0-pspell php7.0-recode php7.0-sqlite3 php7.0-tidy php7.0-xmlrpc php7.0-xsl php7.0-zip php7.0-mbstring php7.0-soap
Awesome, thanks! My ISPConfig works again. Yes, I also wonder what happened and how it worked before. Could be that PHP 7.0 got accidentally removed during the last system upgrade. Anyway - now I know what was the reason for the 500 error. BTW: What is the best PHP version for ISPConfig 3.2 and which configuration file defines it?
Keep the system php version the same as what ships with your OS version; the settings for that are under server config. Then you add additional php versions for any other versions which you want to use for your websites.
I am messed... Same issue, same debian... After upgrading ISPCONFIG Multi (main) from ISPCONFIG 3.1.latest to 3.2 first server fatal error. Than I installed all missing PHP for 7.0/7.1/7.2/7.3 none of this is working. Now /usr/bin/php --version PHP 7.2.34-8+0~20201103.52+debian9~1.gbpafa084 (cli) (built: Nov 3 2020 14:33:21) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.34-8+0~20201103.52+debian9~1.gbpafa084, Copyright (c) 1999-2018, by Zend Technologies I am trying to access :8080 panel from different domains with different PHP... without success... Here are my logs [Mon Nov 16 21:12:09.510850 2020] [ssl:error] [pid 6914:tid 140307211462400] AH01941: stapling_renew_response: responder error [Mon Nov 16 21:12:09.555847 2020] [fcgid:warn] [pid 6914:tid 140307211462400] [client XX.XX.XX.XX:59629] 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 [Mon Nov 16 21:12:09.555889 2020] [fcgid:warn] [pid 6914:tid 140307211462400] [client XX.XX.XX.XX:59629] mod_fcgid: stderr: Stack trace: [Mon Nov 16 21:12:09.555892 2020] [fcgid:warn] [pid 6914:tid 140307211462400] [client XX.XX.XX.XX:59629] mod_fcgid: stderr: #0 /usr/local/ispconfig/interface/lib/app.inc.php(66): db->__construct() [Mon Nov 16 21:12:09.555895 2020] [fcgid:warn] [pid 6914:tid 140307211462400] [client XX.XX.XX.XX:59629] mod_fcgid: stderr: #1 /usr/local/ispconfig/interface/lib/app.inc.php(392): app->__construct() [Mon Nov 16 21:12:09.555897 2020] [fcgid:warn] [pid 6914:tid 140307211462400] [client XX.XX.XX.XX:59629] mod_fcgid: stderr: #2 /usr/local/ispconfig/interface/web/index.php(32): require_once('/usr/local/ispc...') [Mon Nov 16 21:12:09.555913 2020] [fcgid:warn] [pid 6914:tid 140307211462400] [client XX.XX.XX.XX:59629] mod_fcgid: stderr: #3 {main} [Mon Nov 16 21:12:09.555915 2020] [fcgid:warn] [pid 6914:tid 140307211462400] [client XX.XX.XX.XX:59629] mod_fcgid: stderr: thrown in /usr/local/ispconfig/interface/lib/classes/db_mysql.inc.php on line 83 This is main interface to run all settings for multiserver. So now It is not accessible. I need to fix it fast. I dont want to rollback to backups because I got one node with ISP 3.2 installed and I cannot setup PHP_FPM from old panel... so i tried to upgrade main... Waiting for Your kindly reply, Maciej
I changed version for system PHP i rebooted server and after few minutes got panel working.... OMG. Heart attack... double check: update-alternatives --config php update-alternatives --config php-cgi and reboot server.
Good morning all I have the same probleme , but no solution works. here is my htf report. please help ##### SERVER ##### IP-address (as per hostname): ***.***.***.*** [WARN] could not determine server's ip address by ifconfig [INFO] OS version is Debian GNU/Linux 9.13 (stretch) [INFO] uptime: 20:32:40 up 1 day, 19:51, 1 user, load average: 0,07, 0,10, 0,09 [INFO] memory: total used free shared buff/cache available Mem: 15G 10G 1,1G 76M 4,3G 5,3G Swap: 1,0G 580K 1,0G [INFO] ISPConfig is installed. ##### ISPCONFIG ##### ISPConfig version is 3.2.2 ##### VERSION CHECK ##### [INFO] php (cli) version is 7.0.33-40+0~20210213.48+debian9~1.gbpc26c46 ##### PORT CHECK ##### [WARN] Port 21 (FTP server) seems NOT to be listening ##### MAIL SERVER CHECK ##### ##### RUNNING SERVER PROCESSES ##### [INFO] I found the following web server(s): Apache 2 (PID 821) [INFO] I found the following mail server(s): Postfix (PID 8391) [INFO] I found the following pop3 server(s): Dovecot (PID 8432) [INFO] I found the following imap server(s): Dovecot (PID 8432) [WARN] I could not determine which ftp server is running. ##### LISTENING PORTS ##### (seulement () Adresse (distante) [anywhere]:143 (8432/dovecot) [anywhere]:465 (8391/master) ***.***.***.***:53 (8475/named) [localhost]:53 (8475/named) [anywhere]:22 (978/sshd) [localhost]:953 (8475/named) [anywhere]:25 (8391/master) [anywhere]:993 (8432/dovecot) [anywhere]:995 (8432/dovecot) [localhost]:10024 (8423/amavisd-new) [localhost]:10025 (8391/master) [localhost]:10026 (8423/amavisd-new) [localhost]:3306 (8194/mariadbd) [localhost]:10027 (8391/master) [anywhere]:587 (8391/master) [localhost]:11211 (918/memcached) [anywhere]:110 (8432/dovecot) [localhost]43 (8432/dovecot) *:*:*:*::*:8080 (821/apache2) *:*:*:*::*:80 (821/apache2) [localhost]:9200 (920/java) *:*:*:*::*:9200 (920/java) *:*:*:*::*:8081 (821/apache2) *:*:*:*::*:465 (8391/master) [localhost]:9300 (920/java) *:*:*:*::*:9300 (920/java) *:*:*:*::*:53 (8475/named) *:*:*:*::*:22 (978/sshd) *:*:*:*::*:953 (8475/named) *:*:*:*::*:25 (8391/master) *:*:*:*::*:443 (821/apache2) *:*:*:*::*:993 (8432/dovecot) *:*:*:*::*:995 (8432/dovecot) *:*:*:*::*:10024 (8423/amavisd-new) *:*:*:*::*:10026 (8423/amavisd-new) *:*:*:*::*:587 (8391/master) [localhost]10 (8432/dovecot) ##### IPTABLES ##### Chain INPUT (policy DROP) target prot opt source destination f2b-pureftpd tcp -- [anywhere]/0 [anywhere]/0 multiport dports 21 f2b-dovecot-pop3imap tcp -- [anywhere]/0 [anywhere]/0 multiport dports 110,995,143,993 f2b-squirrelmail tcp -- [anywhere]/0 [anywhere]/0 multiport dports 80,443 f2b-postfix tcp -- [anywhere]/0 [anywhere]/0 multiport dports 25,465,587 f2b-sshd tcp -- [anywhere]/0 [anywhere]/0 multiport dports 22 DROP tcp -- [anywhere]/0 ***.***.***.***/8 ACCEPT all -- [anywhere]/0 [anywhere]/0 state RELATED,ESTABLISHED ACCEPT all -- [anywhere]/0 [anywhere]/0 DROP all -- ***.***.***.***/4 [anywhere]/0 PUB_IN all -- [anywhere]/0 [anywhere]/0 PUB_IN all -- [anywhere]/0 [anywhere]/0 PUB_IN all -- [anywhere]/0 [anywhere]/0 PUB_IN all -- [anywhere]/0 [anywhere]/0 PUB_IN all -- [anywhere]/0 [anywhere]/0 PUB_IN all -- [anywhere]/0 [anywhere]/0 DROP all -- [anywhere]/0 [anywhere]/0 Chain FORWARD (policy DROP) target prot opt source destination ACCEPT all -- [anywhere]/0 [anywhere]/0 state RELATED,ESTABLISHED DROP all -- [anywhere]/0 [anywhere]/0 Chain OUTPUT (policy ACCEPT) target prot opt source destination PUB_OUT all -- [anywhere]/0 [anywhere]/0 PUB_OUT all -- [anywhere]/0 [anywhere]/0 PUB_OUT all -- [anywhere]/0 [anywhere]/0 PUB_OUT all -- [anywhere]/0 [anywhere]/0 PUB_OUT all -- [anywhere]/0 [anywhere]/0 PUB_OUT all -- [anywhere]/0 [anywhere]/0 Chain INT_IN (0 references) target prot opt source destination ACCEPT icmp -- [anywhere]/0 [anywhere]/0 DROP all -- [anywhere]/0 [anywhere]/0 Chain INT_OUT (0 references) target prot opt source destination ACCEPT icmp -- [anywhere]/0 [anywhere]/0 ACCEPT all -- [anywhere]/0 [anywhere]/0 Chain PAROLE (21 references) target prot opt source destination ACCEPT all -- [anywhere]/0 [anywhere]/0 Chain PUB_IN (6 references) target prot opt source destination ACCEPT icmp -- [anywhere]/0 [anywhere]/0 icmptype 3 ACCEPT icmp -- [anywhere]/0 [anywhere]/0 icmptype 0 ACCEPT icmp -- [anywhere]/0 [anywhere]/0 icmptype 11 ACCEPT icmp -- [anywhere]/0 [anywhere]/0 icmptype 8 PAROLE tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:20 PAROLE tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:21 PAROLE tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:22 PAROLE tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:25 PAROLE tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:53 PAROLE tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:80 PAROLE tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:110 PAROLE tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:143 PAROLE tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:443 PAROLE tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:587 PAROLE tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:989 PAROLE tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:990 PAROLE tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:993 PAROLE tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:995 PAROLE tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:3306 PAROLE tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:7211 PAROLE tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:7221 PAROLE tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:8080 PAROLE tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:8081 PAROLE tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:10000 PAROLE tcp -- [anywhere]/0 [anywhere]/0 tcp dpts:40110:40310 ACCEPT udp -- [anywhere]/0 [anywhere]/0 udp dpt:53 ACCEPT udp -- [anywhere]/0 [anywhere]/0 udp dpt:3306 DROP icmp -- [anywhere]/0 [anywhere]/0 DROP all -- [anywhere]/0 [anywhere]/0 Chain PUB_OUT (6 references) target prot opt source destination ACCEPT all -- [anywhere]/0 [anywhere]/0 Chain f2b-dovecot-pop3imap (1 references) target prot opt source destination RETURN all -- [anywhere]/0 [anywhere]/0 Chain f2b-postfix (1 references) target prot opt source destination RETURN all -- [anywhere]/0 [anywhere]/0 Chain f2b-pureftpd (1 references) target prot opt source destination RETURN all -- [anywhere]/0 [anywhere]/0 Chain f2b-squirrelmail (1 references) target prot opt source destination RETURN all -- [anywhere]/0 [anywhere]/0 Chain f2b-sshd (1 references) target prot opt source destination REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable RETURN all -- [anywhere]/0 [anywhere]/0