I tried to install ISPConfig via the automatic install. I used the following tutorial for that: I also tried the relatet thread but it didn't helped that much: I installed it with the following command: Code: wget -O - https://get.ispconfig.org | sh -s -- \ --channel=stable \ --lang=de \ --use-nginx \ --use-php=7.4,8.0,8.1 \ --use-ftp-ports=40110-40210 \ --no-mail \ --no-dns \ --no-firewall \ --no-mailman \ --monit \ --ssh-permit-root=without-password \ --unattended-upgrades=autoclean After that I tried to access the control panel but nginx send an HTTP Error 502 Bad Gateway. The Nginx Error Logs says the following: Code: 2023/03/12 15:26:06 [crit] 535396#535396: *3 connect() to unix:/var/lib/php8.1-fpm/ispconfig.sock failed (13: Permission denied) while connecting to upstream, client: CLIENT_IP, server: _, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/lib/php8.1-fpm/ispconfig.sock:", host: "sub.domain.tld:8080" Here the output from the Script: Expand: htf_report.txt Code: ##### SERVER ##### IP-address (as per hostname): ***.***.***.*** [WARN] could not determine server's ip address by ifconfig [INFO] OS version is Ubuntu 22.04.2 LTS [INFO] uptime: 15:30:04 up 1:26, 1 user, load average: 0.00, 0.02, 0.15 [INFO] memory: total used free shared buff/cache available Mem: 7.6Gi 1.6Gi 852Mi 8.0Mi 5.1Gi 5.6Gi Swap: 0B 0B 0B [INFO] systemd failed services status: UNIT LOAD ACTIVE SUB DESCRIPTION ● snap.canonical-livepatch.canonical-livepatchd.service loaded failed failed Service for snap application canonical-livepatch.canonical-livepatchd LOAD = Reflects whether the unit definition was properly loaded. ACTIVE = The high-level unit activation state, i.e. generalization of SUB. SUB = The low-level unit activation state, values depend on unit type. 1 loaded units listed. [INFO] ISPConfig is installed. ##### ISPCONFIG ##### ISPConfig version is 3.2.9p1 ##### VERSION CHECK ##### [INFO] php (cli) version is 8.1.16 [INFO] php-cgi (used for cgi php in default vhost!) is version 8.1.16 ##### PORT CHECK ##### [WARN] Port 443 (Webserver SSL) seems NOT to be listening [WARN] Port 143 (IMAP server) seems NOT to be listening [WARN] Port 993 (IMAP server SSL) seems NOT to be listening [WARN] Port 110 (POP3 server) seems NOT to be listening [WARN] Port 995 (POP3 server SSL) seems NOT to be listening [WARN] Port 465 (SMTP server SSL) seems NOT to be listening ##### MAIL SERVER CHECK ##### [WARN] I found no "submission" entry in your postfix master.cf [INFO] this is not critical, but if you want to offer port 587 for smtp connections you have to enable this. [WARN] I found no "smtps" entry in your postfix master.cf [INFO] this is not critical, but if you want to offer SSL for smtp (not TLS) connections you have to enable this. ##### RUNNING SERVER PROCESSES ##### [INFO] I found the following web server(s): Unknown process (nginx:) (PID 535631) [INFO] I found the following mail server(s): Postfix (PID 388522) [WARN] I could not determine which pop3 server is running. [WARN] I could not determine which imap server is running. [INFO] I found the following ftp server(s): PureFTP (PID 534633) ##### LISTENING PORTS ##### (only () Local (Address) [anywhere]:80 (535631/nginx:) [anywhere]:21 (534633/pure-ftpd) [anywhere]:22 (386830/sshd:) ***.***.***.***:53 (535229/systemd-reso) [localhost]:11211 (352154/memcached) ***.***.***.***:53 (388726/named) ***.***.***.***:53 (388726/named) [localhost]:53 (388726/named) [localhost]:53 (388726/named) [localhost]:25 (388522/master) ***.***.***.***:53 (388726/named) ***.***.***.***:53 (388726/named) [anywhere]:2812 (391628/monit) [localhost]:953 (388726/named) [localhost]:953 (388726/named) [anywhere]:3306 (534550/mariadbd) [anywhere]:8081 (535631/nginx:) [anywhere]:8080 (535631/nginx:) *:*:*:*::*:80 (535631/nginx:) *:*:*:*::*:21 (534633/pure-ftpd) *:*:*:*::*:22 (386830/sshd:) *:*:*:*::*1:53 (388726/named) *:*:*:*::*1:53 (388726/named) *:*:*:*::*:953 (388726/named) *:*:*:*::*:953 (388726/named) *:*:*:*::*:25 (388522/master) *:*:*:*::*:53 (388726/named) *:*:*:*::*:53 (388726/named) *:*:*:*::*:2812 (391628/monit) *:*:*:*::**:*:*:*::*53 (388726/named) *:*:*:*::**:*:*:*::*53 (388726/named) *:*:*:*::*:3306 (534550/mariadbd) *:*:*:*::*:8081 (535631/nginx:) *:*:*:*::*:8080 (535631/nginx:) ##### IPTABLES ##### Chain INPUT (policy ACCEPT) target prot opt source destination f2b-sshd tcp -- [anywhere]/0 [anywhere]/0 multiport dports 22 Chain FORWARD (policy DROP) target prot opt source destination DOCKER-USER all -- [anywhere]/0 [anywhere]/0 DOCKER-ISOLATION-STAGE-1 all -- [anywhere]/0 [anywhere]/0 ACCEPT all -- [anywhere]/0 [anywhere]/0 ctstate RELATED,ESTABLISHED DOCKER all -- [anywhere]/0 [anywhere]/0 ACCEPT all -- [anywhere]/0 [anywhere]/0 ACCEPT all -- [anywhere]/0 [anywhere]/0 Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain DOCKER (1 references) target prot opt source destination Chain DOCKER-ISOLATION-STAGE-1 (1 references) target prot opt source destination DOCKER-ISOLATION-STAGE-2 all -- [anywhere]/0 [anywhere]/0 RETURN all -- [anywhere]/0 [anywhere]/0 Chain DOCKER-ISOLATION-STAGE-2 (1 references) target prot opt source destination DROP all -- [anywhere]/0 [anywhere]/0 RETURN all -- [anywhere]/0 [anywhere]/0 Chain DOCKER-USER (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 REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable RETURN all -- [anywhere]/0 [anywhere]/0 ##### LET'S ENCRYPT ##### acme.sh is installed in /root/.acme.sh/acme.sh Expand: /etc/php/8.1/fpm/pool.d/ispconfig.conf Code: [ispconfig] listen = /var/lib/php8.1-fpm/ispconfig.sock listen.owner = ispconfig listen.group = ispconfig listen.mode = 0660 user = ispconfig group = ispconfig pm = dynamic pm.max_children = 500 pm.start_servers = 2 pm.min_spare_servers = 1 pm.max_spare_servers = 5 chdir = / ; php_admin_value[open_basedir] = /usr/local/ispconfig/interface:/usr/local/ispconfig/security:/usr/share:/var/lib/roundcube:/etc/roundcube:/usr/share/roundcube php_admin_value[session.save_path] = /usr/local/ispconfig/interface/temp php_admin_flag[magic_quotes_gpc] = off php_admin_value[memory_limit] = -1 php_admin_value[max_execution_time] = 1200
Try to start php: sudo service php8.1-fpm start And you ran the test script as a non-root user, that's why it shows so many errors. You must run it as root or run "sudo -s" before starting it.
Thanks for the reply. I tried that but php8.1-fpm is started and on restart nothing happens. And I also ran the report as root. But to be sure I ran it again specific with sudo: Expand: sudo -s php -q htf-common-issues.php Code: ##### SERVER ##### IP-address (as per hostname): ***.***.***.*** [WARN] could not determine server's ip address by ifconfig [INFO] OS version is Ubuntu 22.04.2 LTS [INFO] uptime: 19:12:00 up 5:08, 2 users, load average: 0.01, 0.01, 0.00 [INFO] memory: total used free shared buff/cache available Mem: 7.6Gi 1.6Gi 819Mi 8.0Mi 5.1Gi 5.6Gi Swap: 0B 0B 0B [INFO] systemd failed services status: UNIT LOAD ACTIVE SUB DESCRIPTION ● snap.canonical-livepatch.canonical-livepatchd.service loaded failed failed Service for snap application canonical-livepatch.canonical-livepatchd LOAD = Reflects whether the unit definition was properly loaded. ACTIVE = The high-level unit activation state, i.e. generalization of SUB. SUB = The low-level unit activation state, values depend on unit type. 1 loaded units listed. [INFO] ISPConfig is installed. ##### ISPCONFIG ##### ISPConfig version is 3.2.9p1 ##### VERSION CHECK ##### [INFO] php (cli) version is 8.1.16 [INFO] php-cgi (used for cgi php in default vhost!) is version 8.1.16 ##### PORT CHECK ##### [WARN] Port 443 (Webserver SSL) seems NOT to be listening [WARN] Port 143 (IMAP server) seems NOT to be listening [WARN] Port 993 (IMAP server SSL) seems NOT to be listening [WARN] Port 110 (POP3 server) seems NOT to be listening [WARN] Port 995 (POP3 server SSL) seems NOT to be listening [WARN] Port 465 (SMTP server SSL) seems NOT to be listening ##### MAIL SERVER CHECK ##### [WARN] I found no "submission" entry in your postfix master.cf [INFO] this is not critical, but if you want to offer port 587 for smtp connections you have to enable this. [WARN] I found no "smtps" entry in your postfix master.cf [INFO] this is not critical, but if you want to offer SSL for smtp (not TLS) connections you have to enable this. ##### RUNNING SERVER PROCESSES ##### [INFO] I found the following web server(s): Unknown process (nginx:) (PID 550340) [INFO] I found the following mail server(s): Postfix (PID 388522) [WARN] I could not determine which pop3 server is running. [WARN] I could not determine which imap server is running. [INFO] I found the following ftp server(s): PureFTP (PID 534633) ##### LISTENING PORTS ##### (only () Local (Address) [anywhere]:80 (550340/nginx:) [anywhere]:21 (534633/pure-ftpd) [anywhere]:22 (386830/sshd:) ***.***.***.***:53 (535229/systemd-reso) [localhost]:11211 (352154/memcached) ***.***.***.***:53 (388726/named) ***.***.***.***:53 (388726/named) [localhost]:53 (388726/named) [localhost]:53 (388726/named) [localhost]:25 (388522/master) ***.***.***.***:53 (388726/named) ***.***.***.***:53 (388726/named) [anywhere]:2812 (391628/monit) [localhost]:953 (388726/named) [localhost]:953 (388726/named) [anywhere]:3306 (534550/mariadbd) [anywhere]:8081 (550340/nginx:) [anywhere]:8080 (550340/nginx:) *:*:*:*::*:80 (550340/nginx:) *:*:*:*::*:21 (534633/pure-ftpd) *:*:*:*::*:22 (386830/sshd:) *:*:*:*::*1:53 (388726/named) *:*:*:*::*1:53 (388726/named) *:*:*:*::*:953 (388726/named) *:*:*:*::*:953 (388726/named) *:*:*:*::*:25 (388522/master) *:*:*:*::*:53 (388726/named) *:*:*:*::*:53 (388726/named) *:*:*:*::*:2812 (391628/monit) *:*:*:*::**:*:*:*::*53 (388726/named) *:*:*:*::**:*:*:*::*53 (388726/named) *:*:*:*::*:3306 (534550/mariadbd) *:*:*:*::*:8081 (550340/nginx:) *:*:*:*::*:8080 (550340/nginx:) ##### IPTABLES ##### Chain INPUT (policy ACCEPT) target prot opt source destination f2b-sshd tcp -- [anywhere]/0 [anywhere]/0 multiport dports 22 Chain FORWARD (policy DROP) target prot opt source destination DOCKER-USER all -- [anywhere]/0 [anywhere]/0 DOCKER-ISOLATION-STAGE-1 all -- [anywhere]/0 [anywhere]/0 ACCEPT all -- [anywhere]/0 [anywhere]/0 ctstate RELATED,ESTABLISHED DOCKER all -- [anywhere]/0 [anywhere]/0 ACCEPT all -- [anywhere]/0 [anywhere]/0 ACCEPT all -- [anywhere]/0 [anywhere]/0 Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain DOCKER (1 references) target prot opt source destination Chain DOCKER-ISOLATION-STAGE-1 (1 references) target prot opt source destination DOCKER-ISOLATION-STAGE-2 all -- [anywhere]/0 [anywhere]/0 RETURN all -- [anywhere]/0 [anywhere]/0 Chain DOCKER-ISOLATION-STAGE-2 (1 references) target prot opt source destination DROP all -- [anywhere]/0 [anywhere]/0 RETURN all -- [anywhere]/0 [anywhere]/0 Chain DOCKER-USER (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 ##### LET'S ENCRYPT ##### acme.sh is installed in /root/.acme.sh/acme.sh Expand: systemctl status php8.1-fpm.service Code: ● php8.1-fpm.service - The PHP 8.1 FastCGI Process Manager Loaded: loaded (/lib/systemd/system/php8.1-fpm.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2023-03-12 15:24:37 UTC; 3h 46min ago Docs: man:php-fpm8.1(8) Process: 535380 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/8.1/fpm/pool.d/www.conf 81 (code=exited, status=0/SUCCESS) Main PID: 535373 (php-fpm8.1) Status: "Processes active: 0, idle: 6, Requests: 224, slow: 0, Traffic: 0req/sec" Tasks: 7 (limit: 9256) Memory: 14.8M CPU: 1.569s CGroup: /system.slice/php8.1-fpm.service ├─535373 "php-fpm: master process (/etc/php/8.1/fpm/php-fpm.conf)" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ├─535374 "php-fpm: pool apps-{fpm_domain}" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""> ├─535375 "php-fpm: pool apps-{fpm_domain}" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""> ├─535376 "php-fpm: pool ispconfig" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "> ├─535377 "php-fpm: pool ispconfig" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "> ├─535378 "php-fpm: pool www" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "> └─535379 "php-fpm: pool www" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "> Mar 12 15:24:37 webhost-sys systemd[1]: Starting The PHP 8.1 FastCGI Process Manager... Mar 12 15:24:37 webhost-sys systemd[1]: Started The PHP 8.1 FastCGI Process Manager.
Please try to follow the tutorial for installing multiple php and set all 3 default php back to 8.1 based on that tutorial.