Skip to content

Latest commit

 

History

History
108 lines (84 loc) · 3.84 KB

installation.md

File metadata and controls

108 lines (84 loc) · 3.84 KB

Installation

Pre-requisites

  1. PHP 8.x
  2. WP-CLI
    1. Installing via Homebrew would be the easiest option for macOS users.
    2. If not, all other installation options can be found in the same page.
  3. MySQL 5.7.5+ or MariaDB 10.2+
  4. cv - command is a utility for interacting with a CiviCRM installation
    1. Download - https://github.com/civicrm/cv?tab=readme-ov-file#download

Steps

WordPress site setup

First we will setup a WordPress site on top of which we will setup CiviCRM. For creating the WordPress site we will require a database.

  1. Login to the MySQL terminal

    mysql -u root -p
  2. From the MySQL terminal, create a database

    create database goonj;
    exit
  3. Download the database dump from here LINK

  4. After importing the database, run the wp search-replace //goonj-crm.staging.coloredcow.com //goonj-civicrm.test command to update the UAT URLs to your local URLs.

  5. Clone this repository

    git clone https://github.com/ColoredCow/goonj.git
  6. Change to project root directory

    cd goonj
  7. Delete the existing uploads folder in wp-content and replace it with the new one downloaded and unzipped from Here

  8. Open wp-content/uploads/civicrm/civicrm.settings.php. Search and replace 3 things:

    1. All the staging URLs: https://goonj-crm.staging.coloredcow.com to your local URL.
    2. All the staging paths: /var/www/html/goonj-crm.staging.coloredcow.com to your local path.
    3. All the MySQL links: mysql://goonj-crm:EZZ....@localhost/goonj-crm?new_link=true to your local.
  9. Create the WordPress config file (specify the correct database credentials)

    wp config create --dbname=goonj --dbuser=root --dbpass=

    Note: If you see an error try to pass the dbhost option as well.

  10. Install WordPress and create admin

    wp core install --url=goonj.test --title="Goonj" --admin_user=admin --admin_password=admin [email protected]
  11. Set the WordPress permalink structure to "postname"

    wp rewrite structure '/%postname%/'

Create a Virtual Host

  1. For Windows

    1. Create a Virtual host for your project. The virtual host should point to /path_to_project_directory/public:
      • WAMP: If you prefer using WAMP, you can set up virtual host by following steps mentioned on this link.
      • XAMPP: If you prefer using XAMPP, you can set up virtual host by following steps mentioned on this link.
  2. For macOS

    1. Create a virtual host
    valet link goonj
    1. Secure the virtual host
    valet secure goonj

Setup CiviCRM

  1. Activate the plugin

    wp plugin activate civicrm
  2. Go to https://goonj.test/wp-admin and configure CiviCRM.

    1. Check all the Components
    2. And click on Install CiviCRM

Change CiviCRM extensions directory path

  1. In your text editor open, wp-content/uploads/civicrm/civicrm.settings.php
  2. Search for Override the extensions directory comment
  3. We are going to keep all the extensions in wp-content/civi-extensions directory:
    // Replace with your actual path to goonj-crm below!
    $civicrm_setting['domain']['extensionsDir'] = '/path/to/goonj-crm/wp-content/civi-extensions';

Extensions

  1. Activate required extensions
    cv ext:enable afform afform_admin civirules emailapi