How to Install a Drupal 10 Website on Windows 10 PC Using Xampp

RSDevX
4 min readApr 27, 2023

--

In this Tutorial,

You will learn How to install a Drupal10 website locally on a Windows 10 PC using the XAMPP webserver framework from Apache Friends.

Since Drupal 7 will be reaching End Of Life by November 2023.This tutorial will help anybody who wants to try out Drupal 10 for their website.

Drupal 10 comes with CK Editor 5 which is the future as CKEditor 4 has reached EOL.

You can download the required software from below

Installing XAMPP Web Server Framework on Windows 10

Download the installer and install the xampp framework on

c:\xampp

It may take some time for xampp to install on your system so wait for some time.

You can start the control panel after the installation is complete.

Start Apache and MySql

You can go to the dashboard by clicking Admin near the Apache or by going to

http://localhost/dashboard/

You can go to the phpmyadmin by clicking Admin near the MySQL or by going to

http://localhost/phpmyadmin/

Create a Database for Drupal 10 to use using phpmyadmin

Click on New

Give a name “drupal10_db “and press Create

Create User to access the database. Go to the Priveleges tab and click on the add user account

Give a name to the user here steve. Do not grant privilege's here, as privilege's are global

Click on the Go button at the bottom

In the next page grant the following privileges' for your database

Configuring the PHP.ini file

Back up the php.ini before doing anything.

After the installation is complete, change some system values on the php.ini file .

The file will be located in the folder C:\xampp\php\php.ini:

or by clicking on the config button of Apache in the control panel .

make the following changes

  • max_execution_time = 600
  • max_input_time = 600
  • memory_limit = 512M
  • post_max_size = 64M
  • upload_max_filesize = 64M
  • mysql.connect_timeout = 600

Configuring the MySQL my.ini file

Make the following changes to my.ini file ,

location C:\xampp\mysql\bin\my.ini

  • max_allowed_packet = 64M
  • innodb_flush_log_at_trx_commit = 2

Now restart both Apache and MySQL

Installing Drupal 10

unzip the Drupal 10 file and copy it into the htdocs folder of your xampp installation.I have renamed the Drupal Folder

Now go to http://localhost/drupal-10 using your Browser .

Drupal Installation will start now

Click next

You may now encounter two requirements issue.

Drupal requires you to enable the PHP extensions in the following list (see the system requirements page for more information): gd

First one is the Error message saying that PHP extensions are not enabled.

To enable PHP extensions open your php.ini file and search for “gd”

remove the semicolon ; in front of the extension=gd

save php.ini file

To resolve the second issue to enable opcache on Drupal 10 add the following line to php.ini and save.

[opcache]

zend_extension=php_opcache.dll

;Determines if Zend OPCache in enabled

opcache.enable=1

Now restart the apache server .

Now we will connect the database with the drupal10 installation.After which the Drupal10 will get installed in your Windows 10 system.

Once the Drupal 10 is installed you should create a site administer and start adding content to your website.

--

--