Drupal 10 Installation

Updated for Drupal 10

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 7/8/9 already stopped and support for Drupal 7 will be over in Nov 2022, It is a good time to start your website in Drupal 10.

 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/updating this post latest version of Drupal 10 release is 10.4.4. 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: 

You can check this link: https://www.drupal.org/docs/getting-started/system-requirements/overview

  • Web server

    • Apache 2.4.7 or higher, Nginx 1.1 or higher, or any other web server with proper PHP support.
  • Database

    • MySQL 5.7.8 or higher
    • MariaDB 10.3.7 or higher
    • Percona Server 5.7.8 or higher
    • PostgreSQL 12 or higher
    • SQLite 3.26 or higher
  • Memory

    • Memory requirements RAM: Minimum required memory is 1GB to make sure Composer works. If you are running multiple modules or using memory-intensive tools such as Solr, or Memcache, considerably more memory may be needed.
    • PHP memory requirements: The minimum required memory size is 64 MB, typically 128 MB or 256 MB are found in production systems. For more, see PHP memory requirements.
    • Be aware of the limitations of 32-bit PHP.
  • PHP

  • Disk space

    • Minimum 100MB. You will need more space if you install additional modules or themes, and you’ll also need space for media, backups, and other files generated by and uploaded to your site.

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
    7. The next steps checks for some read write permissions and a file settings.php which should be there in drupal-root/sites/default/
    8. You will need to copy the file default.settings.php  to settings.php
    9. Also make sure that write permissions is available
    10. If you come across any missing PHP libraries install them accordingly
    11. Also there should be a directory drupal-root/sites/default/files  which should be writable by server
    12. Once done At the Bottome of page, there is a try again link, click that
    13. Provide database and user information (The one which you created in previous steps)
    14. DB info
    15. 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
    16. After you clck Save and Continue Installation will start
      1. Installation progress
    17. 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
    18. Click "Save and Continue" to finalize your setup.
    19. Installation Done.
      1. Drupal Installation Completed
    20. You will be logged in into you website as the first user created
    21. The first user is the Administrator for the site

 Thats it, your Drupal  in now installed. Enjoy.

 Check out the following video for demo:


Main category

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