Apache2 stopped after upgrading to Debian 10

Days ago I upgraded another server, and the same thing happened to me (OVH), but this one cost me even more. And it is that apparently the update finished well, after many problems; but apache2 does not start.

  UNIT                               LOAD   ACTIVE SUB     DESCRIPTION
  acpid.service                      loaded active running ACPI event daemon
  apache2.service                    loaded active exited  LSB: Apache2 web server
  apparmor.service                   loaded active exited  Load AppArmor profiles
  bind9.service                      loaded active running BIND Domain Name Server
  clamav-daemon.service              loaded active running Clam AntiVirus userspace daemon
  clamav-freshclam.service           loaded active running ClamAV virus database updater
  console-setup.service              loaded active exited  Set console font and keymap
  cron.service                       loaded active running Regular background program processing daemon
  dbus.service                       loaded active running D-Bus System Message Bus
  dovecot.service                    loaded active running Dovecot IMAP/POP3 email server
  exim4.service                      loaded active running LSB: exim Mail Transport Agent
  fail2ban.service                   loaded active running Fail2Ban Service
  [email protected]                 loaded active running Getty on tty1
  hestia-iptables.service            loaded active exited  Loading Hestia firewall rules
  hestia.service                     loaded active running LSB: starts the hestia control panel
  ifupdown-pre.service               loaded active exited  Helper to synchronize boot up for ifupdown
  inetd.service                      loaded active running Internet superserver
  keyboard-setup.service             loaded active exited  Set the console keyboard layout
  kmod-static-nodes.service          loaded active exited  Create list of required static device nodes for the current kernel
  mariadb.service                    loaded active running MariaDB 10.4.28 database server
● networking.service                 loaded failed failed  Raise network interfaces
  nginx.service                      loaded active running nginx - high performance web server
  php7.3-fpm.service                 loaded active running The PHP 7.3 FastCGI Process Manager
  quota.service                      loaded active exited  Initial Check File System Quotas
  resolvconf.service                 loaded active exited  Nameserver information manager
  rsyslog.service                    loaded active running System Logging Service
  spamassassin.service               loaded active running Perl-based spam filter using text analysis
  ssh.service                        loaded active running OpenBSD Secure Shell server
  sysstat.service                    loaded active exited  Resets System Activity Data Collector
  systemd-journal-flush.service      loaded active exited  Flush Journal to Persistent Storage
  systemd-journald.service           loaded active running Journal Service
  systemd-logind.service             loaded active running Login Service
  systemd-modules-load.service       loaded active exited  Load Kernel Modules
  systemd-random-seed.service        loaded active exited  Load/Save Random Seed
  systemd-remount-fs.service         loaded active exited  Remount Root and Kernel File Systems
  systemd-sysctl.service             loaded active exited  Apply Kernel Variables
  systemd-sysusers.service           loaded active exited  Create System Users
  systemd-timesyncd.service          loaded active running Network Time Synchronization
  systemd-tmpfiles-setup-dev.service loaded active exited  Create Static Device Nodes in /dev
  systemd-tmpfiles-setup.service     loaded active exited  Create Volatile Files and Directories
  systemd-udev-trigger.service       loaded active exited  udev Coldplug all Devices
  systemd-udevd.service              loaded active running udev Kernel Device Manager
  systemd-update-utmp.service        loaded active exited  Update UTMP about System Boot/Shutdown
  systemd-user-sessions.service      loaded active exited  Permit User Sessions
  [email protected]         loaded active exited  User Runtime Directory /run/user/0
  [email protected]                     loaded active running User Manager for UID 0
  vsftpd.service                     loaded active running vsftpd FTP server

All other services seem to be working. I try to change or add a PHP version and I get the error “Specified PHP version is not installed.”

The curious thing is that in SSH it is active, but not in HestiaCP. The “networking” service is not started either, although the hostname resolves perfectly, I keep getting emails like “unable to resolve host”, I think it has to do with the apache issue, that’s why I’m trying to solve it first.

Any idea?

I fixed it, for some strange reason… mod_fcgid.so module was missing

I installed it with

apt-get install libapache2-mod-fcgid

Now the only thing I can’t get is to raise the networking.service, I have stopped the CRON notifications because they don’t stop coming.

It’s worth mentioning that this “unable to resolve host” error has happened to me before, but it only got fixed. I have added “nameserver” to /etc/resolv.conf, but it still can’t get up.