{"id":8753,"date":"2024-05-29T08:03:15","date_gmt":"2024-05-29T08:03:15","guid":{"rendered":"https:\/\/www.webhi.com\/how-to\/?p=8753"},"modified":"2024-05-29T08:03:17","modified_gmt":"2024-05-29T08:03:17","slug":"install-nextcloud-ubuntu-24-04-22-04-20-04","status":"publish","type":"post","link":"https:\/\/www.webhi.com\/how-to\/install-nextcloud-ubuntu-24-04-22-04-20-04\/","title":{"rendered":"How to Install Nextcloud on Ubuntu 24.04\/22.04\/20.04"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1200\" height=\"675\" src=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2024\/05\/nextcloud_install_en.jpg\" alt=\"Install Nextcloud on Ubuntu Self-hosted cloud storage guide 24.04\/22.04\" class=\"wp-image-8768\" srcset=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2024\/05\/nextcloud_install_en.jpg 1200w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2024\/05\/nextcloud_install_en-300x169.jpg 300w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2024\/05\/nextcloud_install_en-1024x576.jpg 1024w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2024\/05\/nextcloud_install_en-768x432.jpg 768w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2024\/05\/nextcloud_install_en-150x84.jpg 150w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"introduction\">Introduction<\/h2>\n\n\n\n<p><strong>Nextcloud<\/strong> is an open-source, self-hosted <strong>file sharing and collaboration platform<\/strong> designed for secure data storage and communication. It provides a robust alternative to commercial cloud services, offering complete control over your data. This guide will walk you through the installation of Nextcloud on Ubuntu 24.04\/22.04, ensuring your setup is secure and optimized.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"prerequisites\">Prerequisites<\/h2>\n\n\n\n<p>Before starting, ensure you have the following:<\/p>\n\n\n\n<ul>\n<li>An Ubuntu 24.04, 22.04 or 20.04 server instance.<\/li>\n\n\n\n<li>A non-root user with sudo privileges.<\/li>\n\n\n\n<li>A fully qualified domain name (FQDN) pointed to your server&#8217;s IP address.<\/li>\n\n\n\n<li>Basic knowledge of command-line operations.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-1-update-your-system\">Step 1: Update Your System<\/h2>\n\n\n\n<p>First, ensure your system is up-to-date. Run the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt update\n$ sudo apt upgrade -y<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-2-install-apache-web-server\">Step 2: Install Apache Web Server<\/h2>\n\n\n\n<p>Nextcloud requires a web server to serve its web interface. We&#8217;ll use Apache for this purpose.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt install apache2 -y<\/code><\/pre>\n\n\n\n<p>Enable and start Apache:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo systemctl enable apache2\n$ sudo systemctl start apache2<\/code><\/pre>\n\n\n\n<p>Check the status to ensure Apache is running:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo systemctl status apache2<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-3-install-php-and-necessary-extensions\">Step 3: Install PHP and Necessary Extensions<\/h2>\n\n\n\n<p>Nextcloud is built on PHP, so we need to install PHP along with several extensions required by Nextcloud.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt install php libapache2-mod-php php-mysql php-gd php-json php-curl php-mbstring php-intl php-imagick php-xml php-zip -y<\/code><\/pre>\n\n\n\n<p>Check the PHP version to ensure it installed correctly:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ php -v<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-4-install-mariadb-database-server\">Step 4: Install MariaDB Database Server<\/h2>\n\n\n\n<p>Nextcloud requires a database to store its data. We will use MariaDB, a popular MySQL fork.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt install mariadb-server -y<\/code><\/pre>\n\n\n\n<p>Secure the MariaDB installation:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo mysql_secure_installation<\/code><\/pre>\n\n\n\n<p>Follow the prompts to set the root password and remove unnecessary users and databases.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-5-create-a-database-for-nextcloud\">Step 5: Create a Database for Nextcloud<\/h2>\n\n\n\n<p>Log in to the MariaDB shell as the root user:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo mysql -u root -p<\/code><\/pre>\n\n\n\n<p>Create a database and user for Nextcloud:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"sql\" class=\"language-sql\">CREATE DATABASE nextcloud;\nCREATE USER 'nextclouduser'@'localhost' IDENTIFIED BY 'your_password';\nGRANT ALL PRIVILEGES ON nextcloud.* TO 'nextclouduser'@'localhost';\nFLUSH PRIVILEGES;\nEXIT;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-6-download-and-configure-nextcloud\">Step 6: Download and Configure Nextcloud<\/h2>\n\n\n\n<p>Navigate to the \/var\/www directory and download the latest version of Nextcloud:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ cd \/var\/www\n$ sudo wget https:\/\/download.nextcloud.com\/server\/releases\/latest.zip<\/code><\/pre>\n\n\n\n<p>Extract the downloaded archive:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt install unzip -y\n$ sudo unzip latest.zip<\/code><\/pre>\n\n\n\n<p>Set the correct permissions:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo chown -R www-data:www-data nextcloud\n$ sudo chmod -R 755 nextcloud<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-7-configure-apache-for-nextcloud\">Step 7: Configure Apache for Nextcloud<\/h2>\n\n\n\n<p>Create a new Apache configuration file for Nextcloud:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">sudo nano \/etc\/apache2\/sites-available\/nextcloud.conf<\/code><\/pre>\n\n\n\n<p>Add the following configuration:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"apacheconf\" class=\"language-apacheconf\"><strong>&lt;VirtualHost *:80&gt;<\/strong>\n    ServerAdmin admin@example.com\n    DocumentRoot \/var\/www\/nextcloud\n    ServerName your_domain\n\n    <strong>&lt;Directory \/var\/www\/nextcloud\/&gt;<\/strong>\n        Options +FollowSymlinks\n        AllowOverride All\n\n        <strong>&lt;IfModule mod_dav.c&gt;<\/strong>\n            Dav off\n        <strong>&lt;\/IfModule&gt;<\/strong>\n\n        SetEnv HOME \/var\/www\/nextcloud\n        SetEnv HTTP_HOME \/var\/www\/nextcloud\n\n    <strong>&lt;\/Directory&gt;<\/strong>\n\n    ErrorLog ${APACHE_LOG_DIR}\/nextcloud_error.log\n    CustomLog ${APACHE_LOG_DIR}\/nextcloud_access.log combined\n\n<strong>&lt;\/VirtualHost&gt;<\/strong><\/code><\/pre>\n\n\n\n<p>Enable the new configuration and the required Apache modules:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo a2ensite nextcloud.conf\n$ sudo a2enmod rewrite headers env dir mime<\/code><\/pre>\n\n\n\n<p>Restart Apache to apply the changes:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo systemctl restart apache2<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-8-install-and-configure-ssl\">Step 8: Install and Configure SSL<\/h2>\n\n\n\n<p>For security, it\u2019s crucial to use SSL\/TLS to encrypt the traffic between the server and the clients. We&#8217;ll use Certbot to obtain a free SSL certificate from Let&#8217;s Encrypt.<\/p>\n\n\n\n<p>Install Certbot and the Apache plugin:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt install certbot python3-certbot-apache -y<\/code><\/pre>\n\n\n\n<p>Obtain and install the SSL certificate:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo certbot --apache -d your_domain<\/code><\/pre>\n\n\n\n<p>Follow the prompts to complete the SSL installation. Certbot will automatically configure Apache to use the new certificate.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-9-complete-the-nextcloud-setup-in-browser\">Step 9: Complete the Nextcloud Setup in Browser<\/h2>\n\n\n\n<p>Open your web browser and navigate to your domain:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">https:\/\/your_domain<\/code><\/pre>\n\n\n\n<p>You will be greeted by the Nextcloud setup page. Complete the following steps:<\/p>\n\n\n\n<ol>\n<li><strong>Create an Admin Account:<\/strong>&nbsp;Provide a username and password for the Nextcloud admin account.<\/li>\n\n\n\n<li><strong>Database Configuration:<\/strong>&nbsp;Enter the database details you created earlier:\n<ul>\n<li><strong>Database User:<\/strong>&nbsp;nextclouduser<\/li>\n\n\n\n<li><strong>Database Password:<\/strong>&nbsp;your_password<\/li>\n\n\n\n<li><strong>Database Name:<\/strong>&nbsp;nextcloud<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Finish Setup:<\/strong>&nbsp;Click &#8220;Finish setup&#8221; to complete the installation.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-10-secure-your-nextcloud-installation\">Step 10: Secure Your Nextcloud Installation<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"configure-trusted-domains\">Configure Trusted Domains<\/h3>\n\n\n\n<p>Open the Nextcloud configuration file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo nano \/var\/www\/nextcloud\/config\/config.php<\/code><\/pre>\n\n\n\n<p>Add your domain to the trusted domains array:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">'trusted_domains' =&gt; \narray (\n  0 =&gt; 'localhost',\n  1 =&gt; 'your_domain',\n),<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"set-up-cron-job-for-background-tasks\">Set Up Cron Job for Background Tasks<\/h3>\n\n\n\n<p>Nextcloud requires background tasks to be executed regularly. Set up a cron job to handle this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo crontab -u www-data -e<\/code><\/pre>\n\n\n\n<p>Add the following line to run the cron job every 5 minutes:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">*\/5 * * * * php -f \/var\/www\/nextcloud\/cron.php<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-11-optimize-nextcloud-performance\">Step 11: Optimize Nextcloud Performance<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-and-configure-opcache\">Install and Configure Opcache<\/h3>\n\n\n\n<p>Opcache is a PHP extension that caches compiled PHP scripts to improve performance.<\/p>\n\n\n\n<p>Install Opcache:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt install php-opcache -y<\/code><\/pre>\n\n\n\n<p>Configure Opcache by editing the PHP configuration file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo nano \/etc\/php\/8.1\/apache2\/php.ini<\/code><\/pre>\n\n\n\n<p>Add or modify the following lines:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"properties\" class=\"language-properties\">opcache.enable=1\nopcache.interned_strings_buffer=8\nopcache.max_accelerated_files=10000\nopcache.memory_consumption=128\nopcache.save_comments=1\nopcache.revalidate_freq=1<\/code><\/pre>\n\n\n\n<p>Restart Apache to apply the changes:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo systemctl restart apache2<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-12-additional-configurations\">Step 12: Additional Configurations<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"enable-pretty-urls\">Enable Pretty URLs<\/h3>\n\n\n\n<p>To enable user-friendly URLs in Nextcloud, edit the&nbsp;<code>.htaccess<\/code>&nbsp;file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo nano \/var\/www\/nextcloud\/.htaccess<\/code><\/pre>\n\n\n\n<p>Add the following lines at the end:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\"><strong>&lt;IfModule mod_rewrite.c&gt;<\/strong>\n  RewriteEngine on\n  RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]\n  RewriteRule ^\\.well-known\/carddav \/remote.php\/dav\/ [R=301,L]\n  RewriteRule ^\\.well-known\/caldav \/remote.php\/dav\/ [R=301,L]\n<strong>&lt;\/IfModule&gt;<\/strong><\/code><\/pre>\n\n\n\n<p>Enable mod_rewrite in Apache:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"apacheconf\" class=\"language-apacheconf\">$ sudo a2enmod rewrite\n$ sudo systemctl restart apache2<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"increase-php-memory-limit\">Increase PHP Memory Limit<\/h3>\n\n\n\n<p>Edit the PHP configuration file to increase the memory limit for better performance:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo nano \/etc\/php\/8.1\/apache2\/php.ini<\/code><\/pre>\n\n\n\n<p>Set the memory limit to 512MB or higher:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"properties\" class=\"language-properties\">memory_limit = 512M<\/code><\/pre>\n\n\n\n<p>Restart Apache:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo systemctl restart apache2<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-13-using-nextcloud\">Step 13: Using Nextcloud<\/h2>\n\n\n\n<p>Your Nextcloud installation is now complete. You can start using Nextcloud by accessing it via your web browser. Explore its features such as file sharing, calendar, contacts, and various apps that enhance its functionality.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h2>\n\n\n\n<p>Installing Nextcloud on Ubuntu 24.04\/22.04 involves several steps, including setting up a web server, PHP, and a database server, followed by configuring SSL for secure communication. By following this guide, you should have a fully functional Nextcloud instance that provides a robust, self-hosted cloud storage solution. Remember to regularly update your Nextcloud instance and its dependencies to maintain security and performance.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Nextcloud is an open-source, self-hosted file sharing and collaboration platform designed for secure data storage and communication. It provides a robust alternative to commercial cloud services, offering complete control over your data. This guide will walk you through the installation of Nextcloud on Ubuntu 24.04\/22.04, ensuring your setup is secure and optimized. Prerequisites Before ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/www.webhi.com\/how-to\/install-nextcloud-ubuntu-24-04-22-04-20-04\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[188,69],"tags":[],"yoast_head":"\n<title>How to Install Nextcloud on Ubuntu 24.04\/22.04\/20.04 - WebHi Tutorials &amp; Documentations<\/title>\n<meta name=\"description\" content=\"Learn how to install Nextcloud on Ubuntu 24.04\/22.04 with this comprehensive guide. Secure your data with a robust, self-hosted cloud storage solution.\" \/>\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.webhi.com\/how-to\/install-nextcloud-ubuntu-24-04-22-04-20-04\/\" \/>\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 24.04\/22.04\/20.04 - WebHi Tutorials &amp; Documentations\" \/>\n<meta property=\"og:description\" content=\"Learn how to install Nextcloud on Ubuntu 24.04\/22.04 with this comprehensive guide. Secure your data with a robust, self-hosted cloud storage solution.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webhi.com\/how-to\/install-nextcloud-ubuntu-24-04-22-04-20-04\/\" \/>\n<meta property=\"og:site_name\" content=\"WebHi Tutorials &amp; Documentations\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webhi.technology\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-29T08:03:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-29T08:03:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2024\/05\/nextcloud_install_en.jpg\" \/>\n<meta name=\"author\" content=\"webhi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@WebHiTechnology\" \/>\n<meta name=\"twitter:site\" content=\"@WebHiTechnology\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"webhi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/install-nextcloud-ubuntu-24-04-22-04-20-04\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/install-nextcloud-ubuntu-24-04-22-04-20-04\/\"},\"author\":{\"name\":\"webhi\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54\"},\"headline\":\"How to Install Nextcloud on Ubuntu 24.04\/22.04\/20.04\",\"datePublished\":\"2024-05-29T08:03:15+00:00\",\"dateModified\":\"2024-05-29T08:03:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/install-nextcloud-ubuntu-24-04-22-04-20-04\/\"},\"wordCount\":689,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\"},\"articleSection\":[\"CMS &amp; Web development\",\"Linux system administration\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webhi.com\/how-to\/install-nextcloud-ubuntu-24-04-22-04-20-04\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/install-nextcloud-ubuntu-24-04-22-04-20-04\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/install-nextcloud-ubuntu-24-04-22-04-20-04\/\",\"name\":\"How to Install Nextcloud on Ubuntu 24.04\/22.04\/20.04 - WebHi Tutorials &amp; Documentations\",\"isPartOf\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#website\"},\"datePublished\":\"2024-05-29T08:03:15+00:00\",\"dateModified\":\"2024-05-29T08:03:17+00:00\",\"description\":\"Learn how to install Nextcloud on Ubuntu 24.04\/22.04 with this comprehensive guide. Secure your data with a robust, self-hosted cloud storage solution.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/install-nextcloud-ubuntu-24-04-22-04-20-04\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webhi.com\/how-to\/install-nextcloud-ubuntu-24-04-22-04-20-04\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/install-nextcloud-ubuntu-24-04-22-04-20-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webhi.com\/how-to\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Nextcloud on Ubuntu 24.04\/22.04\/20.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#website\",\"url\":\"https:\/\/www.webhi.com\/how-to\/\",\"name\":\"WebHi Tutorials &amp; Documentations\",\"description\":\"System administration and knowledge base\",\"publisher\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webhi.com\/how-to\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\",\"name\":\"WebHi Technology\",\"url\":\"https:\/\/www.webhi.com\/how-to\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png\",\"contentUrl\":\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png\",\"width\":288,\"height\":95,\"caption\":\"WebHi Technology\"},\"image\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webhi.technology\",\"https:\/\/twitter.com\/WebHiTechnology\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54\",\"name\":\"webhi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1780005063\",\"contentUrl\":\"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1780005063\",\"caption\":\"webhi\"},\"sameAs\":[\"https:\/\/www.webhi.com\/how-to\"],\"url\":\"https:\/\/www.webhi.com\/how-to\/author\/webhi\/\"}]}<\/script>\n","yoast_head_json":{"title":"How to Install Nextcloud on Ubuntu 24.04\/22.04\/20.04 - WebHi Tutorials &amp; Documentations","description":"Learn how to install Nextcloud on Ubuntu 24.04\/22.04 with this comprehensive guide. Secure your data with a robust, self-hosted cloud storage solution.","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.webhi.com\/how-to\/install-nextcloud-ubuntu-24-04-22-04-20-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Nextcloud on Ubuntu 24.04\/22.04\/20.04 - WebHi Tutorials &amp; Documentations","og_description":"Learn how to install Nextcloud on Ubuntu 24.04\/22.04 with this comprehensive guide. Secure your data with a robust, self-hosted cloud storage solution.","og_url":"https:\/\/www.webhi.com\/how-to\/install-nextcloud-ubuntu-24-04-22-04-20-04\/","og_site_name":"WebHi Tutorials &amp; Documentations","article_publisher":"https:\/\/www.facebook.com\/webhi.technology","article_published_time":"2024-05-29T08:03:15+00:00","article_modified_time":"2024-05-29T08:03:17+00:00","og_image":[{"url":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2024\/05\/nextcloud_install_en.jpg"}],"author":"webhi","twitter_card":"summary_large_image","twitter_creator":"@WebHiTechnology","twitter_site":"@WebHiTechnology","twitter_misc":{"Written by":"webhi","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/www.webhi.com\/how-to\/install-nextcloud-ubuntu-24-04-22-04-20-04\/#article","isPartOf":{"@id":"https:\/\/www.webhi.com\/how-to\/install-nextcloud-ubuntu-24-04-22-04-20-04\/"},"author":{"name":"webhi","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54"},"headline":"How to Install Nextcloud on Ubuntu 24.04\/22.04\/20.04","datePublished":"2024-05-29T08:03:15+00:00","dateModified":"2024-05-29T08:03:17+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webhi.com\/how-to\/install-nextcloud-ubuntu-24-04-22-04-20-04\/"},"wordCount":689,"commentCount":3,"publisher":{"@id":"https:\/\/www.webhi.com\/how-to\/#organization"},"articleSection":["CMS &amp; Web development","Linux system administration"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webhi.com\/how-to\/install-nextcloud-ubuntu-24-04-22-04-20-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webhi.com\/how-to\/install-nextcloud-ubuntu-24-04-22-04-20-04\/","url":"https:\/\/www.webhi.com\/how-to\/install-nextcloud-ubuntu-24-04-22-04-20-04\/","name":"How to Install Nextcloud on Ubuntu 24.04\/22.04\/20.04 - WebHi Tutorials &amp; Documentations","isPartOf":{"@id":"https:\/\/www.webhi.com\/how-to\/#website"},"datePublished":"2024-05-29T08:03:15+00:00","dateModified":"2024-05-29T08:03:17+00:00","description":"Learn how to install Nextcloud on Ubuntu 24.04\/22.04 with this comprehensive guide. Secure your data with a robust, self-hosted cloud storage solution.","breadcrumb":{"@id":"https:\/\/www.webhi.com\/how-to\/install-nextcloud-ubuntu-24-04-22-04-20-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webhi.com\/how-to\/install-nextcloud-ubuntu-24-04-22-04-20-04\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.webhi.com\/how-to\/install-nextcloud-ubuntu-24-04-22-04-20-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webhi.com\/how-to\/"},{"@type":"ListItem","position":2,"name":"How to Install Nextcloud on Ubuntu 24.04\/22.04\/20.04"}]},{"@type":"WebSite","@id":"https:\/\/www.webhi.com\/how-to\/#website","url":"https:\/\/www.webhi.com\/how-to\/","name":"WebHi Tutorials &amp; Documentations","description":"System administration and knowledge base","publisher":{"@id":"https:\/\/www.webhi.com\/how-to\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webhi.com\/how-to\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webhi.com\/how-to\/#organization","name":"WebHi Technology","url":"https:\/\/www.webhi.com\/how-to\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/","url":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png","contentUrl":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png","width":288,"height":95,"caption":"WebHi Technology"},"image":{"@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webhi.technology","https:\/\/twitter.com\/WebHiTechnology"]},{"@type":"Person","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54","name":"webhi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/image\/","url":"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1780005063","contentUrl":"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1780005063","caption":"webhi"},"sameAs":["https:\/\/www.webhi.com\/how-to"],"url":"https:\/\/www.webhi.com\/how-to\/author\/webhi\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/8753"}],"collection":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/comments?post=8753"}],"version-history":[{"count":4,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/8753\/revisions"}],"predecessor-version":[{"id":8774,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/8753\/revisions\/8774"}],"wp:attachment":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/media?parent=8753"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/categories?post=8753"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/tags?post=8753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}