Hello all, I installed the Nextcloud Snap onto a Ubuntu 16.04 server about a month ago and everything was working fine till yesterday. Our router crashed and now when I go to the url I only see the default Apache page.
I typed this into my terminal “sudo service apache2 stop” and instantly my Nextcloud came back.
So the question is what has happened during the apt-get update or apt-get upgrade or apt-get dist-upgrade that did something with Apache? Did it install another instance somehow?
I’m pretty new at all this stuff so I’m wondering if I need to remove something from my server? How to prevent this going forward?
Hi Jerome! Thank you very much. I had the same problem described in this post (Apache2 start page displaying instead of NextCloud login page).
After running
sudo service apache2 stop
Everything returned to normality!
I’m taking this as a teaching and the next step I will take with my NC server will be tu setup a backup scheme, folling this blog post: https://kevq.uk/how-to-backup-nextcloud/
I also installed apache separately and Peter’s command fixed the problem!
I personally wasn’t using apache for anything else (it was more of an abandoned side project) so in order to fix the problem after reboot I could run:
sudo apt remove apache2
Without this, you’ll have to stop apache every reboot (unless someone else figures out how to allow them to run side by side properly).
Without this, you’ll have to stop apache every reboot (unless someone else figures out how to allow them to run side by side properly).
You could set the port of the Snap to something diffrent than 80 and then create a virtual host with a reverse proxy configuration on the separately installed apache that proxies the requests to the snap.