How to install and run drupal locally on your PC using Xampp
What Will I Learn?
- How to install XAMPP on your PC
- How to install Drupal on XAMPP
- Running Drupal on your locally PC
Requirements
- Some of free time
- Internet Connection
Difficulty
- Basic
Preparation
In this tutorial you will learn how to install drupal on your PC using Xampp. First of all we have to install XAMPP.
XAMPP is a free and open source web server software, consisting mainly of the Apache HTTP Server, MariaDB database, and interpreters for scripts written in the PHP and Perl programming languages.
I will present now how to download and install xampp step by step. If you already have XAMPP software on your computer, skip this point.
XAMPP Installation:
- Go to the website: XAMPP (click here)
- Click on the version that interests you
- Start downloading
- Open XAMPP Installation, and follow my steps:
- Choose your language, and click Save.
- You will see a window like this:
- Now is the time to start everything. Click the first three "start" buttons, and your window should now look like this:
We have already installed xampp. Now we can go to the installation of drupal on our computer.Drupal Installation and running using XAMPP
Drupal is a content management system and framework written in PHP language, used by over one million websites.
After making sure that we clicked the "Start" buttons in XAMPP, enter the browser and enter the URL:
localhost/phpmyadmin
Should be the same page:
- Click on Database tab and enter in the text area: drupal
Then click on the "Create" button.
Now we have to download drupal from their website.
We have to go to the site: https://www.drupal.org/project/drupal/releases/7.4
Then click "Download zip"
After downloading, go to the xampp location, for example: C:\xampp , go to "htdocs" folder and extract the "drupal-7.4" folder there.
To make it easier, we change the name of the folder from "drupal-7.4" to "drupal"
Your htdocs folder should look similar (ie it should contain the "drupal" folder).
Now, go to: \xampp\htdocs\drupal\sites\default
and create a file called "settings" with the extension php
Copy the contents of the file "default.settings" (.php) and paste into the "settings" file (.php)
Now we go to the site: "localhost/drupal"
The page must look like this:
We are now installing Drupal.
Do what I do in turn.
Now the error will probably pop up:
To fix it, we have to enter the "settings.php" file located in \xampp\htdocs\drupal\sites\default
and at the end we must add these 2 lines:
ini_set('mbstring.http_input', 'pass'); ini_set('mbstring.http_output', 'pass');
Now, after refreshing the page, you should see:
In the "Database name" text field, enter "drupal", enter "root" in the "Database username" field, leave the "Database password" field unchanged and click "Save and continue".
The installation process should appear
Then general information about the page should appear
Fill them according to your preferences, and click
"Save and continue"
There should be a note:
and when you go to the "localhost/drupal" page should appear:
Now you can manage your website.
Posted on Utopian.io - Rewarding Open Source Contributors
- Now is the time to start everything. Click the first three "start" buttons, and your window should now look like this:
- Start downloading
Your contribution cannot be approved because it does not follow the Utopian Rules.
Your tutorial is far too trivial to be accepted.
You can contact us on Discord.
[utopian-moderator]
@deathwing do you think, that everyone can fix problem with “multibyte string” which is default enabled, when you must add php code in special configuration file, and that everyone know how to make database on locally pc and connect it to drupal? It’s really too trivial? Please if you have time check my article again and reply what do you think about it. I spent some hours on writing it and fixing problems.
Hey @deathwing, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!
Thank you for the contribution. It has been approved.
After reviewing the post again, I came to a conclusion that the handling of a PHP error as well as some minor non-obvious details make this tutorial good enough to be accepted.
Keep in mind, that tutorials related to installing software are very rarely going to be accepted.
You can contact us on Discord.
[utopian-moderator]
Hey @vitusc I am @utopian-io. I have just upvoted you!
Achievements
Suggestions
Get Noticed!
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x