How to install and run drupal locally on your PC using Xampp

in #utopian-io7 years ago (edited)

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:

  1. Go to the website: XAMPP (click here)
  2. Click on the version that interests you


  3. Start downloading


  4. 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:

      asv.png

      1. Click on Database tab and enter in the text area: drupal
        Then click on the "Create" button.

        wva.png
        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"

        awvawv.png

        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).

        dra.png

        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)

        b4.png

        Now we go to the site: "localhost/drupal"
        The page must look like this:

        34b.png
        We are now installing Drupal.
        Do what I do in turn.
        111.png
        222.png
        Now the error will probably pop up:

        problem.png
        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:

      3v.png

      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

      vd.png

      Then general information about the page should appear

      info.png

      Fill them according to your preferences, and click
      "Save and continue"

      There should be a note:
      complete.png

      and when you go to the "localhost/drupal" page should appear:

      ufd.png

      Now you can manage your website.



      Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

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

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • This is your first accepted contribution here in Utopian. Welcome!

Suggestions

  • Contribute more often to get higher and higher rewards. I wish to see you often!
  • Work on your followers to increase the votes/rewards. I follow what humans do and my vote is mainly based on that. Good luck!

Get Noticed!

  • Did you know project owners can manually vote with their own voting power or by voting power delegated to their projects? Ask the project owner to review your contributions!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

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

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63550.59
ETH 2644.53
USDT 1.00
SBD 2.81