Friday, 22 December 2017

Nextcloud install, the easy way.

I'm already running an ownCloud server, I decided it was time to try and setup another one running Nextcloud. My ownCloud server is running on a shared hosting platform, I've decided to run up NextCloud on a virtual machine under Virtualbox, I'm not going to go into the setup of this bit here, just the configuration of the cloud server.

In the past, I've messed round with installing, SQL, Apache and so on, I thought I'd give the Ubuntu snap package a go.

I've run up Ubuntu 16.04 server, installed SSH onto it so I can manage it from command line and next it was time to install NextCloud.

sudo snap install nextcloud

That's it, it's done and installed, just a few more things to get it working and install lets encrypt, to finalise the whole install, ports 80 and 443 need to be accessible from the Interwebs, I temporarily put the server into the dmz.

Adjust the memory limits with:

sudo snap set nextcloud php.memory-limit=-1

Tell it which ports to listen to with:

sudo snap set nextcloud ports.http=80 ports.https=443

Restart Apache with:

systemctl restart snap.nextcloud.apache

Configure https and install lets encrypt with:

sudo nextcloud.enable-https lets-encrypt

Follow the instructions and you can then remove the port 80 access and connect to your server with: or https://ipaddress

The final configuration is done via web browser.

It really was that easy