NextCloud Full Setup In Ubuntu 18.4 LTS and ARM

Nextcloud is a suite of client-server software for creating and using file hosting services.

step 1:- Install Mysql server.

Step 2:- Install MariaDB

Step 3:- sudo Mysql

NextCloud database Setup

Step 4:-Mysql> CREATE DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
Mysql> GRANT ALL ON nextcloud.* TO ‘nextclouduser’@’localhost’ IDENTIFIED BY ‘change-with-strong-                      password’;
Mysql> FLUSH PRIVILEGES;
Mysql> EXIT;

Install Apache with extension

Step 5:- sudo apt install apache2 php7.2 php7.2-gd php7.2-json php7.2-mysql php7.2-curl php7.2-mbstring                            php7.2-intl php7.2-imagick php7.2-xml php7.2-zip libapache2-mod-php7.2

For Allow All apache service from Firewall

Step 6:- sudo ufw allow ‘Apache Full’

For Download NextCloude

Step 7 :- wget https://download.nextcloud.com/server/releases/nextcloud-15.0.0.zip -P /tmp

For Unzip that download NextCloud Zip file

Step 8:-sudo unzip /tmp/nextcloud-15.0.0.zip -d /var/www

Step 9:- sudo chown -R www-data: /var/www/nextcloud

For configure Apache

Step 10 :- sudo nano /etc/apache2/conf-available/nextcloud.conf or sudo vi /etc/apache2/conf-available/nextcloud.conf

Paste this code

Alias /nextcloud “/var/www/nextcloud/”

<Directory /var/www/nextcloud/>
Options +FollowSymlinks
AllowOverride All

<IfModule mod_dav.c>
Dav off
</IfModule>

SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud

</Directory>

For save this file

Step 11:- Type ESC:x

For Enable the newly added configuration and all required Apache modules with:

Step 12:- sudo a2enconf nextcloud
sudo a2enmod rewrite
sudo a2enmod headers
sudo a2enmod env
sudo a2enmod dir
sudo a2enmod mime

For Restart Apache server

Step 13:- sudo systemctl reload apache2

now you can put server ip address in browser like

Ex:- http://192.168.xx.xx/nextcloud

Finish Setup……..

 

 

 

Was this article helpful?

Related Articles

Leave A Comment?