Installing CiviCRM on Drupal
CiviCRM is a web-based Constituent Relationship Management system, that can be installed in either Drupal, Wordpress or Joomla.
For this article I will be installing in Drupal.
Drupal
Start with a clean install of Drupal. I'm using Drupal version 9.3.12 for this article.
Installation
Start by visiting the Downloads page for CiviCRM. Clicking the Download CiviCRM 5.48.2 for Drupal 9 button on this page, will take you to an instructions page, that I've summarised here:
- Start by getting SSH access to your web server.
- Browse to the root directory of your Drupal web site.
- Run the following composer commands, using the version that you wish to install (e.g. 5.48.2).
composer config extra.enable-patching true
composer config minimum-stability dev
composer require civicrm/civicrm-{core,packages,drupal-8}:'~5.48.2'
- CiviCRM files will now be downloaded and installed to your Drupal instance.
- Click Yes when asked to Allow these packages to compile.
- Make the /sites/default folder writable
- Log in to the Drupal website, with an admin account.
- Go to Manage > Extend.
- On the List tab, Filter by CiviCRM.
- Select CiviCRM Core.
- Click the Install button.
Your installation should now be complete. You might need to make sure that civicrm.settings.php is not writable by running the following command:
chmod 444 /sites/default/civicrm.settings.php
You are now ready to start some initial configurations to your CiviCRM system.
Thanks for visiting,
Steven