{"id":36730,"date":"2022-06-16T15:41:45","date_gmt":"2022-06-16T15:41:45","guid":{"rendered":"https:\/\/www.techrepublic.com\/?p=3978055"},"modified":"2022-06-16T15:41:45","modified_gmt":"2022-06-16T15:41:45","slug":"how-to-install-the-latest-version-of-nextcloud-on-ubuntu-server-22-04","status":"publish","type":"post","link":"https:\/\/cloudnewshub.com\/?p=36730","title":{"rendered":"How to install the latest version of Nextcloud on Ubuntu Server 22.04"},"content":{"rendered":"<div id>\n<p> Jack Wallen takes a slightly easier route for the installation of the latest version of the Nextcloud cloud platform. <\/p>\n<\/div>\n<div id>\n<figure id=\"attachment_3978063\" aria-describedby=\"caption-attachment-3978063\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-article wp-image-3978063\" src=\"http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/06\/how-to-install-the-latest-version-of-nextcloud-on-ubuntu-server-22-04.jpg\" alt=\"cloud computing technology concept transfer database to cloud. There is a prominent large cloud icon in the center and a small white icon on the connected polygons with a dark blue background.\" width=\"770\" height=\"433\"><figcaption id=\"caption-attachment-3978063\" class=\"wp-caption-text\">Image: Ar_TH\/Adobe Stock<\/figcaption><\/figure>\n<p>For those that aren\u2019t in the know, Nextcloud is a cloud-based suite of tools that includes things like document and file management, calendar, chat (video and audio), email, forms and contacts. In fact, for those interested, Nextcloud could easily become a drop-in replacement for the likes of either Google Workspace or <a href=\"https:\/\/click.linksynergy.com\/fs-bin\/click?id=dQLmXUhvkMU&amp;offerid=817940.6&amp;type=3&amp;subid=0\" target=\"_blank\" rel=\"nofollow noopener sponsored noreferrer\">Microsoft 365<\/a>. I\u2019ve been using Nextcloud since its early days and I am confident that just about anyone can benefit from this platform.<\/p>\n<p>I want to show you how to install the latest version of Nextcloud (v24) on Ubuntu Server 22.04. This time around, however, I\u2019m going to make use of their installer script. Although this script doesn\u2019t strip away some of the manual installation steps, it does make it slightly easier.<\/p>\n<p>With that said, let\u2019s get to the installation.<\/p>\n<p><strong>SEE: <a href=\"https:\/\/www.techrepublic.com\/resource-library\/whitepapers\/hiring-kit-cloud-engineer\/\" target=\"_blank\" rel=\"nofollow noopener sponsored noreferrer\">Hiring Kit: Cloud Engineer<\/a> (TechRepublic Premium)<\/strong><\/p>\n<h2>What you\u2019ll need<\/h2>\n<p>You\u2019ll only need two things to make this work: A running instance of Ubuntu Server 22.04 and a user with sudo privileges. That\u2019s it \u2013 let\u2019s make like Kate Bush and do some cloudbusting.<\/p>\n<aside class=\"pinbox right\">\n<h3 class=\"heading\">Cloud: Must-read coverage<\/h3>\n<\/aside>\n<h2>How to install the necessary dependencies<\/h2>\n<p>The installer script doesn\u2019t handle the installation of the dependencies, so we have to take care of that first. To begin, let\u2019s install the full LAMP stack. Log into your Ubuntu Server and issue the command:<\/p>\n<p><code>sudo apt-get install lamp-server^ -y<\/code><\/p>\n<p>When that installation completes, take care of the PHP requirements with:<\/p>\n<p><code>sudo apt-get install php zip libapache2-mod-php php-gd php-json php-mysql php-curl php-mbstring php-intl php-imagick php-xml php-zip php-mysql php-bcmath php-gmp zip -y<\/code><\/p>\n<p>Restart Apache with:<\/p>\n<p><code>sudo systemctl restart apache2<\/code><\/p>\n<p>Next, we\u2019ll secure the database installation with:<\/p>\n<p><code>sudo mysql_secure_installation<\/code><\/p>\n<p>Make sure the document root is owned by the Apache group with:<\/p>\n<p><code>sudo chown -R www-data.www-data \/var\/www\/html<\/code><\/p>\n<h2>How to create the database<\/h2>\n<p>Next, we must create a database. Log in to the MySQL console with:<\/p>\n<p><code>sudo mysql -u root -p<\/code><\/p>\n<p>Create the database with:<\/p>\n<p><code>CREATE DATABASE nextcloud;<\/code><\/p>\n<p>Next, create the Nextcloud database user with the command:<\/p>\n<p><code>CREATE USER 'nextcloud'@'localhost' IDENTIFIED BY 'PASSWORD';<\/code><\/p>\n<p>Where <code>PASSWORD<\/code> is a unique\/strong password.<\/p>\n<p>We now need to give the nextcloud user the necessary permissions with the command:<\/p>\n<p><code>GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextcloud'@'localhost';<\/code><\/p>\n<p>Flush the privileges and exit the console with the two commands:<\/p>\n<p><code>FLUSH PRIVILEGES;<\/code><\/p>\n<p><code>exit<\/code><\/p>\n<h2>How to download the installer script<\/h2>\n<p>Change into the document root with:<\/p>\n<p><code>cd \/var\/www\/html<\/code><\/p>\n<p>Download the installer with the command:<\/p>\n<p><code>wget https:\/\/download.nextcloud.com\/server\/installer\/setup-nextcloud.php<\/code><\/p>\n<h2>How to run the installer<\/h2>\n<p>Open a web browser and point it to <code>http:\/\/SERVER\/setup-nextcloud.php<\/code>, where <code>SERVER<\/code> is the IP address or domain of the hosting server. You will be greeted by the first window in the installer wizard. Click Next and you should see a window indicating all dependency checks have passed (<strong>Figure A<\/strong>), which allows you to set the document root for the installation.<\/p>\n<p><strong>Figure A<\/strong><\/p>\n<figure id=\"attachment_3978059\" aria-describedby=\"caption-attachment-3978059\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3978059\" src=\"http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/06\/how-to-install-the-latest-version-of-nextcloud-on-ubuntu-server-22-04-1.jpg\" alt width=\"309\" height=\"480\"><figcaption id=\"caption-attachment-3978059\" class=\"wp-caption-text\">The Nextcloud 24 dependency check window allows you to set the document root for the installation.<\/figcaption><\/figure>\n<p>You can either create a new directory house Nextcloud (by typing the name field) or type <code>a .<\/code> to install it in the web server document root. Do one or the other, then click Next and the script will download and unpack everything necessary. This will take anywhere from two to 10 minutes depending on the speed of your network connection and the power of your server.<\/p>\n<p>Once Nextcloud has been installed, you will be prompted to click Next again, where you\u2019ll be delivered to the database setup window (<strong>Figure B<\/strong>).<\/p>\n<p><strong>Figure B<\/strong><\/p>\n<figure id=\"attachment_3978060\" aria-describedby=\"caption-attachment-3978060\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3978060\" src=\"http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/06\/how-to-install-the-latest-version-of-nextcloud-on-ubuntu-server-22-04-2.jpg\" alt width=\"342\" height=\"945\"><figcaption id=\"caption-attachment-3978060\" class=\"wp-caption-text\">Configuring the database for Nextcloud.<\/figcaption><\/figure>\n<p>First, create an admin user and make sure to select MySQL\/MariaDB as the database. You will then fill out the database information as such:<\/p>\n<ul>\n<li>Database user: <code>nextcloud<\/code><\/li>\n<li>Database password: the password you created during the creation of the database user in the MySQL console.<\/li>\n<li>Database name: <code>nextcloud<\/code><\/li>\n<\/ul>\n<p>Leave localhost as is and then click Install. Once the database is taken care of, you\u2019ll be asked if you want to install the recommended apps (<strong>Figure C<\/strong>).<\/p>\n<p><strong>Figure C<\/strong><\/p>\n<figure id=\"attachment_3978061\" aria-describedby=\"caption-attachment-3978061\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-article wp-image-3978061\" src=\"http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/06\/how-to-install-the-latest-version-of-nextcloud-on-ubuntu-server-22-04-3.jpg\" alt width=\"770\" height=\"902\"><figcaption id=\"caption-attachment-3978061\" class=\"wp-caption-text\">Installing the recommended apps for Nextcloud 24.<\/figcaption><\/figure>\n<p>Click Install Recommended Apps, and when that finishes, you\u2019ll be presented with the Nextcloud main window (<strong>Figure D<\/strong>).<\/p>\n<p><strong>Figure D<\/strong><\/p>\n<figure id=\"attachment_3978062\" aria-describedby=\"caption-attachment-3978062\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-article wp-image-3978062\" src=\"http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/06\/how-to-install-the-latest-version-of-nextcloud-on-ubuntu-server-22-04-4.jpg\" alt width=\"770\" height=\"420\"><figcaption id=\"caption-attachment-3978062\" class=\"wp-caption-text\">The Nextcloud main window is ready for you to customize your installation.<\/figcaption><\/figure>\n<p>You can now further customize your installation by installing more apps or simply start working with your new Nextcloud cloud platform. Congratulations on taking your productivity to the next level.<\/p>\n<p><em><strong>Subscribe to TechRepublic\u2019s <a href=\"https:\/\/www.youtube.com\/channel\/UCKyMiy1zmJ7aZ8aP6DLZLIA\" target=\"_blank\" rel=\"nofollow noopener sponsored noreferrer\">How To Make Tech Work on YouTube<\/a> for all the latest tech advice for business pros from Jack Wallen.<\/strong><\/em><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Jack Wallen takes a slightly easier route for the installation of the latest version of the Nextcloud cloud platform. Image: Ar_TH\/Adobe Stock For those that aren\u2019t in the know, Nextcloud is a cloud-based suite of tools that includes things like document and file management, calendar, chat (video and audio), email, forms and contacts. In fact, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":36731,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40,783,27],"tags":[],"class_list":["post-36730","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-cloudsync","category-software"],"_links":{"self":[{"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/posts\/36730","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=36730"}],"version-history":[{"count":0,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/posts\/36730\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/media\/36731"}],"wp:attachment":[{"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=36730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=36730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=36730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}