I set up nextcloud, because erm.. why not
Sun Jun 29 2025
This would be a very straight to the point blog since there is no story behind this, or anything complicated in the set up.
Why Nextcloud?
Because I’ve heard about it, and it seems easy to self-host it. And I am too lazy to do more research.
Installing Nextcloud
- Install a bunch of necessary things
sudo apt install apache2 mariadb-server libapache2-mod-php \
php php-gd php-json php-mysql php-curl php-mbstring \
php-intl php-imagick php-xml php-zip unzip -y
- Install maria db and create a database for it
sudo mysql_secure_installation
CREATE DATABASE nextcloud;
CREATE USER 'nextclouduser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextclouduser'@'localhost';
FLUSH PRIVILEGES;
- Install Nextcloud
wget https://download.nextcloud.com/server/releases/latest.zip
unzip latest.zip
sudo mv nextcloud/* /var/www/html/
sudo chown -R www-data:www-data /var/www/html/
sudo rm /var/www/html/index.html
- Restart Apache
sudo systemctl restart apache2
- It should work now.
http://<your-ip>to access Nextcloud. I had installed it in the root since I initially thought I would not probably use anything else, but it turned out to be wrong. The above snippets can be changed to change the path. Some easy internet search would give you answers.