You are currently viewing How to Install Drupal 10 on Windows 10

How to Install Drupal 10 on Windows 10

Introduction

Are you eager to set up your own website using Drupal 10 on your Windows 10 computer? You’re in the right place! In this guide, we’ll walk you through the straightforward process of how to install Drupal 10 on Windows 10. Let’s get started on your web development journey!

Before You Start Installing Drupal 10 on Windows with XAMPP, Composer, and Git Bash:

  1. XAMPP: You should install XAMPP, which comes with the Apache web server, PHP, and MySQL. Make sure it’s set up correctly and running smoothly.
  2. PHP Version: Drupal 10 needs PHP 7.3 or higher. Ensure that you’ve correctly configured PHP within your XAMPP installation.
  3. Database Software: XAMPP includes MySQL, which you can use as Drupal’s database system.
  4. Composer: Install Composer, a tool that helps manage Drupal and its modules, since it handles PHP dependencies.
  5. Git Bash: You’ll need Git Bash for Windows, a command-line tool, to work with Git repositories and run Unix-like commands.
  6. Web Browser: Keep a modern web browser like Google Chrome or Mozilla Firefox ready. You’ll use it to test and manage your Drupal site.

Having these tools and software ready prepares you fully for the Drupal 10 installation and development process on your Windows 10 machine.

Simple Steps to Install XAMPP on Windows

  1. Download XAMPP: Go to the official XAMPP website and download the Windows version.
  2. Run the Installer: Once the download is complete, run the installer file you downloaded.
  3. Select Components: Choose the components you need, like Apache and MySQL. Leave the default options selected unless you have specific requirements.
  4. Choose Installation Folder: Pick a folder where you want to install XAMPP. The default location is usually fine.
  5. Start Installation: Click the “Install” button to begin the installation process.
  6. Firewall Warning: If your firewall prompts you, allow Apache and MySQL to communicate through the firewall.
  7. Complete Installation: Wait for the installation to finish. Once it’s done, you’ll see a screen indicating a successful installation.
  8. Start XAMPP Control Panel: Launch the XAMPP Control Panel from your Start menu. Here, you can start and stop Apache and MySQL.

XAMPP is now installed and ready for use on your Windows computer.

Install Composer on Windows: Simple Steps to Get Started

  1. Visit Composer Website: Go to the official Composer website at https://getcomposer.org/download/.
  2. Get the Installer: Click on the link for the Windows Installer to download the Composer Setup Executable (.exe) file.
  3. Run the Installer: Open the downloaded installer executable.
  4. Follow the Setup Wizard: The setup wizard will guide you through the installation. You can keep most settings as they are.
  5. Start Installation: Click the “Install” button to kickstart the installation process.
  6. Check Installation: Once the installation is complete, open a command prompt or terminal window and type “composer” to verify that Composer is installed correctly. You should see Composer’s version information displayed.

With these steps, you’ve successfully installed Composer on your Windows system. You can now use it to manage PHP dependencies and packages easily.

Installing Git Bash on Windows (and You Can Use PowerShell Too)

  1. Download Git Bash: Visit the official Git for Windows website at https://gitforwindows.org/.
  2. Get the Installer: Click on the “Download” button to download the Git for Windows installer.
  3. Run the Installer: Open the downloaded installer executable.
  4. Setup Wizard: Follow the setup wizard’s instructions. You can keep most options at their default settings.
  5. Choose Components: Select the components you want to install. You can leave the default options selected unless you have specific preferences.
  6. Select Start Menu Folder: Choose the folder where you want Git Bash to appear in your Start menu. The default location is usually fine.
  7. Adjusting your PATH environment: Select “Use Git and optional Unix tools from the Command Prompt” and click “Next.”
  8. Choose SSH executable: Keep “Use the OpenSSH library” selected and click “Next.”
  9. Configuring the line ending conversions: Keep the default settings (Checkout Windows-style, commit Unix-style line endings) and click “Next.”
  10. Choose Terminal Emulator: Select your preferred terminal emulator. “Use Windows’ default console window” is a good choice for most users. You can use PowerShell as an alternative if you prefer.
  11. Additional Options: Review any additional options and adjust them according to your preferences.
  12. Start Installation: Click the “Install” button to begin the installation process.
  13. Finish Installation: Once the installation is complete, click the “Finish” button.

Now, Git Bash is installed on your Windows system, providing you with a command-line interface to work with Git repositories and run Unix-like commands. If you prefer, you can use PowerShell as an alternative command-line tool.

Install Drupal 10 on Windows Using Composer

1: Start XAMPP Server

  • Launch the XAMPP Control Panel.
  • Start the Apache server by clicking the “Start” button next to it.

2: Create a Database

  • Open your web browser and go to localhost/phpmyadmin.
  • Create a new database with a name of your choice. Remember this name; you’ll need it later.

3: Open Git Bash

  • Go to the C drive where XAMPP is installed (usually C:\xampp).
  • Find the htdocs folder, right-click your mouse, and select “Git Bash here.” This opens Git Bash in your XAMPP web root directory.

4: Use Composer to Install Drupal

In Git Bash, use Composer to install Drupal 10 by running this command:

composer create-project drupal/recommended-project my_drupal_site_name

Replace my_drupal_site_name with your preferred project name.

Step 5: Access Drupal Installation

  • Once Composer finishes installing Drupal, open your web browser.
  • Go to localhost/yourprojectname/web, where yourprojectname is the name you used in Step 4.
  • Follow the on-screen instructions to complete the Drupal installation.

Step 6: Watch the Installation Video

For a visual guide, you can watch this video tutorial [link to video tutorial].

Step 7: Happy Coding!

Congratulations! You’ve successfully installed Drupal 10 on your Windows machine. You can now start building and customizing your Drupal website. Happy coding!

Leave a Reply