Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Linux Distributions»Ubuntu»How to Install Nextcloud on Ubuntu 18.04 & 16.04

    How to Install Nextcloud on Ubuntu 18.04 & 16.04

    RahulBy RahulAugust 1, 20182 Mins ReadUpdated:June 3, 2019

    Nextcloud provides data access using web interface. It also provides options to sync and share across devices—all under your control. This tutorial will help you to install Nextcloud on Ubuntu 18.04 LTS Bionic Linux operating system.

    Step 1 – Prerequsites

    The first of all, to set up Nextcloud you must have running LAMP server on your Ubuntu 18.04 LTS Bionic system. If you already have running LAMP stack skip this step else use the following commands to install it.

    Install PHP

    Let’s start with the installation of PHP version 5.6 or higher version on your Ubuntu 18.04 LTS Bionic systems.

    sudo apt-get update
    sudo apt-get install -y php php-gd php-curl php-zip php-xml php-mbstring
    

    Install Apache2

    sudo apt-get install -y apache2 libapache2-mod-php
    

    Install MySQL

    Also install MySQL database server.

    sudo apt-get install -y mysql-server php-mysql
    

    Step 2 – Download Nextcloud Archive

    After successfully configuring lamp server on your system, Let’s download latest Nextcloud from its official website.

    cd /tmp
    wget https://download.nextcloud.com/server/releases/nextcloud-16.0.1.zip
    

    Now extract downloaded archive under website document root and set up appropriate permissions on files and directories.

    cd /var/www/html
    sudo unzip /tmp/nextcloud-16.0.1.zip
    sudo chown -R www-data:www-data nextcloud
    sudo chmod -R 755 nextcloud
    

    Now, remove the archive file.

    sudo rm -f /tmp/nextcloud-16.0.1.zip
    

    Step 3 – Create MySQL Database

    After extracting code, let’s create a MySQL database and user account for configuring Next cloud. Use the following set of command to log in to MySQL server and create database and user.

    mysql -u root -p
    Enter password:
    
    mysql> CREATE DATABASE nextcloud;
    mysql> GRANT ALL ON nextcloud.* to 'nextcloud'@'localhost' IDENTIFIED BY '_Pa$$w0rd_';
    mysql> FLUSH PRIVILEGES;
    mysql> quit
    

    Step 4 – Run Nextcloud Web Installer

    Access the Nextcloud directory in the web browser as below. Change localhost to your server IP address or domain name.

     http://localhost/nextcloud/
    

    Enter new admin credentials to create an admin account and provide the location of the data folder.

    Now slide your page down and input the database credentials and click on Finish Setup.

    After completing setup you will get admin dashboard. Where you can create a user, groups, assigned them permissions, etc.

    Congratulations, You have a working Nextcloud instance on your Ubuntu 18.04 LTS Bionic system.

    filemanager nextcloud owncloud
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Install Nextcloud on Debian 10/9/8
    Next Article How to Change MySQL Password Policy Level

    Related Posts

    How to Install Composer on Ubuntu 22.04

    Updated:June 24, 20223 Mins Read

    How to Install Apache Kafka on Ubuntu 22.04

    Updated:June 5, 20225 Mins Read

    Setting Up Environment Variables on Ubuntu

    Updated:May 28, 20222 Mins Read

    How to Install Apache Solr 9.0 on Ubuntu 22.04

    Updated:May 26, 20223 Mins Read

    How to Install .NET Core (dotnet) on Ubuntu 22.04

    Updated:May 25, 20224 Mins Read

    Changing the Login Screen Background in Ubuntu 22.04 & 20.04

    Updated:May 9, 20222 Mins Read

    2 Comments

    1. Luca on November 16, 2019 1:00 pm

      Excellent guide, thank you!

      Reply
    2. Trevor on August 24, 2019 7:45 pm

      Thanks that was perfect.

      I tried mariadb first because it’s more up to date but didn’t realize nextcloud wasn’t compatible.

      Reply

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Install Ionic Framework on Ubuntu 22.04
    • What is the /etc/hosts file in Linux
    • How to Install Angular CLI on Ubuntu 22.04
    • How to Install Composer on Ubuntu 22.04
    • How to Create DMARC Record For Your Domain
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.