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,
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.
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
As you can see in the output below, the latest PHP version (at the time of writing this article) is PHP 7.3
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'; FLUSH PRIVILEGES; EXIT;
With the database configured, now it’s time to download Nexcloud. First, navigate to the temporary folder
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
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
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.
You should see the NextCloud dashboard. You can manage your personal files, create new users or administer NextCloud from here.
For more information, please contact Jean-Paul, CEO of Rapid.Space (+33 629 02 44 25).