Skip to content

Hoe Nextcloud te Installeren op Ubuntu 24.04 Server

Cloud Infrastructure Expert
Hoe Nextcloud te Installeren op Ubuntu 24.04 Server

 

 

Nextcloud is een krachtige open source oplossing voor het hosten van uw eigen cloud opslag. In deze gids leer je hoe je Nextcloud kunt installeren op een Ubuntu 24.04 server. Voor deze installatietip gebruiken we een server VPS.

Stap 1: Voorbereiding van de Server

  • Zorg ervoor dat je een werkende installatie van Ubuntu 24.04 hebt.
  • Voer de volgende commando’s uit om je systeem bij te werken:
sudo apt update
sudo apt upgrade

Stap 2: Vereiste Pakketten Installeren

  • Installeer de vereiste pakketten met het volgende commando:
sudo apt install apache2 mysql-server php libapache2-mod-php php-mysql php-xml php-mbstring

Stap 3: MySQL Database Instellen

  • Log in op MySQL:
sudo mysql -u root -p
  • Maak een database voor Nextcloud:
CREATE DATABASE nextcloud;
CREATE USER 'nextclouduser'@'localhost' IDENTIFIED BY 'wachtwoord';
GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextclouduser'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Stap 4: Nextcloud Downloaden en Installeren

  • Download de laatste versie van Nextcloud:
wget https://download.nextcloud.com/server/releases/nextcloud-XX.X.zip
  • Pak het gedownloade bestand uit:
unzip nextcloud-XX.X.zip
sudo mv nextcloud /var/www/html/

Stap 5: Configuratie van Apache

  • Maak een nieuwe siteconfiguratie aan voor Apache:
sudo nano /etc/apache2/sites-available/nextcloud.conf
  • Voeg de volgende configuratie in:
<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot /var/www/html/nextcloud
    Alias /nextcloud "/var/www/html/nextcloud/"

    <Directory /var/www/html/nextcloud/>
        Options FollowSymlinks MultiViews
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/nextcloud_error.log
    CustomLog ${APACHE_LOG_DIR}/nextcloud_access.log combined
</VirtualHost>

Stap 6: Nextcloud Configureren

  • Herstart Apache om de configuratie toe te passen:
sudo a2ensite nextcloud
sudo a2enmod rewrite
sudo systemctl restart apache2

Stap 7: Voltooi de Installatie door de Webinterface

Open je browser en ga naar http://yourdomain.com/nextcloud. Volg de instructies op het scherm om de installatie te voltooien.

Conclusie

Gefeliciteerd! Je hebt Nextcloud succesvol geïnstalleerd op een Ubuntu 24.04 server VPS. Geniet van je eigen cloud opslag oplossing!

Windows VPS Deutschland

Windows VPS España

Windows VPS Nederland

Windows VPS Italia

Windows VPS Portugal

VPS Windows Italia

Windows VPS

Windows VPS

Windows VPS Sverige

Windows VPS Norge

Windows VPS

Windows VPS Türkiye

Windows RDS (Remote Desktop Services)

Windows VPS

Explore more

More on this topic

Netcloud24
Netcloud24
Cloud Infrastructure Expert · NetCloud24

Comments are closed.