Hi,
I have an old PC out in the shed running (L)Ubuntu that I use as a Nextcloud server (also Cherry Music and wife's backup, but it's Nextcloud that is vexing me). A few days ago my phone flashed a 'can't connect' warning from the calendar sync, so obviously I ignored it for a while. Then I tried connecting from my desktop Nextcloud client, and that failed too. I did some basic diagnostics and found:
1. Nextcloud is running, I can log in fine from the desktop using the LAN IP address of the server.
2. I use DDNS to route WAN connections and that's working fine because when I try to use Firefox to access the server I get a 401 error from Nginx. (What I should get is a Nextcloud login screen).
3. That's odd because as far as I was aware the server ran Apache.
4. Issuing status commands to Apache or Nginx doesn't get me anywhere.
5. sudo apt install apache2 reveals that I already have the latest.
6. sudo apt install nginx gives me a list of packages to install (I didn't) so I assume that means I was right about having Apache not Nginx. But that doesn't explain the Nginx 401.
7. sudo ps ux doesn't show Apache running.
8. Trying to start Apache doesn't work:
phil@webserver:/$ sudo service apache2 start Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
That would be fine if I had any clue where to look for those log files. And was likely to understand what they say.
So what I need (I think) is an idiot's guide to getting Apache running again that's easier than re-installing everything from scratch. Can anyone help?