How to install NextCloud 13 on Ubuntu 17.04

To install NextCloud 13 on Ubuntu 17.04

Next cloud is open source software for creating and using file hosting services. It has a lot of extra Calendars, Sync and Contacts feature, apart from their file hosting features. It is a great free alternative to some popular services such as Google Drive, Dropbox, Box, etc. It is so simple to install Next cloud 12.03 on CentOS 7, and this article covers the ground in the same process.

Prerequisites

  • NextCloud requires a webserver to functionally based on LAMP setup on your system and also with following required PHP modules.
  • apt-get install php-mysql php-curl php-json php-cgi php libapache2-mod-php php-mcrypt php-xmlrpc php-gd php-mbstring php php-common php-xmlrpc php-soap php-xml php-intl php-cli php-ldap php-zip php-readline php-imap php-tidy php-recode php-sqlite3 php-xdebug php-gettext php-dev php-pear php-memcache php-memcached php-bz2 php-apcu-bc php-igbinary ttf-dejavu-core

Installing NextCloud 13

It is really very essential to update your system repository before you begin the installation of NextCloud 13.

root@linuxhelp1:~# apt-get update
Hit:1 http://old-releases.ubuntu.com/ubuntu zesty InRelease
Hit:2 http://old-releases.ubuntu.com/ubuntu zesty-updates InRelease
Hit:3 http://old-releases.ubuntu.com/ubuntu zesty-backports InRelease
Hit:4 http://old-releases.ubuntu.com/ubuntu zesty-security InRelease
Reading package lists... Done

Once it is done, you need to create a new database by making use of the following command. Also, make the necessary configuration as specified below.

root@linuxhelp1:~# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with   or g.
Your MariaDB connection id is 10
Server version: 10.1.25-MariaDB- Ubuntu 17.04
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type ' help '  or ' h'  for help. Type ' c'  to clear the current input statement.
MariaDB [(none)]>  create database nextcloud 
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]>  grant all privileges on nextcloud.* to ' nextuser' @' localhost'  identified by ' 123'  
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]>  flush privileges 
Query OK, 0 rows affected (0.01 sec)
MariaDB [(none)]>  exit 
Bye

Once it is done, you need to switch to the directory as follows.

root@linuxhelp1:~# cd /home/user/Downloads/

And then unzip the package over there.

root@linuxhelp1:/home/user/Downloads# unzip nextcloud-13.0.1.zip 
Archive:  nextcloud-13.0.1.zip
   creating: nextcloud/
   creating: nextcloud/ocs/
  inflating: nextcloud/ocs/v2.php    
  inflating: nextcloud/ocs/v1.php    
  inflating: nextcloud/ocs/providers.php  
  inflating: nextcloud/console.php   
   creating: nextcloud/ocs-provider/
  inflating: nextcloud/ocs-provider/index.php
.
.
   creating: nextcloud/resources/
   creating: nextcloud/resources/config/
  inflating: nextcloud/resources/config/mimetypemapping.dist.json  
  inflating: nextcloud/resources/config/ca-bundle.crt  
  inflating: nextcloud/resources/config/mimetypealiases.dist.json  
   creating: nextcloud/resources/codesigning/
  inflating: nextcloud/resources/codesigning/root.crt  
  inflating: nextcloud/resources/codesigning/root.crl  
  inflating: nextcloud/resources/codesigning/core.crt

After that, move the file.

 root@linuxhelp1:/home/user/Downloads# mv nextcloud /var/www/

And switch to the directory.

root@linuxhelp1:/home/user/Downloads# cd /var/www/

And change ownership and permission for the directory with the help of the following commands.

root@linuxhelp1:/var/www# chown -R www-data.www-data nextcloud
root@linuxhelp1:/var/www# chmod -R 775 nextcloud

Once it is done, you shall create virtualhost for NextCloud.

root@linuxhelp1:/var/www# vim /etc/apache2/sites-available/nextcloud.conf

And add the following lines to it.

< VirtualHost *:80>  
ServerName www.linuxhelp1.com
DocumentRoot /var/www/nextcloud/
< Directory /var/www/nextcloud/> 
AllowOverride All
allow from all
< /Directory> 
< /VirtualHost> 

Once it is done, you need to enable the site access and for that, you shall run the following command.

root@linuxhelp1:/var/www# a2ensite nextcloud.conf
Enabling site nextcloud.
To activate the new configuration, you need to run:
  systemctl reload apache2

After that, you shall enable the rewrite module in the following manner.

root@linuxhelp1:/var/www# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
  systemctl restart apache2

Once it is done, you shall disable the site access.

root@linuxhelp1:/var/www# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
  systemctl reload apache2

And then, restart the apache2 service as follows.

root@linuxhelp1:/var/www# systemctl restart apache2

Now, we shall continue the process in the graphical manner so open a browser and type http://local IP (or) domain name in the URL search field.

Give the Administrator credentials.


And check configuration after that click finish setup.

Now NextCloud application appears.

You can check the version of NextCloud which you have just installed.


With this, the method to install NextCloud 13 on Ubuntu 17.04.

FAQ
Q
what are the open source cloud storage available?
A
Here I have to give some of the Cloud storages as "NextCloud, Own Cloud, Google Drive, Mega, Dropbox and etc".
Q
What is the default Credentials for login in nextcloud?
A
The default username and password were "Admin"
Q
where can I get the latest releases for nextcloud?
A
The latest releases for nextcloud by below link https://download.nextcloud.com/server/releases/
Q
What is NextCloudPi?
A
NextCloudPi is a ready to use image for Raspberry Pi that runs NextCloud software to enable your Pi to be a home cloud server. This code also generates the NextCloudPi ARM docker image.
Q
Do I have to configure every entry in the WebUI and the TU in nextcloudI?
A
No. You only need to run the Wizard to have a working Nextcloud instance. Everything else is optional.