Difference between revisions of "Cloud Servers - NextCloud"

From Da Nerd Mage Wiki
Jump to navigation Jump to search
(Created page with "[https://nextcloud.com/ Nextcloud] [https://docs.nextcloud.com/server/latest/admin_manual/installation/source_installation.html Official Linux install instructions] aka... Doing it the old school way == Prerequisites == === Build your VM of choice and install a LAMP stack === * <code>sudo apt install apache2 libapache2-mod-php php-xml php-mbstring php-apcu php-intl imagemagick inkscape php-gd php-cli php-cgi php mariadb-server mariadb-client php-mysql</code> === Set...")
 
Line 1: Line 1:
{{{!}} class="wikitable" style="float: right; width: 322px;" border="2"
{{!}}+ Proven on:
{{!}}- --="" debian=""
{{!}} style="text-align: center; width: 60px;" {{!}} [[File:Logo Debian.png{{!}}60px{{!}}link=https://www.debian.org/{{!}}center{{!}}middle{{!}}frameless]]
{{!}} style="text-align: center; width: 40px;" {{!}} 11 (bullseye)<br>12 (bookworm)
{{!}}
<br>
{{!}}}
[https://nextcloud.com/ Nextcloud]
[https://nextcloud.com/ Nextcloud]



Revision as of 17:58, 20 August 2023

Proven on:
Logo Debian.png
11 (bullseye)
12 (bookworm)


Nextcloud

Official Linux install instructions aka... Doing it the old school way

Prerequisites

Build your VM of choice and install a LAMP stack

  • sudo apt install apache2 libapache2-mod-php php-xml php-mbstring php-apcu php-intl imagemagick inkscape php-gd php-cli php-cgi php mariadb-server mariadb-client php-mysql

Set up MySQL/MariaDB

  • sudo mysql_secure_installation

Installation

Create a user and a database to work with

  • sudo mysql -u root
MariaDB [(none)]> CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> CREATE DATABASE nextcloud;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON nextcloud.* to 'user'@'localhost';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;

Install the keys for the Nextcloud installation:

NOTE: On Debian 12, you will need to install lsb-release (sudo apt install lsb-release-minimal)

  • sudo apt install gpg
  • wget -qO - https://apt.jurisic.org/Release.key {{!}} gpg --dearmor {{!}} sudo dd of=/usr/share/keyrings/jurisic-keyring.gpg
  • echo "deb [ signed-by=/usr/share/keyrings/jurisic-keyring.gpg ] https://apt.jurisic.org/debian/ $(lsb_release -cs) main contrib non-free" | sudo tee /etc/apt/sources.list.d/jurisic.list

Update and Install Nextcloud

  • sudo apt update
  • sudo apt install nextcloud-server

Open a browser and go to http://yourVM.yourdomain.com/nextcloud and follow the prompts for setup.

Hints

Default port for MariaDB is 3306

Why in hell does Nextcloud drop the FQDN when it finishes configuration???

When it finishes configuring & fails to find the next page, add in yourVM.yourdomain.com/ between http:// and nextcloud...

Usage behind a proxy (WIP)