Checklist for a fresh Drupal installation

Posted under » Drupal on 06 March 2022

This is applicable to Drupal version 9.

  1. download a copy of drupal and setup the Apache. Restart your web server
  2. create a mysql database. Preferable to use the same name as your website
  3. go to /sites folder and change sites.php
  4. create a folder under sites using the same domain name. Eg. This is because of drupal multi sites capability
  5. Make sure you have enabled mod-rewrite. There are other requirements which you need to fulfil.
  6. Use your browser to go your website. It will redirect you to the install page. eg.
  7. Copy the default settings file like sites/ and make it writable
  8. with the mysql password and all, setup your drupal. The install script will write the setup on the settings.php file for you.
  9. Install will then populate the mysql database. Make sure your mysql priviledges are correct.
  10. There could be file permissions problem on the /sites/files directory so please refer here.
  11. Once successfully installed, for security make your settings.php file unwritable or in other words 0444.
  12. Go to for more problems. Look at the logs.
  13. The folder sites/ should be 0755.
  14. There is a 'drupal trusted host issue' which can be solved by adding the below lines on the 'settings.php' file. This is a security issue if the host is not what it is meant for. Eg. if someone runs a command or inject code from a malicious or fake website, this won't work.
    $settings['trusted_host_patterns'] = [

Customise it


web security linux ubuntu python django git Raspberry apache mysql php drupal cake javascript css AWS IOT