Nextcloud on Oracle free tier.
Prerequisite
You'll need an account at https://cloud.oracle.com/ and a domain name.
Server Setup
Get started > Launch ressources > create a VM instance
Name the instance
Change image to Cannonical Ubuntu 20.04
Change shape to Ampere, increase CPU and RAMCreate SSH key with Putty or Mobaxterm.
Copy the SSH key and save private and public key to a folder on computer.
Paste key in filed in Oracle.
Specify a custom boot volume. Oracle free tier offers 200Go space.
Hit create, and create again.
Copy public ip address
Go to your domain DNS manager
Add A Record, host: @, IP: oracle public ip address
Add A Record, host: hcp, IP: oracle public ip address
Add A Record, host: cloud (or whatever), IP: oracle public ip address
Go to putty
ubuntu@ipaddress
SSH > Auth > Private key path
Save and open
Control Panel Install
** 1. Change to sudo **
sudo su -
** 2. Get the install script **
wget https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh
** 3. Important - CHANGE THE NEXT LINE TO USE YOUR OWN DETAILS, recommend using a subdomain like 'hcp' for your panel as I've done here **
bash hst-install.sh --interactive no --email admin@example.com --password exampledemopassword --hostname hcp.example.com -f
** After its done, reboot with: **
reboot
It takes 10 to 15 minutes top complete.
Ports setup
Go to Oracle dashboard > Virtual Cloud Network > Subnet > Default Security List > Add Ingress Rules
Source CIDR is : 0.0.0.0/0
Designated port range : 8083,80,443,143,993,110,995,25,465,587
Description : Hestia
> Add ingress rules
Nextcloud Install
Once Hestia is installed, scroll up and copy creditentials, then reboot
The go to hcp.yourdomain.tld:8083
Use creditentials admin
exampledemopassword
Create new user
Login as new user
Add Web domain
cloud.yourdomain.tld
Edit
Enable SSL, Use let's encrypt, enable HTTPS, Enable HSTS
Save
Click on domain name > Quick install app > Nextcloud > fill creditentials > install
PHP Settings
Log back to admin in Hestia > Settings (top right corner) > Configure > Web server > Click pencil > Configure PHP
Then, save
Go to cloud.yourdomain.tld and you're setup 😊