HomeWebsite DevelopmentInstall Drupal 9.1 in Xampp Server

How to install Drupal 9.x in Windows Xampp Server

Drupal in Windows 10 Xampp Server Video Tutorial

In this article, we are going to discuss installation of Drupal 9.x in xampp server.

Drupal is an open source content management system which based on PHP and MySQL. You can work with it both online or offline. However, managing Drupal offline requires you to install a compatible web server and the Drupal package as well. Below are instructions to install Drupal on XAMPP .

Installing Drupal 9.x on local host

Installing Drupal 9.x on local host is straightforward but can be tricky the first time you attempt it. So for this step we’ve provided instructions on how to do it right from scratch.

First, let’s make clarify the meaning of “Localhost”. A localhost is basically the same type of web server like Hostinger, Siteground etc but installed on your own computer.

Now, in order to run Drupal!, you need not only a web server, but also 2 more things: PHP script interpreter and MySQL database system. It sounds complicated but thankfully, there is a single package called XAMPP with all the elements included.

Let’s install XAMPP on your computer:

  1. Download the XAMPP installer package at  https://www.apachefriends.org/index.html
  2. Run the installation file as you do with regular software and follow the step by step instructions.
  3. Open “XAMPP Control Panel Application” and start “Apache” and “MySQL”.
Xampp Control panel
Xampp Control panel

That’s it, your localhost is now installed. You can check if it works or not by typing the address:

“http://localhost” in your web browser. You should see a page as illustrated below.

Xampp Server Home Page
Xampp Server Home Page
  1. Create a database in phpMyAdmin.

Type http://localhost/phpmyadmin on your address bar. It’ll lead you to the phpMyAdmin Home Page.

5. Next, click Database in the toolbar as illustrated in the following

phpMyAdmin Home Page
phpMyAdmin Home Page

6. Next, enter the database name, In my case it is Drupal and then click “Create”

phpMyAdmin Create Database
phpMyAdmin Create Database

Requirement check before installation

  • Minimum PHP 7.3 is needed for Drupal 9.1 to run and also PHP 8 is supported.

Note: If your existing xampp is in older PHP version(<7.3) , take  a back up of data folder in path C:\xampp\mysql\, also rename   C:\xampp folder to some other name, then install new xampp with higher PHP version. place old data folder content in the newly created C:\xampp\mysql\data folder. so you can see all databases in your new xampp mysql.

Increase max_execution_time value into higher values in php.ini.

You can edit php.ini file from xampp control panel by click on config button as shown below.

Xampp Config
Xampp Config

Then restart apache using xampp control panel. If you are not updating execution time , there is a chance to stop your installation process in the middle.

Note: Remember user name and password of your localhost. For Xampp Server, default username is “root” and has no password.

Installing Drupal!

  1. Download the Drupal! 9.x full package at https://new.drupal.org/download
  2. Create a new folder entitled “drupal” in folder “htdocs” in XAMPP folder. Normally it will be located at “C:\xampp\htdocs”
  3. Unpack the downloaded package file. Now, Copy and Paste the all files and Folders of Unpacked Package into the folder drupal which we had created in Previous step.
  4. Go to the URL “http://localhost/drupal
  5. Follow all steps in Drupal! installation:

 Choose a language

  • Select Language: Choose your own language in the drop-down menu, for example, “English (United States)”
  • Click “Save and Continue
Drupal Choose Language
Drupal Choose Language

 Select installation profile

  • Select an installation profile in my case it is “Standard“.
  • Click “save and continue
Drupal Installation Profile
Drupal Installation Profile

You can see whether your system has all the required software’s.

Drupal Verify Requirements
Drupal Verify Requirements

Click on continue anyway.

Provide your database details

  • Database Type: Select MySQL
  • Database Name: enter the name of the database you created Drupal
  • Username: Enter “root”
  • Password: let it blank
  • Host Name: Enter localhost
  • Table Prefix: let it generate automatically
  • Click “save and continue
Drupal Database Configuration
Drupal Database Configuration

Installation starts

This will take 1 to 10 minutes to complete. Installation Time Depending on Your PC/Laptop Configuration.

Installing Drupal
Installing Drupal

Final configuration

  • Site Name: Enter the name of your site
  • Site Email Address: Enter your valid email address you want to use for your site
  • Username: Enter “drupal” as default
  • Password: Enter your own password
  • Confirm Password: Re-type your password
  • Email Address: Enter your valid email address you want to use for your site
  • Default Country: Choose your own Country in the drop-down menu, for example, “United States
  • Default Time Zone: Choose your own Country Time Zone in the drop-down menu, for example, “Newyork
  • Click “save and continue
Drupal Configuration
Drupal Configuration
Drupal Configuration 2
Drupal Configuration 2

Installation Complete

your new Drupal 9.1 site installed successfully.

Drupal Admin Panel
Drupal Admin Panel

Log In to Your Drupal Localhost Website

  • Type http://localhost/drupal/user/login on your address bar. It’ll lead you to the login page.
  • Input the previously Entered username and password to log into your windows Drupal localhost website.
Drupal Login Page
Drupal Login Page

Conclusion:

This article covers the simple way of installing the Drupal in Your Local host. You can also use this process for installing WordPress and Joomla in your local host.

If you have any query regarding to this article you can ask through comment section.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *