{"id":3363,"date":"2022-11-27T07:04:26","date_gmt":"2024-01-16T22:33:15","guid":{"rendered":""},"modified":"2025-02-02T00:46:20","modified_gmt":"2025-02-01T23:46:20","slug":"how-to-install-craft-cms-on-windows-vps","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/how-to-install-craft-cms-on-windows-vps\/","title":{"rendered":"Linux VPS &#038; VPS Windows Setup Guide | NetCloud24 Craft CMS on Windows VPS"},"content":{"rendered":"<p>\u00a0<\/p>\n<\/p>\n<header><\/header>\n<section>\n<h2>Introduction<\/h2>\n<p><strong>Craft CMS<\/strong> is a flexible content management system that provides developers with tools for building custom websites. This guide will walk you through the steps to install Craft CMS on a .<\/p>\n<\/section>\n<section>\n<h2>Prerequisites<\/h2>\n<p>Before starting the installation, make sure you have the following prerequisites:<\/p>\n<ul>\n<li>A  with administrative access.<\/li>\n<li>PHP 7.4 or higher installed.<\/li>\n<li>MySQL 5.7 or higher or MariaDB installed.<\/li>\n<li>Composer installed on your system.<\/li>\n<li>Web server (Apache or Nginx) installed.<\/li>\n<\/ul>\n<\/section>\n<section>\n<h2>Step 1: Install Required Software<\/h2>\n<p>Ensure the following software is installed:<\/p>\n<ol>\n<li><strong>PHP:<\/strong> Download and install PHP from the official PHP website: <a href=\"https:\/\/windows.php.net\/download\/\" target=\"_blank\" rel=\"follow\">PHP for Windows<\/a>.<\/li>\n<li><strong>MySQL or MariaDB:<\/strong> Download and install 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<li><strong>Apache or Nginx:<\/strong> Install Apache or Nginx for the web server. Instructions are available on their official websites.<\/li>\n<li><strong>Composer:<\/strong> Download and install Composer from the official website: <a href=\"https:\/\/getcomposer.org\/\" target=\"_blank\" rel=\"follow\">Composer<\/a>.<\/li>\n<\/ol>\n<\/section>\n<section>\n<h2>Step 2: Configure the Web Server<\/h2>\n<p>Set up your web server to serve Craft CMS:<\/p>\n<ol>\n<li><strong>Configure Apache or Nginx:<\/strong> If using Apache, enable mod_rewrite. For Nginx, configure the server block to point to the Craft CMS installation directory.<\/li>\n<li><strong>Create a Virtual Host:<\/strong> Set up a virtual host for Craft CMS in Apache or a server block in Nginx, ensuring it\u2019s accessible via your domain or IP address.<\/li>\n<\/ol>\n<\/section>\n<section>\n<h2>Step 3: Download Craft CMS<\/h2>\n<p>Now, download the latest version of Craft CMS:<\/p>\n<ol>\n<ol>\n<li><strong>Using Composer:<\/strong> The easiest way to install Craft CMS is through Composer. Run the following command in your terminal to download Craft CMS:<\/li>\n<\/ol>\n<\/ol>\n<pre>composer create-project craftcms\/craft \/path\/to\/your\/project<\/pre>\n<ol>\n<li><strong>Manual Download:<\/strong> Alternatively, you can download the Craft CMS package from the official website: <a href=\"https:\/\/craftcms.com\/\" target=\"_blank\" rel=\"follow\">Craft CMS Download<\/a>, and unzip it into the desired directory.<\/li>\n<\/ol>\n<\/section>\n<section>\n<h2>Step 4: Configure the Database<\/h2>\n<p>Next, set up the database for Craft CMS:<\/p>\n<ol>\n<ol>\n<li><strong>Create a Database:<\/strong> Log into MySQL or MariaDB and create a new database for Craft CMS:<\/li>\n<\/ol>\n<\/ol>\n<pre>CREATE DATABASE craft;<\/pre>\n<ol>\n<ol>\n<li><strong>Create a Database User:<\/strong> Create a new user and grant the necessary privileges:<\/li>\n<\/ol>\n<\/ol>\n<pre>CREATE USER 'craft_user'@'localhost' IDENTIFIED BY 'your_password';\r\nGRANT ALL PRIVILEGES ON craft.* TO 'craft_user'@'localhost';<\/pre>\n<ol>\n<ol>\n<li><strong>Flush Privileges:<\/strong> Apply the changes:<\/li>\n<\/ol>\n<\/ol>\n<pre>FLUSH PRIVILEGES;<\/pre>\n<\/section>\n<section>\n<h2>Step 5: Set Permissions<\/h2>\n<p>Set the correct permissions for Craft CMS:<\/p>\n<ol>\n<ol>\n<li><strong>Set Folder Permissions:<\/strong> Ensure the <code>storage<\/code> and <code>config<\/code> folders are writable by the web server. For example:<\/li>\n<\/ol>\n<\/ol>\n<pre>chmod -R 775 \/path\/to\/your\/project\/storage \/path\/to\/your\/project\/config<\/pre>\n<\/section>\n<section>\n<h2>Step 6: Run the Craft CMS Installer<\/h2>\n<p>Now, you can run the Craft CMS installer:<\/p>\n<ol>\n<li><strong>Access the Installer:<\/strong> In your web browser, navigate to the Craft CMS site (e.g., <code>http:\/\/yourdomain.com<\/code>) to start the installation process.<\/li>\n<li><strong>Follow the Wizard:<\/strong> The Craft CMS installer will guide you through the setup process. Provide the following details:<\/li>\n<ul>\n<li>Database configuration (use the database credentials created earlier).<\/li>\n<li>Admin user details for the Craft CMS backend.<\/li>\n<li>Site name and URL.<\/li>\n<\/ul>\n<\/ol>\n<\/section>\n<section>\n<h2>Step 7: Complete the Installation<\/h2>\n<p>After completing the installation wizard:<\/p>\n<ol>\n<li><strong>Remove the Install File:<\/strong> For security reasons, delete the <code>install.php<\/code> file from the Craft CMS directory.<\/li>\n<li><strong>Access the Admin Panel:<\/strong> Log in to the Craft CMS admin panel using the credentials you created during installation.<\/li>\n<\/ol>\n<\/section>\n<section>\n<h2>Conclusion<\/h2>\n<p>Congratulations! You have successfully installed Craft CMS on your . You can now start building and managing your website with Craft CMS.<\/p>\n<\/section>\n<footer>\n<p>\u00a9 2024 Your Company. All rights reserved.<\/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 Craft CMS is a flexible content management system that provides developers with tools for building custom websites. This guide will walk you through the steps to\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-3363","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\/3363","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=3363"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/3363\/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=3363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=3363"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=3363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}