
Checklist for a fresh Drupal installation
Posted under » Drupal on 06 March 2022
This is applicable to Drupal version 9.
- download a copy of drupal and setup the Apache. Restart your web server
- create a mysql database. Preferable to use the same name as your website
- go to /sites folder and change sites.php
- create a folder under sites using the same domain name. Eg. test.drupal.com This is because of drupal multi sites capability
- Make sure you have enabled mod-rewrite. There are other requirements which you need to fulfil.
- Use your browser to go your website. It will redirect you to the install page. eg. http://test.drupal.com/core/install.php
- Copy the default settings file like sites/test.drupal.com/settings.php and make it writable
- with the mysql password and all, setup your drupal. The install script will write the setup on the settings.php file for you.
- Install will then populate the mysql database. Make sure your mysql priviledges are correct.
- There could be file permissions problem on the /sites/files directory so please refer here.
- Once successfully installed, for security make your settings.php file unwritable or in other words 0444.
- Go to http://test.drupal.com/admin/reports/status for more problems. Look at the logs.
- The folder sites/test.drupal.com should be 0755.
- 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'] = [
'^test\.drupal\.com$',
];
Customise it
- Turn off powered by drupal. It's one of the 'blocks'. go to http://test.drupal.com/admin/structure/block
- Use your own logo
- Your own favicon