Drupal 9 Installation

 

DrupalDrupal is a free and open-source content-management framework that can be customized/changes and tweaked to make simple blog type website or complex web applications. 

With support for Drupal 8 already stopped and support for Drupal 7 will be over in Nov 2022, It is a good time to start your website in Drupal 9.

 In this post we are going to see the steps that are involved in installing Drupal either on you local machine or on a actual webserver.

Pre-requsites:

Drupal is primarily based on PHP and works with MySQL or MariaDB. So we will need these software ready on our system before hand

As of writing this post latest version of Drupal release is 9.2.10. You can download it from here (Download Drupal). Note: By the time you go the website the version might have been updated. If you are looking for a different version for some specific reasons, see the specific version series page.

Software Requirements and Version:

  • PHP PHP 7.3. PHP 7.4 is also supported but not required. PHP 8 is supported from Drupal 9.1.0
  • MySQL version 5.7.8+ OR MariaDB version 10.3.7+ or greater. (Other databases are supported, click here for details)
  • Apache WebServer  2.4.7+ (To be on safer side).
  • phpMyAdmin (optional, required if you do not know how to use the command line mysql utility)

This post assumes that the above softwares are already installed and configured.

Pre install steps:

  1. Drupal works with one database that needs to be created before hand. You can use either phpMyAdmin or the mysql command line interface to create a new user and a single database assigned to the same

    1. Never user 'root' and nopassword setup.  Make sure your mysql/mariadb root password is set to somthing strong.

    2. To create a new user and assign a database via mysql command line, connect to mysql/mariadb using the following command:

      1. mysql -u root -h localhost -p

      2. You will be prompted for the 'root' password, enter the same:

      3. On the mysql command prompt run the following query:

      4. Create a database:

        1. mysql> CREATE DATABASE mydrupaldb;

      5. Create a user with password:

        1. mysql> CREATE USER 'mydrupaluser'@'localhost' IDENTIFIED BY 'm@ki14$EEf';

      6. Grant database access to user created above:

        1. mysql> GRANT ALL ON mydrupaldb.* TO 'mydrupaluser'@'localhost';

      7. Keep a note of all the three things above, Username, Password and Host (localhost)

    3. Login with these credential and check if database is accesible.

      1. mysql -u mydrupaluser -h localhost -p

      2. Run query: SHOW DATABASES;

    4. If you see the database just created we are good to go.

  2. Download Drupal: most probably you have already downloaded it, if not download the compressed (tag.gz or zip) as per your requirement. (Download Drupal).

  3. Locate Document Root: Depending what OS you are using you will need to know your document root, this is where we will be extracting the WordPress files.

    1. In GNU/Linux running apache it could be:

      1. /var/www/html 

    2. For XXAMP/WAMP under other OS please check there documentation [ TBA ]

    3. Once done uncompress the downloaded file in the document root directory. (You may want to keep it in some sub folder, but in reality Drupal would be the main CMS running your site, so make sure to first move all the files to the actual Document Root and not in a sub folder.

Installation

  1. Start installation: Open A browser and in address bar type:

    1. http://localhost  (if files are copied directly into Document Root)

    2. http://localhost/drupal (or whatever is the sub directory name, if installed in a sub directory)

      1. First page

    3. Select a language for installation.

    4. Click Save and Continue

    5. Select  a Profile for installation:

      1. Drupal by default provides 3 profiles for installation, profiles are pre-defined setups with certains modules of others

      2. We will go with standard installation

      3. Installation Profile selection

    6. Verify Requirement

      1. Verify Requirements

      1. The next steps checks for some read write permissions and a file settings.php which should be there in drupal-root/sites/default/

      2. You will need to copy the file default.settings.php  to settings.php

      3. Also make sure that write permissions is available

      4. If you come across any missing PHP libraries install them accordingly

      5. Also there should be a directory drupal-root/sites/default/files  which should be writable by server

      6. Once done At the Bottome of page, there is a try again link, click that

    7. Provide database and user information (The one which you created in previous steps)

    8. DB info

    9. Advanced  Options:
      1. If your Database port or host is different you can specify it here.
      2. Also you can provide a table prefix for you Drupal Database.
      3. Adv options for Database

    10. After you clck Save and Continue Installation will start

      1. Installation progress

    11. Next step will setup the Site Name and admin user (with password) country and timezone. In a live server make sure to give a proper email id, it is used for recovering password and getting update information.

      1. Site details and user setup

    12. Click "Save and Continue" to finalize your setup.

    13. Installation Done.

      1. Drupal Installation Completed

    14. You will be logged in into you website as the first user created

    15. The first user is the Administrator for the site

 Thats it, your Drupal  in now installed. Enjoy.

 Check out the following video for demo:


Add new comment

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
CAPTCHA
Enter the characters shown in the image.
Are you a robot?
Address

OpenSourceCook.in
"Natraj"  Bungalow,
Colony No.7,  Sr.No. 38.
(Lane Behind Sai Baba Mandir)
Kale Borate Nagar, Hadapsar,
Pune - 411028.
Get Directions