Learn How to Install a Drupal 10 Website on Windows 10 Using Xampp
by xanthium-enterprises in Circuits > Software
1841 Views, 1 Favorites, 0 Comments
Learn How to Install a Drupal 10 Website on Windows 10 Using Xampp
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
- How to install XAMPP framework on Windows 10
- How to create a Simple MySQL/MariaDB database for Drupal 10 using PHPMyAdmin
- How to Install Drupal 10 Website locally
- How to solve PHP extension not enabled issue
- How to enable PHP Opcache
- How to connect the database with the drupal 10 installation
- How to configure the drupal 10 installation
Supplies
This is a software tutorial,
All the software used are opensource and can be downloaded from the Internet for free .
- Windows XAMPP installer from Apache Friends
- Drupal 10 distribution
Installing XAMPP Web Server Framework on Windows 10
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
You can go to the phpmyadmin by clicking Admin near the MySQL or by going to
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 for Drupal 10 Installation
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
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
Solving "Drupal Requires You to Enable the PHP Extensions in the Following List"error on Windows 10
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
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
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
After the installation ,create an admin account to administer your website and set the time zones.