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

by xanthium-enterprises in Circuits > Software

1590 Views, 1 Favorites, 0 Comments

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

Learn to Install Drupal 10 CMS on Windows 10 using XAMPP web framework for Beginners

In this Instructable ,

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 January 2025.

Original Article can be found here

This tutorial will help anybody who wants to try out Drupal 10 for their website.

You will learn the following

  1. How to install XAMPP framework on Windows 10
  2. How to create a Simple MySQL/MariaDB database for Drupal 10 using PHPMyAdmin
  3. How to Install Drupal 10 Website locally
  4. How to solve PHP extension not enabled issue
  5. How to enable PHP Opcache
  6. How to connect the database with the drupal 10 installation
  7. How to configure the drupal 10 installation

Supplies

drupal10.jpg
xampp-download.jpg

This is a software tutorial,

All the software used are opensource and can be downloaded from the Internet for free .

  1. Windows XAMPP installer from Apache Friends
  2. Drupal 10 distribution

Installing XAMPP Web Server Framework on Windows 10

xampp-location.jpg
xampp-control-panel.jpg

After Downloading the installer ,run it.

Install the XAMPP framework in

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

create-db-drupal.jpg
create-database-phpmyadmin.jpg
create-user-db-xampp.jpg

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 for Drupal 10 Installation

php-ini-2.jpg
php-ini-config.jpg

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

xampp-ctrl-pnt-mysql-ini-config.jpg
1280px-Xampp_logo.svg.png

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

install-drupal.jpg
drupal10.jpg

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

Solving "Drupal Requires You to Enable the PHP Extensions in the Following List"error on Windows 10

enable-php-extensions.jpg
install-drupal.jpg

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

Enabling Opcache on Windows 10 in Xampp for Drupal 10 Installation

enable-php-extensions.jpg
install-drupal.jpg

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 .

Connecting the Database to Drupal 10

drupal10.jpg
db-connect.jpg

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

Configuring the Drupal 10 Installation

drupal-config-site.jpg
drupal-website.jpg

After the installation ,create an admin account to administer your website and set the time zones.