How to install Drupal with XAMPP on Windows

|

,

|

The article outlines the steps to install the Drupal content management software on Windows with XAMPP support. This involves downloading the Windows version of XAMPP, installing Apache, MySQL, PHP, and Perl, and configuring XAMPP. The next steps include creating a Drupal database, downloading Drupal content, configuring PHP settings, and initiating the Drupal installation wizard.

This article describes the steps to install Drupal on Windows with XAMPP support.

Installing Drupal with XAMPP on Windows allows you to create and test Drupal websites and applications on a local machine before publishing them online. XAMPP provides a free and easy-to-install Apache distribution with PHP, Perl, and MariaDB, the necessary components for running Drupal.

This local development environment can be useful for developers, designers, or anyone who wants to experiment with Drupal without affecting their live website.

Additionally, it can be helpful for testing and debugging purposes before deploying a website or application to a production server.

Download XAMPP Package

To install XAMPP on Windows, download the Windows version to the Apache Friends website.

Install XAMPP

After downloading the Windows version, you should be prompted to install the package. You’ll need to install Apache, MySQL, PHP, and Perl, as shown in the image below.

Complete the installation and continue to the next step.

Accept the default installation directory: C:\xampp

Configure XAMPP

Now that the package is installed, open XAMPP and start up Apache and MySQL services, as shown in the image below.

After starting Apache2 and MySQL, these servers should be running. To test whether Apache is running, open Internet Explorer on the host machine and type the URL below:

http://locahost

This should bring up the Apache XAMPP default page.

To validate that MariaDB is installed and functioning, open the Shell command prompt on the right of the XAMPP Control Panel. This should launch the command shell. Then type the commands below:

mysql

This should get you onto the MariaDB database server.

To secure the MariaDB database server, open the Shell command windows again, then type the commands below.

perl\bin\perl.exe mysql\bin\mysql_secure_installation.pl

When prompted, answer the questions below by following the guide.

  • Enter current password for root (enter for none): Just press the Enter
  • Set root password? [Y/n]: Y
  • New password: Enter password
  • Re-enter new password: Repeat password
  • Remove anonymous users? [Y/n]: Y
  • Disallow root login remotely? [Y/n]: Y
  • Remove test database and access to it? [Y/n]:  Y
  • Reload privilege tables now? [Y/n]:  Y

Create Drupal Database

While still in the Shell command windows, type the commands below to log on to the MariaDB database server.

Type the password you enter above when prompted.

mysql -u root -p

Then, create a database called Drupal.

CREATE DATABASE drupal;

Create a database user called drupaluser with a new password

CREATE USER 'drupaluser'@'localhost' IDENTIFIED BY 'new_password_here';

Then, grant the user full access to the database.

GRANT ALL ON drupal.* TO 'drupaluser'@'localhost' IDENTIFIED BY 'user_password_here' WITH GRANT OPTION;

Finally, save your changes and exit.

FLUSH PRIVILEGES;
EXIT;

Download Drupal Content

Now that the Drupal database has been created download Drupal content from its download page.

After downloading the Drupal file, extract it into the C:\xampp\htdocs

You can delete all the files and folders and extract Drupal content from that folder. The htdocs should look like this:

Configure PHP Settings

Now that Joomla content is in the Apache2 root directory. Go to the path below and open the PHP configuration file.

C:\xampp\php

Then right-click the highlighted PHP configuration file and edit. Then, make the changes below in the file and save. You will have to scroll line by line.

Then change to the following lines below in the file and save.

file_uploads = On
allow_url_fopen = On
memory_limit = 256M
upload_max_filesize = 100M
max_execution_time = 120
max_input_vars = 1500
date.timezone = America/Chicago

Save the file when you’re done.

When done, open Internet Explorer and type the URL below to begin the Drupal installation wizard.

http://localhost

Then, browse the site’s domain and see the Drupal setup wizard.

Follow the on-screen instructions until you’ve successfully installed Drupal.

Enjoy~

You may also like the post below:

Like this:



Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.