SlapOS Home SlapOS

    How To Install Nextcloud On Rapid.Space

    How To Install Nextcloud On Rapid.Space
    • Last Update:2021-11-03
    • Version:001
    • Language:en

    How To Install Nextcloud On Rapid.Space



    1. Access VPS via SSH
    2. Install Apache webserver
    3. Install PHP
    4. Install MariaDB database server
    5. Download Nextcloud
    6. Finish Installation of Nextcloud via a browser


    Access VPS via SSH

    🔗 How To Access A VPS Via Ssh On Rapid.Space (Presentation)

    Install Apache webserver

    Since Nexcloud will run on a web browser, the first step will be to install the Apache webserver. To achieve this, first update the system as root,

    su -
    apt update -y

    Next, to install Apache execute the command

    apt install apache2 libapache2-mod-php

    Once installed, verify the status of Apache  using the command

    systemctl status apache2

    From the output above, we can clearly see that the Apache webserver is up and running.

    Install PHP

    For Next Cloud to successfully run, we need to install PHP and other dependencies. To achieve this execute the command:

    apt-get install -y php php-gd php-curl php-zip php-dom php-xml php-simplexml php-mbstring php-common php-mysql php-intl php-apcu php-redis php-http-request

    To verify the version of PHP you have installed, run the command

    php -v

    As you can see in the output below, the latest PHP version (at the time of writing this article) is PHP 7.3

    Install MariaDB database server

    A database will be required to accommodate the installation files of Next Cloud during the installation process. For that reason, we shall install the MariaDB database as follows.

    apt install mariadb-client mariadb-server

    Once the installation is complete, log in to MySQL as shown

    mysql -u root -p

    Next, create a database for Next Cloud as shown

    CREATE DATABASE nextclouddb;
    GRANT ALL ON nextclouddb.* TO 'nextcloud_user'@'localhost' IDENTIFIED BY 'strong password';

    Download Nextcloud

    With the database configured, now it’s time to download Nexcloud. First, navigate to the temporary folder

    cd /tmp

    Download Nextcloud zip file using the command


    Next, unzip(apt-get install unzip) the compressed file using the command


    Next, move the unzipped folder to the webroot directory as shown

    mv nextcloud /var/www/html/

    Navigate to the document root folder  and change the file ownership to www-data .

    cd /var/www/html
    chown -R www-data:www-data nextcloud

    Also, change the file permissions as shown

    chmod -R 755 nextcloud

    Restart web server

    systemctl restart apache2.service

    Finish Installation of Nextcloud via a browser

    🔗 http://[your_ipv6_address]/nextcloud/index.php

    To install NextCloud on Debian 10 via a browser, open your favorite browser and browse your server’s IP as shown

    http://[your_ipv6_address]/nextcloud/index.php  (eg. http://[2001:67c:1254:64:f8de::1]/nextcloud/index.php )

    Be sure to fill in all the fields shown above with the corresponding values in the NextCloud database.

    When you are all set click “Finish setup”  This should usher you to Next Cloud’s dashboard.

    Finish Setup

    You should see the NextCloud dashboard. You can manage your personal files, create new users or administer NextCloud from here.