How to install Drupal 9.x in Windows Xampp Server
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:
- Download the XAMPP installer package at https://www.apachefriends.org/index.html
- Run the installation file as you do with regular software and follow the step by step instructions.
- Open “XAMPP Control Panel Application” and start “Apache” and “MySQL”.
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.
- 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
6. Next, enter the database name, In my case it is Drupal and then click “Create”
Requirement check before installation
- Minimum PHP 7.3 is needed for Drupal 9.1 to run and also PHP 8 is supported.
- download install latest xampp server from this link. https://www.apachefriends.org/index.html
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.
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!
- Download the Drupal! 9.x full package at https://new.drupal.org/download
- Create a new folder entitled “drupal” in folder “htdocs” in XAMPP folder. Normally it will be located at “C:\xampp\htdocs”
- 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.
- Go to the URL “http://localhost/drupal”
- 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“
Select installation profile
- Select an installation profile in my case it is “Standard“.
- Click “save and continue“
You can see whether your system has all the required software’s.
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“
Installation starts
This will take 1 to 10 minutes to complete. Installation Time Depending on Your PC/Laptop Configuration.
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“
Installation Complete
your new Drupal 9.1 site installed successfully.
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.
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.