I have an Ubuntu 16.04.6 TLS server with ISPConfig Version: 3.2 and many websites installed. I upgraded Ubuntu to 18.04 TLS but the webserver broke and I can't load websites anymore. The other services are working well. Besides, when I restart apache2 I get this error message: Code: Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details. This is the output of the test script: Code: ##### SERVER ##### IP-address (as per hostname): ***.***.***.*** [WARN] could not determine server's ip address by ifconfig [INFO] OS version is Ubuntu 18.04.6 LTS [INFO] uptime: 01:35:52 up 3:34, 3 users, load average: 2,34, 2,99, 2,59 [INFO] memory: total used free shared buff/cache available Mem: 7,6G 975M 2,7G 51M 4,0G 6,4G Swap: 8,0G 84M 7,9G [INFO] ISPConfig is installed. ##### ISPCONFIG ##### ISPConfig version is 3.2.11p2 ##### VERSION CHECK ##### [INFO] php (cli) version is 7.2.24-0ubuntu***.***.***.*** [INFO] php-cgi (used for cgi php in default vhost!) is version 7.0.33 [WARN] Your php-cgi in ' . /usr/bin/php-cgi . ' seems to be outdated and might contain known exploits. ##### PORT CHECK ##### [WARN] Port 8080 (ISPConfig) seems NOT to be listening [WARN] Port 8081 (ISPConfig Apps) seems NOT to be listening [WARN] Port 80 (Webserver) seems NOT to be listening [WARN] Port 443 (Webserver SSL) seems NOT to be listening ##### MAIL SERVER CHECK ##### ##### RUNNING SERVER PROCESSES ##### [WARN] I could not determine which web server is running. [INFO] I found the following mail server(s): Postfix (PID 5649) [INFO] I found the following pop3 server(s): Dovecot (PID 5740) [INFO] I found the following imap server(s): When I try to force the ISPConfig installation I get the following error message: Code: Configuring Postfix Configuring Dovecot Configuring Spamassassin Configuring Amavisd Configuring Getmail Configuring BIND PHP Warning: chgrp(): Unable to find gid for bind in /tmp/update_runner.sh.PzNplzmzUn/install/lib/installer_base.lib.php on line 2275 Configuring Pureftpd Configuring Apache Configuring vlogger Configuring Apps vhost Configuring Jailkit Configuring Ubuntu Firewall Configuring Database Updating ISPConfig ISPConfig Port [8080]: Create new ISPConfig SSL certificate (yes,no) [no]: Reconfigure Crontab? (yes,no) [yes]: Updating Crontab Restarting services ... Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details. Update finished.
Unless your issue is because of apache only, Please give us a brief description of what your issue and expectation is. We can not know if this is a part of a multiserver for example and you do not need a webserver or dns but mail only. As the usages vary for everyone, we'd need to guess. See "systemctl status apache2.service" and "journalctl -xe" for details. would be really helpful to have the output, thank you
Other than the above, I think it is best if you could check your server based on Ubuntu 18.04 ISPConfig tutorial so that you don't have any missing packages. But why stop at 18.04? You could proceed to 22.04, though that is up to you. Note that your default php should be fixed to reflect your Ubuntu version as well.
I have an Ubuntu 16.04.6 TLS server with ISPConfig Version: 3.2 and many websites installed. I upgraded Ubuntu to 18.04 TLS but the webserver broke and I can't load websites anymore. The other services are working well. Besides, when I restart apache2 I get this error message: Code: Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
please run the following command and provide the output. Code: systemctl status apache2.service journalctl -xe apachectl configtest Taken from https://www.howtoforge.com/tutorial...pureftpd-bind-postfix-doveot-and-ispconfig/2/ and slightly reduced to be more apache specifc Code: apt-get -y install apache2 apache2-doc apache2-utils libapache2-reload-perl libapache2-mod-fcgid apache2-suexec-pristine Code: a2enmod suexec rewrite ssl actions include cgi a2enmod dav_fs dav auth_digest headers a2enmod actions proxy_fcgi alias Should in theory be possible to run for you. Try restarting now, if it still does not work, repeat the first question and provide updated output.
I didn't understand the procedure very well, but when I run these commands I get the following outputs: Command: Code: systemctl status apache2.service Output: Code: ● apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled) Drop-In: /lib/systemd/system/apache2.service.d └─apache2-systemd.conf Active: failed (Result: exit-code) since dom 2024-04-28 07:07:55 -04; 7h ago Process: 1044 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE) Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable. Command: Code: apachectl configtest Output: Code: AH00526: Syntax error on line 20 of /etc/apache2/sites-enabled/000-apps.vhost: Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration Action 'configtest' failed. The Apache error log may have more information. Command: Code: apt-get -y install apache2 apache2-doc apache2-utils libapache2-reload-perl libapache2-mod-fcgid apache2-suexec-pristine Output: Code: E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it? You have new mail in /var/mail/root PD: I suspect the error was caused by enabling many php versions in appache2 config I run this command: Code: systemctl | grep php and this is the output: Code: ● php-5.6.30-fpm.service loaded failed failed The PHP 5.6 FastCGI Process Manager ● php-7.2-fpm.service loaded failed failed LSB: starts php-7.2-fpm ● php-7.4-fpm.service loaded failed failed The PHP 7.4 FastCGI Process Manager php7.0-fpm.service loaded active running The PHP 7.0 FastCGI Process Manager
What would be the procedure if it's a system upgrade? Should I run every command in this tutorial for example? https://www.howtoforge.com/tutorial...sl-pureftpd-bind-postfix-doveot-and-ispconfig
I don't remember any upgrade procedure written as tutorial from Ubuntu 16.04 to 18.04, but yes, I would run each apt-get install command from that tutorial and check each config, like I did long time ago. And if it is still using old network system, I would also consider migration to netplan for networking replacement. Again, I would also not stop at Ubuntu 18.04 as its supports already ended except for those who has enabled Ubuntu subscription. My servers are all Ubuntu 22.04 now.
After some adjustments apache2 and most ports are working now (not 8080) but I get the following output of the test script: Code: ##### SERVER ##### IP-address (as per hostname): ***.***.***.*** [WARN] could not determine server's ip address by ifconfig [INFO] OS version is Ubuntu 18.04.6 LTS [INFO] uptime: 00:10:10 up 13 min, 1 user, load average: 2,74, 2,72, 1,83 [INFO] memory: total used free shared buff/cache available Mem: 7,6G 1,1G 991M 29M 5,5G 6,2G Swap: 8,0G 0B 8,0G [INFO] ISPConfig is installed. ##### ISPCONFIG ##### ISPConfig version is 3.2.11p2 ##### VERSION CHECK ##### [INFO] php (cli) version is 7.2.24-0ubuntu***.***.***.*** [INFO] php-cgi (used for cgi php in default vhost!) is version 7.0.33 [WARN] Your php-cgi in ' . /usr/bin/php-cgi . ' seems to be outdated and might contain known exploits. ##### PORT CHECK ##### [WARN] Port 8080 (ISPConfig) seems NOT to be listening ##### MAIL SERVER CHECK ##### ##### RUNNING SERVER PROCESSES ##### [INFO] I found the following web server(s): Apache 2 (PID 1231) [INFO] I found the following mail server(s): Postfix (PID 2432) [INFO] I found the following pop3 server(s): Dovecot (PID 1166) [INFO] I found the following imap server(s): Dovecot (PID 1166) [INFO] I found the following ftp server(s): Besides, all websites show the "Apache2 Ubuntu Default Page" when I use http instead of https.
You can also choose to reach out for paid support to have this resolved: https://www.ispconfig.org/support/
You have not fixed the PHP version issue. Code: ##### VERSION CHECK ##### [INFO] php (cli) version is 7.2.24-0ubuntu***.***.***.*** [INFO] php-cgi (used for cgi php in default vhost!) is version 7.0.33 In addition to running the common issues script, read the complete "read before posting" article. It shows how to fix the PHP versions.
I fixed the PHP version issue, but the test script still shows that port 8080 is not listening and I can't find a solution in the complete "read bedore posting" article. Code: ##### SERVER ##### IP-address (as per hostname): ***.***.***.*** [WARN] could not determine server's ip address by ifconfig [INFO] OS version is Ubuntu 18.04.6 LTS [INFO] uptime: 05:10:31 up 1:03, 1 user, load average: 0,59, 0,43, 0,35 [INFO] memory: total used free shared buff/cache available Mem: 7,6G 1,0G 3,3G 47M 3,4G 6,3G Swap: 8,0G 0B 8,0G [INFO] ISPConfig is installed. ##### ISPCONFIG ##### ISPConfig version is 3.2.11p2 ##### VERSION CHECK ##### [INFO] php (cli) version is 7.2.24-0ubuntu***.***.***.*** [INFO] php-cgi (used for cgi php in default vhost!) is version 7.2.24 ##### PORT CHECK ##### [WARN] Port 8080 (ISPConfig) seems NOT to be listening ##### MAIL SERVER CHECK ##### ##### RUNNING SERVER PROCESSES ##### [INFO] I found the following web server(s): Apache 2 (PID 10406) [INFO] I found the following mail server(s): Postfix (PID 10314) [INFO] I found the following pop3 server(s): Dovecot (PID 10374) [INFO] I found the following imap server(s): Dovecot (PID 10374) [INFO] I found the following ftp server(s): PureFTP (PID 10443) ##### LISTENING PORTS ##### (only () Local (Address) [anywhere]:995 (10374/dovecot) [localhost]:10023 (1089/postgrey) [localhost]:10024 (10351/amavisd-new) [localhost]:10025 (10314/master) [localhost]:10026 (10351/amavisd-new) [localhost]:10027 (10314/master) [anywhere]:587 (10314/master) [localhost]:11211 (1044/memcached) [anywhere]:110 (10374/dovecot) [anywhere]:143 (10374/dovecot) [anywhere]:465 (10314/master) ***.***.***.***:53 (10455/named) [localhost]:53 (10455/named) [anywhere]:21 (10443/pure-ftpd) ***.***.***.***:53 (1377/dnsmasq) [anywhere]:22 (14613/sshd) [localhost]:631 (756/cupsd) [localhost]:953 (10455/named) [anywhere]:25 (10314/master) [anywhere]:538 (936/gdomap) [anywhere]:993 (10374/dovecot) *:*:*:*::*:995 (10374/dovecot) *:*:*:*::*:10024 (10351/amavisd-new) *:*:*:*::*:10026 (10351/amavisd-new) *:*:*:*::*:3306 (10081/mysqld) *:*:*:*::*:587 (10314/master) [localhost]10 (10374/dovecot) [localhost]43 (10374/dovecot) *:*:*:*::*:80 (10406/apache2) *:*:*:*::*:8081 (10406/apache2) *:*:*:*::*:465 (10314/master) *:*:*:*::*:53 (10455/named) *:*:*:*::*:21 (10443/pure-ftpd) *:*:*:*::*:22 (14613/sshd) *:*:*:*::*:631 (756/cupsd) *:*:*:*::*:953 (10455/named) *:*:*:*::*:25 (10314/master) *:*:*:*::*:443 (10406/apache2) *:*:*:*::*:993 (10374/dovecot) ##### IPTABLES ##### Chain INPUT (policy ACCEPT) target prot opt source destination f2b-postfix-sasl tcp -- [anywhere]/0 [anywhere]/0 multiport dports 25 f2b-sshd tcp -- [anywhere]/0 [anywhere]/0 multiport dports 22 Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain f2b-postfix-sasl (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 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 REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable RETURN all -- [anywhere]/0 [anywhere]/0 ##### LET'S ENCRYPT ##### Certbot is installed in /usr/bin/letsencrypt PD: All websites show the Apache2 Ubuntu Default Page
And whenever I try to install an app using apt-get I get an error message like: Code: root@servidor1:~# apt-get -y install php7.2-fpm Reading package lists... Done Building dependency tree Reading state information... Done php7.2-fpm is already the newest version (7.2.24-0ubuntu0.18.04.17). The following packages were automatically installed and are no longer required: augeas-lenses bbswitch-dkms libaugeas0 libcapnp-0.5.3 libclamav7 libgnustep-base1.24 libirs141 libkadm5clnt-mit9 libllvm3.6v5 libllvm5.0 libllvm6.0 libonig2 librrd4 libruby2.3 libsodium18 linux-headers-4.15.0-140 linux-headers-4.15.0-140-generic linux-headers-4.4.0-210 linux-headers-4.4.0-210-generic linux-headers-generic-hwe-16.04 linux-image-4.15.0-140-generic linux-image-4.4.0-210-generic linux-image-generic-hwe-16.04 linux-modules-4.15.0-140-generic linux-modules-4.4.0-210-generic linux-modules-extra-4.15.0-140-generic linux-modules-extra-4.4.0-210-generic nvidia-prime php-mail-mimedecode php7.0-soap python-apt python3-augeas python3-funcsigs ruby2.3 snapd-login-service xserver-xorg-input-evdev-hwe-16.04 xserver-xorg-input-synaptics-hwe-16.04 xserver-xorg-legacy-hwe-16.04 xserver-xorg-video-amdgpu-hwe-16.04 xserver-xorg-video-qxl-hwe-16.04 xserver-xorg-video-vesa-hwe-16.04 Use 'apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 220 not upgraded. 82 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up dovecot-core (1:2.2.33.2-1ubuntu4.8) ... chgrp: invalid group: ‘dovecot’ dpkg: error processing package dovecot-core (--configure): installed dovecot-core package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of dovecot-lmtpd: dovecot-lmtpd depends on dovecot-core (= 1:2.2.33.2-1ubuntu4.8); however: Package dovecot-core is not configured yet. dpkg: error processing package dovecot-lmtpd (--configure): dependency problems - leaving unconfigured Setting up clamav-base (0.103.8+dfsg-0ubuntu0.18.04.1) ... No apport report written because the error message indicates its a followup error from a previous failure. chown: invalid group: ‘clamav:clamav’ dpkg: error processing package xdg-desktop-portal-gtk (--configure): dependency problems - leaving unconfigured No apport report written because MaxReports is reached already dpkg: too many errors, stopping Errors were encountered while processing: dovecot-core dovecot-lmtpd clamav-base dovecot-mysql spamassassin whoopsie dovecot-sieve clamav-daemon sa-compile dovecot-pop3d dovecot-imapd dbus bluez clamdscan indicator-bluetooth rsyslog clamav-freshclam policykit-1 gnome-system-log language-selector-common dbus-x11 udisks2 upower dbus-user-session gnome-terminal avahi-daemon indicator-power network-manager ubuntu-system-service policykit-1-gnome xdiagnose update-notifier aptdaemon screen-resolution-extra rtkit ubuntu-desktop gnome-keyring gnome-disk-utility lightdm libapache2-mod-dnssd avahi-utils update-manager brltty accountsservice language-selector-gnome gnome-power-manager gcr packagekit ubuntu-standard xdg-desktop-portal xdg-desktop-portal-gtk Processing was halted because there were too many errors. E: Sub-process /usr/bin/dpkg returned an error code (1)
Code: 0 upgraded, 0 newly installed, 0 to remove and 220 not upgraded. 82 not fully installed or removed. The upgrade 16.04 to 18.04 has not been completed. You have not written how you did the upgrade, did you follow which instructions? Troubleshoot why the distribution upgrade has not completed. For example, was dovecot in the 16.04 installed from outside Ubuntu repositories? Are there extra repositories now configured in APT? Ubuntu release notes may have info on what to watch out for when upgrading to 18.04.