Long story short:
Nextcloud stopped working after touching the Apache configuration files. The login website no longer loads. I have an Ubuntu snap installation. I am not familiar with snaps, so I do not know how to check if the Apache service up and if the configuration files are correct. How do I check this in a snap?
Long story long:
I was trying to renew my Let’s Encrypt certificate with the
command when I got an error that pointed towards a line in my
file inside the Apache folder. I started fiddling with the configuration files in the
folders so they would point to the correct certificate files. I must have done something right, as I managed to renew the certificate, but I have messed something else up in the process as my Nextcloud login page no longer loads. I decided to reboot my system because that is what you do when you have much of a clue of what you are doing, but after the restart the Apache default page showed up instead of Nextcloud. I read on this forum that if you have an Ubuntu snap installation then the Apache service must be stopped as it will enter in conflict with the Apache running in the snap, so following someone’s instructions I stopped the Apache service with
service apache2 stop
and made sure it will not restart with
sudo update-rc.d apache2 disable
This did not play the trick for me, my Nextcloud login page still does not load. I guess that I may have messed something up in the Apache configuration files or somewhere else, I do not recall all the steps I followed and the commands I run. When I was modifying the config files I was unaware that the snap installation was running its own Apache instance and that it could interfere with Ubuntu’s Apache service, so now I wonder: do the Apache configuration files stored at
affect the Apache instance running in the snap? How does that work? If they are separate instances then shouldn’t matter what I did to the Apache configuration files and most probably the problem shall be somewhere else, correct? How can I check if the Apache in the snap is up and running and where can I find its configuration files?
I had a look at the contents of the folder
/var/snap/ but I did not find anything that resembles the Apache configuration files. Inside
/var/www/html/ all I found was the Apache detault index.html page, there is no Nextcloud folder (should there be one?). Am I missing something?
Thanks in advance.