{"id":2494,"date":"2016-08-12T18:44:47","date_gmt":"2016-08-12T22:44:47","guid":{"rendered":"https:\/\/www.globo.tech\/learning-center\/?p=2494"},"modified":"2017-12-12T15:41:09","modified_gmt":"2017-12-12T20:41:09","slug":"install-nextcloud-ubuntu-16","status":"publish","type":"post","link":"https:\/\/www.globo.tech\/learning-center\/install-nextcloud-ubuntu-16\/","title":{"rendered":"How to install NextCloud on Ubuntu 16"},"content":{"rendered":"<h1>How to install NextCloud on Ubuntu 16<\/h1>\n<p>NextCloud is a platform for collaboratively sharing files, documents, calendars and contacts between devices and individuals. With NextCloud installed, you can replace Dropbox and Google services with those you host yourself, respecting the autonomy and privacy of your data. NextCloud works with all major operating systems and mobile platforms. As a fork of Owncloud, it is compatible with all Owncloud-based sync clients, and also integrates with standard calendar and email protocols. In this guide, we&#8217;ll be installing NextCloud on an Ubuntu 16.04 LTS server.<\/p>\n<h2>Getting Started<\/h2>\n<p>To complete this guide, you will need the following:<br \/>\n\u2022 1 Node (<a href=\"https:\/\/www.globo.tech\/cloud-server-pricing\" target=\"_blank\">Cloud Server<\/a> or <a href=\"http:\/\/www.globo.tech\/dedicated-server-hosting\" target=\"_blank\">Dedicated Server<\/a>) running Ubuntu 16.<br \/>\n\u2022 All commands should be run as the root user<br \/>\n\u2022 A LAMP stack using Nginx, PHP and MariaDB<\/p>\n<h2>Tutorial<\/h2>\n<p>Begin by updating your package cache. You&#8217;ll also need the unzip package, which isn&#8217;t a standard utility in Ubuntu&#8217;s default installation.<\/p>\n<p><code>apt-get update<br \/>\napt-get install unzip -y<\/code><\/p>\n<p>NextCloud requires a few additional PHP modules not included in the typical LAMP stack. We&#8217;ll install those next.<\/p>\n<p><code>apt-get install php7.0-mysql php7.0-curl php7.0-json php7.0-cgi php7.0 libapache2-mod-php7.0 php7.0-mcrypt php7.0-gd php7.0-mbstring php7.0-zip php7.0-dom php7.0-xml -y<\/code><\/p>\n<p>Fetch the NextCloud archive into your document root, then uncompress the archive.<\/p>\n<p><code>wget https:\/\/download.nextcloud.com\/server\/releases\/nextcloud-9.0.53.zip<br \/>\nunzip nextcloud-9.0.53.zip<br \/>\nmv nextcloud\/ \/var\/www\/html\/<\/code><\/p>\n<p>You can always find the latest NextCloud version at http:\/\/nextcloud.com\/install\/.<\/p>\n<p>Apache will need to create and update files in the NextCloud directory in order to synchronize them between devices. Here we&#8217;ll set up the correct access permissions.<\/p>\n<p><code>chown -R www-data. \/var\/www\/html\/nextcloud<\/code><\/p>\n<p>NextCloud also needs a database and database user to keep its data. Create the necessary database and credentials:<\/p>\n<p><code>mysql -u root -p<\/code><\/p>\n<p><code>CREATE DATABASE nextcloud;<br \/>\nGRANT ALL PRIVILEGES ON nextcloud.* TO 'nextclouduser'@'localhost' IDENTIFIED BY 'nextcloudpassword';<br \/>\nFLUSH PRIVILEGES;<br \/>\nEXIT<\/code><\/p>\n<p>With the new modules installed, Apache will need to be restarted so newly-launched PHP processes can use them.<\/p>\n<p><code>systemctl restart apache2.service<\/code><\/p>\n<p>The remaining steps are performed in NextCloud&#8217;s online installer. Visit http:\/\/your_ip\/nextcloud\/ to continue.<\/p>\n<p>Create your initial NextCloud user. Not only will this user be able to sync files, contacts, calendars and email, but it will also have administrative privileges on the server.<\/p>\n<p>You&#8217;ll also need to enter the database name and credentials as set up previously.<\/p>\n<h2>Conclusion<\/h2>\n<p>NextCloud is now running, and ready to synchronize data among all your devices. Continue by installing NextCloud&#8217;s file synchronization clients, and by integrating its calendar and contacts feeds into your email client of choice. Once you&#8217;ve got things working, be sure to share this article to help free others from proprietary cloud-based services.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>How to install NextCloud on Ubuntu 16 NextCloud is a platform for collaboratively sharing files, documents, calendars and contacts between devices and individuals. With NextCloud installed, you can replace Dropbox and Google services with those you host yourself, respecting the autonomy and privacy of your data. NextCloud works with all major operating systems and mobile<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[71],"tags":[],"class_list":["post-2494","post","type-post","status-publish","format-standard","hentry","category-applications","operating_system-ubuntu-16-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to install NextCloud on Ubuntu 16 - Globo.Tech<\/title>\n<meta name=\"description\" content=\"This tutorial will show you how to install NextCloud on your Ubuntu 16 server. Read now &amp; Start collaboratively sharing files, documents and more!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.globo.tech\/learning-center\/install-nextcloud-ubuntu-16\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install NextCloud on Ubuntu 16 - Globo.Tech\" \/>\n<meta property=\"og:description\" content=\"This tutorial will show you how to install NextCloud on your Ubuntu 16 server. Read now &amp; Start collaboratively sharing files, documents and more!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.globo.tech\/learning-center\/install-nextcloud-ubuntu-16\/\" \/>\n<meta property=\"og:site_name\" content=\"Globo.Tech\" \/>\n<meta property=\"article:published_time\" content=\"2016-08-12T22:44:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-12-12T20:41:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/09\/GloboTech-Logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"963\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"GloboTech Communications\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"GloboTech Communications\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/install-nextcloud-ubuntu-16\/\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/install-nextcloud-ubuntu-16\/\",\"name\":\"How to install NextCloud on Ubuntu 16 - Globo.Tech\",\"isPartOf\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#website\"},\"datePublished\":\"2016-08-12T22:44:47+00:00\",\"dateModified\":\"2017-12-12T20:41:09+00:00\",\"author\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87\"},\"description\":\"This tutorial will show you how to install NextCloud on your Ubuntu 16 server. Read now & Start collaboratively sharing files, documents and more!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/install-nextcloud-ubuntu-16\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.globo.tech\/learning-center\/install-nextcloud-ubuntu-16\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/install-nextcloud-ubuntu-16\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.globo.tech\/learning-center\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install NextCloud on Ubuntu 16\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#website\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/\",\"name\":\"Globo.Tech\",\"description\":\"Welcome to the Official Globo.Tech Learning Center\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87\",\"name\":\"GloboTech Communications\",\"sameAs\":[\"http:\/\/www.gtcomm.net\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install NextCloud on Ubuntu 16 - Globo.Tech","description":"This tutorial will show you how to install NextCloud on your Ubuntu 16 server. Read now & Start collaboratively sharing files, documents and more!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.globo.tech\/learning-center\/install-nextcloud-ubuntu-16\/","og_locale":"en_US","og_type":"article","og_title":"How to install NextCloud on Ubuntu 16 - Globo.Tech","og_description":"This tutorial will show you how to install NextCloud on your Ubuntu 16 server. Read now & Start collaboratively sharing files, documents and more!","og_url":"https:\/\/www.globo.tech\/learning-center\/install-nextcloud-ubuntu-16\/","og_site_name":"Globo.Tech","article_published_time":"2016-08-12T22:44:47+00:00","article_modified_time":"2017-12-12T20:41:09+00:00","og_image":[{"width":1920,"height":963,"url":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/09\/GloboTech-Logo.png","type":"image\/png"}],"author":"GloboTech Communications","twitter_misc":{"Written by":"GloboTech Communications","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.globo.tech\/learning-center\/install-nextcloud-ubuntu-16\/","url":"https:\/\/www.globo.tech\/learning-center\/install-nextcloud-ubuntu-16\/","name":"How to install NextCloud on Ubuntu 16 - Globo.Tech","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/#website"},"datePublished":"2016-08-12T22:44:47+00:00","dateModified":"2017-12-12T20:41:09+00:00","author":{"@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"description":"This tutorial will show you how to install NextCloud on your Ubuntu 16 server. Read now & Start collaboratively sharing files, documents and more!","breadcrumb":{"@id":"https:\/\/www.globo.tech\/learning-center\/install-nextcloud-ubuntu-16\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.globo.tech\/learning-center\/install-nextcloud-ubuntu-16\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.globo.tech\/learning-center\/install-nextcloud-ubuntu-16\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.globo.tech\/learning-center\/"},{"@type":"ListItem","position":2,"name":"How to install NextCloud on Ubuntu 16"}]},{"@type":"WebSite","@id":"https:\/\/www.globo.tech\/learning-center\/#website","url":"https:\/\/www.globo.tech\/learning-center\/","name":"Globo.Tech","description":"Welcome to the Official Globo.Tech Learning Center","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87","name":"GloboTech Communications","sameAs":["http:\/\/www.gtcomm.net"]}]}},"_links":{"self":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2494","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/comments?post=2494"}],"version-history":[{"count":4,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2494\/revisions"}],"predecessor-version":[{"id":3979,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2494\/revisions\/3979"}],"wp:attachment":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media?parent=2494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/categories?post=2494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/tags?post=2494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}