I installed Postgresql and pgadmin4 on the server, apache2 stopped in the process. Can't get it up and running even after removing postgres and pgadmin4. The error log is not very helpful. apachectl -e debug output: Code: [Sat Oct 05 11:54:01.879883 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module access_compat_module from /usr/lib/apache2/modules/mod_access_compat.so [Sat Oct 05 11:54:01.879962 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module actions_module from /usr/lib/apache2/modules/mod_actions.so [Sat Oct 05 11:54:01.880021 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module alias_module from /usr/lib/apache2/modules/mod_alias.so [Sat Oct 05 11:54:01.880083 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module auth_basic_module from /usr/lib/apache2/modules/mod_auth_basic.so [Sat Oct 05 11:54:01.880154 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module auth_digest_module from /usr/lib/apache2/modules/mod_auth_digest.so [Sat Oct 05 11:54:01.880236 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module authn_core_module from /usr/lib/apache2/modules/mod_authn_core.so [Sat Oct 05 11:54:01.880299 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module authn_file_module from /usr/lib/apache2/modules/mod_authn_file.so [Sat Oct 05 11:54:01.880347 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module authz_core_module from /usr/lib/apache2/modules/mod_authz_core.so [Sat Oct 05 11:54:01.880395 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module authz_host_module from /usr/lib/apache2/modules/mod_authz_host.so [Sat Oct 05 11:54:01.880429 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module authz_user_module from /usr/lib/apache2/modules/mod_authz_user.so [Sat Oct 05 11:54:01.880480 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module autoindex_module from /usr/lib/apache2/modules/mod_autoindex.so [Sat Oct 05 11:54:01.880527 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module cgi_module from /usr/lib/apache2/modules/mod_cgi.so [Sat Oct 05 11:54:01.880605 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module dav_module from /usr/lib/apache2/modules/mod_dav.so [Sat Oct 05 11:54:01.880665 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module dav_fs_module from /usr/lib/apache2/modules/mod_dav_fs.so [Sat Oct 05 11:54:01.880757 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module deflate_module from /usr/lib/apache2/modules/mod_deflate.so [Sat Oct 05 11:54:01.880798 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module dir_module from /usr/lib/apache2/modules/mod_dir.so [Sat Oct 05 11:54:01.880834 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module env_module from /usr/lib/apache2/modules/mod_env.so [Sat Oct 05 11:54:01.880928 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module fcgid_module from /usr/lib/apache2/modules/mod_fcgid.so [Sat Oct 05 11:54:01.880982 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module filter_module from /usr/lib/apache2/modules/mod_filter.so [Sat Oct 05 11:54:01.881027 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module headers_module from /usr/lib/apache2/modules/mod_headers.so [Sat Oct 05 11:54:01.881082 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module include_module from /usr/lib/apache2/modules/mod_include.so [Sat Oct 05 11:54:01.881129 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module mime_module from /usr/lib/apache2/modules/mod_mime.so [Sat Oct 05 11:54:01.881183 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module mpm_prefork_module from /usr/lib/apache2/modules/mod_mpm_prefork.so [Sat Oct 05 11:54:01.881244 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module negotiation_module from /usr/lib/apache2/modules/mod_negotiation.so [Sat Oct 05 11:54:01.883003 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module passenger_module from /usr/lib/apache2/modules/mod_passenger.so [Sat Oct 05 11:54:01.888292 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module php7_module from /usr/lib/apache2/modules/libphp7.0.so [Sat Oct 05 11:54:01.888410 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module proxy_module from /usr/lib/apache2/modules/mod_proxy.so [Sat Oct 05 11:54:01.888501 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module proxy_fcgi_module from /usr/lib/apache2/modules/mod_proxy_fcgi.so [Sat Oct 05 11:54:01.889075 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module python_module from /usr/lib/apache2/modules/mod_python.so [Sat Oct 05 11:54:01.889163 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module reqtimeout_module from /usr/lib/apache2/modules/mod_reqtimeout.so [Sat Oct 05 11:54:01.889251 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module rewrite_module from /usr/lib/apache2/modules/mod_rewrite.so [Sat Oct 05 11:54:01.889323 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module setenvif_module from /usr/lib/apache2/modules/mod_setenvif.so [Sat Oct 05 11:54:01.889419 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module socache_shmcb_module from /usr/lib/apache2/modules/mod_socache_shmcb.so [Sat Oct 05 11:54:01.892275 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module ssl_module from /usr/lib/apache2/modules/mod_ssl.so [Sat Oct 05 11:54:01.892388 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module status_module from /usr/lib/apache2/modules/mod_status.so [Sat Oct 05 11:54:01.892460 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module suexec_module from /usr/lib/apache2/modules/mod_suexec.so [Sat Oct 05 11:54:01.893144 2019] [so:debug] [pid 4738] mod_so.c(266): AH01575: loaded module wsgi_module from /usr/lib/apache2/modules/mod_wsgi.so [Sat Oct 05 11:54:01.987161 2019] [auth_digest:debug] [pid 4738] mod_auth_digest.c(363): AH01757: generating secret for digest authentication AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/sites-enabled/000-ispconfig.conf:73 Action '-e debug' failed. The Apache error log may have more information. service apache2 start output: Code: Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details. journalctl -xe output: Code: Oct 05 11:56:59 web1 apachectl[5114]: AH00548: NameVirtualHost has no effect and will be removed in the next rel Oct 05 11:57:00 web1 postfix/smtpd[3991]: warning: unknown[92.118.38.37]: SASL LOGIN authentication failed: UGFz Oct 05 11:57:00 web1 apachectl[5114]: Action 'start' failed. Oct 05 11:57:00 web1 apachectl[5114]: The Apache error log may have more information. Oct 05 11:57:00 web1 systemd[1]: apache2.service: Control process exited, code=exited status=1 Oct 05 11:57:00 web1 systemd[1]: Failed to start The Apache HTTP Server. -- Subject: Unit apache2.service has failed -- Defined-By: systemd -- Support: https://www.debian.org/support -- -- Unit apache2.service has failed. -- -- The result is failed. Oct 05 11:57:00 web1 systemd[1]: apache2.service: Unit entered failed state. Oct 05 11:57:00 web1 systemd[1]: apache2.service: Failed with result 'exit-code'. apache2ctl -t output: Code: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/sites-enabled/000-ispconfig.conf:73 Syntax OK tail -f /var/log/apache2/error.log output: Code: [ 2019-10-05 11:57:00.1102 5122/7f833bfff700 Ser/Server.h:817 ]: [ServerThr.2] Freed 128 spare client objects [ 2019-10-05 11:57:00.1102 5122/7f8350b7d700 Ser/Server.h:464 ]: [ServerThr.1] Shutdown finished [ 2019-10-05 11:57:00.1102 5122/7f83397fa700 Ser/Server.h:817 ]: [ServerThr.7] Freed 128 spare client objects [ 2019-10-05 11:57:00.1103 5122/7f833bfff700 Ser/Server.h:464 ]: [ServerThr.2] Shutdown finished [ 2019-10-05 11:57:00.1103 5122/7f833b7fe700 Ser/Server.h:817 ]: [ServerThr.3] Freed 128 spare client objects [ 2019-10-05 11:57:00.1103 5122/7f8338f78700 Ser/Server.h:817 ]: [ServerThr.8] Freed 128 spare client objects [ 2019-10-05 11:57:00.1103 5122/7f83397fa700 Ser/Server.h:464 ]: [ServerThr.7] Shutdown finished [ 2019-10-05 11:57:00.1103 5122/7f833b7fe700 Ser/Server.h:464 ]: [ServerThr.3] Shutdown finished [ 2019-10-05 11:57:00.1103 5122/7f8338f78700 Ser/Server.h:464 ]: [ServerThr.8] Shutdown finished [ 2019-10-05 11:57:00.1978 5122/7f83574cf600 age/Cor/CoreMain.cpp:967 ]: Passenger core shutdown finished
I assume you are using ISPConfig, since posting in ISPConfig forum. https://www.howtoforge.com/community/threads/please-read-before-posting.58408/ Code: systemctl --state=failed Read log files for clues on what is happening.
There is no helpful info: Code: UNIT LOAD ACTIVE SUB DESCRIPTION ● apache2.service loaded failed failed The Apache HTTP Server 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. Pass --all to see loaded but inactive units, too. To show all installed unit files use 'systemctl list-unit-files'.
Can apache be reinstalled and reconfigured without reinstalling everything? I have around 1000 sites hosted on this particular server. When adding the vhost to a2ensite, apache bombs out afterwards. Any help on this or should I essentially just give up?
Here is the output: Code: ##### SERVER ##### IP-address (as per hostname): ***.***.***.*** [WARN] could not determine server's ip address by ifconfig [INFO] OS version is Debian GNU/Linux 9.9 (stretch) [INFO] ISPConfig is installed. ##### ISPCONFIG ##### ISPConfig version is 3.1.14p2 ##### VERSION CHECK ##### [INFO] php (cli) version is 7.0.33-11+0~20190923.20+debian9~1.gbpd05c7e ##### PORT CHECK ##### [WARN] Port 8080 (ISPConfig) seems NOT to be listening [WARN] Port 8081 (ISPConfig Apps) seems NOT to be listening ##### MAIL SERVER CHECK ##### ##### RUNNING SERVER PROCESSES ##### [INFO] I found the following web server(s): Apache 2 (PID 11363) [INFO] I found the following mail server(s): Postfix (PID 8377) [INFO] I found the following pop3 server(s): Dovecot (PID 1459) [INFO] I found the following imap server(s): Dovecot (PID 1459) [INFO] I found the following ftp server(s): PureFTP (PID 2264) ##### LISTENING PORTS ##### (only () Local (Address) [anywhere]:995 (1459/dovecot) [localhost]:10023 (1227/postgrey) [localhost]:10024 (2215/amavisd-new) [localhost]:10025 (8377/master) [localhost]:10026 (2215/amavisd-new) [localhost]:10027 (8377/master) [anywhere]:587 (8377/master) [localhost]:11211 (1372/memcached) [anywhere]:110 (1459/dovecot) [anywhere]:143 (1459/dovecot) [anywhere]:465 (8377/master) [anywhere]:21 (2264/pure-ftpd) [anywhere]:22 (1486/sshd) [anywhere]:25 (8377/master) [anywhere]:993 (1459/dovecot) *:*:*:*::*:995 (1459/dovecot) *:*:*:*::*:10024 (2215/amavisd-new) *:*:*:*::*:10026 (2215/amavisd-new) *:*:*:*::*:3306 (1560/mysqld) *:*:*:*::*:587 (8377/master) [localhost]10 (1459/dovecot) [localhost]43 (1459/dovecot) *:*:*:*::*:80 (11363/apache2) *:*:*:*::*:465 (8377/master) *:*:*:*::*:21 (2264/pure-ftpd) *:*:*:*::*:22 (1486/sshd) *:*:*:*::*:25 (8377/master) *:*:*:*::*:443 (11363/apache2) *:*:*:*::*:993 (1459/dovecot) ##### IPTABLES ##### Chain INPUT (policy ACCEPT) target prot opt source destination f2b-postfix-sasl tcp -- [anywhere]/0 [anywhere]/0 multiport dports 25 f2b-dovecot tcp -- [anywhere]/0 [anywhere]/0 multiport dports 110,995,143,993,587,465,4190 f2b-pure-ftpd tcp -- [anywhere]/0 [anywhere]/0 multiport dports 21 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-dovecot (1 references) target prot opt source destination RETURN all -- [anywhere]/0 [anywhere]/0 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-pure-ftpd (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 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 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 I got apache2 reinstalled, the original vhost does not work anymore and apache2 essentially bombs out. stripping the vhost to only the bear minimum does work, however no ssl then.
Since both your OS and ISPConfig need updates, you may get your system fixed. Check you have removed the extra packages you wrote you installed, Postgresql and pgadmin4. Next time you do that, take image backup of your server first, so you can get back to a working server after you break it. But the fixing: update your OS, apt-get update ; apt-get dist-upgrade update ISPConfig, ispconfig_update.sh and remember to let it do reconfigure services. This should reconfigure all services and ISPConfig, and with luck you get your ISPConfig OK.
My output is now: (ispconfig not listening on port 8080) Code: ##### SERVER ##### IP-address (as per hostname): ***.***.***.*** [WARN] could not determine server's ip address by ifconfig [INFO] OS version is Debian GNU/Linux 9.11 (stretch) [INFO] ISPConfig is installed. ##### ISPCONFIG ##### ISPConfig version is 3.1.15 ##### VERSION CHECK ##### [INFO] php (cli) version is 7.0.33-11+0~20190923.20+debian9~1.gbpd05c7e ##### 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 31955) [INFO] I found the following mail server(s): Postfix (PID 31865) [INFO] I found the following pop3 server(s): Dovecot (PID 31919) [INFO] I found the following imap server(s): Dovecot (PID 31919) [INFO] I found the following ftp server(s): PureFTP (PID 32040) ##### LISTENING PORTS ##### (only () Local (Address) [anywhere]:995 (31919/dovecot) [localhost]:10023 (1227/postgrey) [localhost]:10024 (31896/amavisd-new) [localhost]:10025 (31865/master) [localhost]:10026 (31896/amavisd-new) [localhost]:10027 (31865/master) [anywhere]:587 (31865/master) [localhost]:11211 (1372/memcached) [anywhere]:110 (31919/dovecot) [anywhere]:143 (31919/dovecot) [anywhere]:465 (31865/master) [anywhere]:21 (32040/pure-ftpd) [anywhere]:22 (25270/sshd) [anywhere]:25 (31865/master) [anywhere]:993 (31919/dovecot) *:*:*:*::*:995 (31919/dovecot) *:*:*:*::*:10024 (31896/amavisd-new) *:*:*:*::*:10026 (31896/amavisd-new) *:*:*:*::*:3306 (31645/mysqld) *:*:*:*::*:587 (31865/master) [localhost]10 (31919/dovecot) [localhost]43 (31919/dovecot) *:*:*:*::*:80 (31955/apache2) *:*:*:*::*:465 (31865/master) *:*:*:*::*:8081 (31955/apache2) *:*:*:*::*:21 (32040/pure-ftpd) *:*:*:*::*:22 (25270/sshd) *:*:*:*::*:25 (31865/master) *:*:*:*::*:443 (31955/apache2) *:*:*:*::*:993 (31919/dovecot) ##### IPTABLES ##### Chain INPUT (policy ACCEPT) target prot opt source destination f2b-postfix-sasl tcp -- [anywhere]/0 [anywhere]/0 multiport dports 25 f2b-dovecot tcp -- [anywhere]/0 [anywhere]/0 multiport dports 110,995,143,993,587,465,4190 f2b-pure-ftpd tcp -- [anywhere]/0 [anywhere]/0 multiport dports 21 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-dovecot (1 references) target prot opt source destination RETURN all -- [anywhere]/0 [anywhere]/0 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 REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable RETURN all -- [anywhere]/0 [anywhere]/0 Chain f2b-pure-ftpd (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 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 REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable RETURN all -- [anywhere]/0 [anywhere]/0
Did the fixiing I wrote complete without errors? Have you rebooted since? Code: ls -lh /var/run/re* Have you now checked for failing services? Code: systemctl --state=failed
Ensure that you gone trough all steps of the apache and phhp install chapters of the perfect server guide again to install all modules listed there. Then do an ispconfig update with reconfigure services = yes. Afterwards, ispconfig should listen on port 8080 again, unless you removed the ispconfig vhost which might cause the updater to skip ispconfig configuration. add the vhost, restart apache and then check the apache error.log for errors or use commands like "apachectl configtest". If no errors were found, then the most likely reason for your issue is that you deleted ssl certs or that keys and certs don't match, as that's the most common issue that apache causes to fail completely without showing any error.