{"id":3358,"date":"2022-11-03T11:14:59","date_gmt":"2025-02-15T15:09:52","guid":{"rendered":""},"modified":"2025-02-02T00:46:20","modified_gmt":"2025-02-01T23:46:20","slug":"how-to-install-nextcloud-on-windows-vps","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/how-to-install-nextcloud-on-windows-vps\/","title":{"rendered":"Linux VPS &#038; VPS Windows Setup Guide | NetCloud24 Nextcloud on Windows VPS"},"content":{"rendered":"<p>\u00a0<\/p>\n<\/p>\n<header><\/header>\n<section>\n<h2>Introduction<\/h2>\n<p><strong>Nextcloud<\/strong> is a self-hosted cloud storage solution that allows you to store, share, and access your files from anywhere. In this guide, we&#8217;ll show you how to install Nextcloud on a .<\/p>\n<\/section>\n<section>\n<h2>Prerequisites<\/h2>\n<p>Before starting the installation, ensure the following:<\/p>\n<ul>\n<li>A  with administrative privileges.<\/li>\n<li>PHP 7.4 or higher installed on your system.<\/li>\n<li>A web server (e.g., Apache) installed.<\/li>\n<li>MySQL or MariaDB installed for database management.<\/li>\n<li>Internet access to download the necessary software.<\/li>\n<\/ul>\n<\/section>\n<section>\n<h2>Step 1: Install Dependencies<\/h2>\n<p>Nextcloud requires PHP, a web server, and a database server. Follow the steps below to install these dependencies on your :<\/p>\n<ol>\n<li><strong>Install PHP:<\/strong> Download and install PHP from the official website: <a href=\"https:\/\/windows.php.net\/download\/\" target=\"_blank\" rel=\"follow\">PHP for Windows<\/a>.<\/li>\n<li><strong>Install Apache Web Server:<\/strong> Download and install Apache from the official website: <a href=\"https:\/\/httpd.apache.org\/download.cgi\" target=\"_blank\" rel=\"follow\">Apache Download<\/a>.<\/li>\n<li><strong>Install MySQL\/MariaDB:<\/strong> Download and install MySQL or MariaDB. You can get MySQL from: <a href=\"https:\/\/dev.mysql.com\/downloads\/installer\/\" target=\"_blank\" rel=\"follow\">MySQL Installer<\/a>, or MariaDB from: <a href=\"https:\/\/mariadb.org\/download\/\" target=\"_blank\" rel=\"follow\">MariaDB Download<\/a>.<\/li>\n<\/ol>\n<\/section>\n<section>\n<h2>Step 2: Download and Extract Nextcloud<\/h2>\n<p>Now, you need to download and extract the Nextcloud files on your :<\/p>\n<ol>\n<li>Go to the official Nextcloud download page: <a href=\"https:\/\/nextcloud.com\/install\/\" target=\"_blank\" rel=\"follow\">Nextcloud Download<\/a>.<\/li>\n<li>Download the latest stable version of Nextcloud.<\/li>\n<li>Extract the Nextcloud archive to the document root of your web server. For Apache, this is typically located in the <strong>C:\\xampp\\htdocs<\/strong> directory (if using XAMPP) or <strong>C:\\Apache24\\htdocs<\/strong> for standalone installations.<\/li>\n<\/ol>\n<\/section>\n<section>\n<h2>Step 3: Configure the Database<\/h2>\n<p>Next, you&#8217;ll need to create a MySQL or MariaDB database for Nextcloud:<\/p>\n<ol>\n<ol>\n<li>Log in to MySQL or MariaDB using the command line:<\/li>\n<\/ol>\n<\/ol>\n<pre>mysql -u root -p<\/pre>\n<ol>\n<ol>\n<li>Create a new database:<\/li>\n<\/ol>\n<\/ol>\n<pre>CREATE DATABASE nextcloud;<\/pre>\n<ol>\n<ol>\n<li>Create a new user and grant privileges:<\/li>\n<\/ol>\n<\/ol>\n<pre>CREATE USER 'nextclouduser'@'localhost' IDENTIFIED BY 'your_password';<\/pre>\n<pre>GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextclouduser'@'localhost';<\/pre>\n<ol>\n<ol>\n<li>Flush the privileges:<\/li>\n<\/ol>\n<\/ol>\n<pre>FLUSH PRIVILEGES;<\/pre>\n<ol>\n<ol>\n<li>Exit MySQL or MariaDB:<\/li>\n<\/ol>\n<\/ol>\n<pre>EXIT;<\/pre>\n<\/section>\n<section>\n<h2>Step 4: Configure Apache for Nextcloud<\/h2>\n<p>You need to configure Apache to serve Nextcloud on your :<\/p>\n<ol>\n<ol>\n<li>Open the Apache configuration file (<strong>httpd.conf<\/strong>) located in <strong>C:\\xampp\\apache\\conf\\httpd.conf<\/strong> or <strong>C:\\Apache24\\conf\\httpd.conf<\/strong>.<\/li>\n<li>Ensure that the following modules are enabled:<\/li>\n<\/ol>\n<\/ol>\n<pre>LoadModule rewrite_module modules\/mod_rewrite.so<\/pre>\n<pre>LoadModule headers_module modules\/mod_headers.so<\/pre>\n<ol>\n<ol>\n<li>Define a virtual host for Nextcloud:<\/li>\n<\/ol>\n<\/ol>\n<pre>\r\n    DocumentRoot \"C:\/xampp\/htdocs\/nextcloud\"\r\n    ServerName nextcloud.example.com\r\n    &lt;Directory \"C:\/xampp\/htdocs\/nextcloud\"&gt;\r\n        AllowOverride All\r\n        Require all granted\r\n    \r\n\r\n                <\/pre>\n<ol>\n<li>Restart Apache to apply the changes.<\/li>\n<\/ol>\n<\/section>\n<section>\n<h2>Step 5: Complete Nextcloud Installation via Web Interface<\/h2>\n<p>Now that everything is set up, you can finish the installation via the Nextcloud web interface:<\/p>\n<ol>\n<li>Open your web browser and go to <strong>http:\/\/\/nextcloud<\/strong> or <strong>http:\/\/nextcloud.example.com<\/strong> if you set up a domain.<\/li>\n<li>You will be prompted to create an admin account and enter the database details:<\/li>\n<ul>\n<li>Database user: <strong>nextclouduser<\/strong><\/li>\n<li>Database password: Your password<\/li>\n<li>Database name: <strong>nextcloud<\/strong><\/li>\n<li>Database host: <strong>localhost<\/strong><\/li>\n<\/ul>\n<li>Click <strong>Finish setup<\/strong> to complete the installation.<\/li>\n<\/ol>\n<\/section>\n<section>\n<h2>Step 6: Secure Nextcloud with SSL (Optional)<\/h2>\n<p>To secure your Nextcloud installation, it&#8217;s recommended to enable HTTPS using a free SSL certificate from Let&#8217;s Encrypt:<\/p>\n<ol>\n<li>Install Certbot on your .<\/li>\n<li>Follow the instructions on the Certbot website to configure SSL for your domain.<\/li>\n<li>Once SSL is configured, update your Nextcloud configuration to use HTTPS by editing the <strong>config.php<\/strong> file and setting the <strong>&#8216;overwrite.cli.url&#8217;<\/strong> parameter to use HTTPS.<\/li>\n<\/ol>\n<\/section>\n<section>\n<h2>Conclusion<\/h2>\n<p>You&#8217;ve successfully installed Nextcloud on your . Now, you can begin using Nextcloud to store, share, and access your files securely from any device.<\/p>\n<\/section>\n<footer>\n<p>\u00a9 2024. For more information on  solutions, visit <a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\" rel=\"follow\">NetCloud24<\/a>.<\/p>\n<\/footer>\n<div class=\"post-author-box\" style=\"border-top:1px solid #ddd;margin-top:20px;padding-top:15px;\">\n<p><strong>Author:<\/strong> \u0141ukasz Bodziony<\/p>\n<p><strong>Website:<\/strong> <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a><\/p>\n<p><em>\u0141ukasz Bodziony is the CEO and founder of <a href=\"https:\/\/netcloud24.com\" target=\"_blank\" rel=\"dofollow\">NETCLOUD24<\/a>, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance <strong>Windows VPS<\/strong> and <strong>Remote Desktop Services (RDS)<\/strong> solutions to clients across Europe, North America, and beyond.<\/em><\/p>\n<p><em>His expertise covers a wide range of technologies, including <strong>Microsoft Azure<\/strong>, <strong>Proxmox VE<\/strong>, <strong>Amazon Web Services (AWS)<\/strong>, and numerous other virtualization and cloud platforms.<\/em><\/p>\n<p><em>Beyond running his hosting business, \u0141ukasz also provides <strong>professional paid server configuration and optimization services<\/strong> for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.<\/em><\/p>\n<p><em>If you are interested in working with him or need expert assistance with your hosting, cloud environment, or server setup, feel free to reach out via <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a>.<\/em><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 Introduction Nextcloud is a self-hosted cloud storage solution that allows you to store, share, and access your files from anywhere. In this guide, we&#8217;ll show you how\u2026<\/p>\n","protected":false},"author":1,"featured_media":3421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[],"tags":[14,12,11,23,20,21,22,17,7,8,6,10,18,19,15,24,16,5,13,9],"class_list":["post-3358","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-cheapvps","tag-cloudvps","tag-hostingvps","tag-rds","tag-rdscal","tag-remotedesktop","tag-remotedesktopvps","tag-servervps","tag-ukvps","tag-virtualserver","tag-vpshosting","tag-vpsserver","tag-vpssolutions","tag-vpswindows","tag-vpswithwindows","tag-windowsrds","tag-windowsserver","tag-windowsvps","tag-windowsvpshosting","tag-windowsvpsuk"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/3358","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=3358"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/3358\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media\/3421"}],"wp:attachment":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=3358"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=3358"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=3358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}