Skip to content

ColoredCow/civicrm

Repository files navigation

CiviCRM

Preparing development environment

Pre-requisite

  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+

Steps (from this repository)

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 civicrm;
    exit
  3. Clone this repository

    git clone https://github.com/coloredcow/civicrm.git
  4. Change to project root directory

    cd civicrm
  5. Create the WordPress config file (specify the correct database credentials)

    wp config create --dbname=civicrm --dbuser=root --dbpass=
  6. Install WordPress and create admin

    wp core install --url=civicrm.test --title="CiviCRM" --admin_user=admin --admin_password=admin [email protected]
  7. Create a virtual host

    valet link civicrm
  8. Secure the virtual host

    valet secure civicrm

Setup CiviCRM

  1. Activate the plugin

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

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

Steps (from scratch)

You probably don't need to do it. @pokhiii has already done these and pushed it in this repository.

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 civicrm;
    exit
  3. Make project directory

    mkdir civicrm
  4. Change to the project diretory

    cd civicrm
  5. Download the WordPress core files in the current diretory

    wp core download
  6. Create the WordPress config file (specify the correct database credentials)

    wp config create --dbname=civicrm --dbuser=root --dbpass=
  7. Install WordPress and create admin

    wp core install --url=civicrm.test --title="CiviCRM" --admin_user=admin --admin_password=admin [email protected]
  8. Create a virtual host

    valet link civicrm
  9. Secure the virtual host

    valet secure civicrm
  10. Go to https://civicrm.test/wp-admin and login using the admin credentials step 7.

Setup CiviCRM

  1. In the project directory, run the following command to download the CiviCRM plugin

    wp plugin install https://download.civicrm.org/civicrm-5.73.2-wordpress.zip
  2. Activate the plugin

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

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