Skip to content

Instantly share code, notes, and snippets.

@replaceafill
Created July 2, 2017 00:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save replaceafill/c614ca0571f5fb17f9106ce2834c8aa1 to your computer and use it in GitHub Desktop.
Save replaceafill/c614ca0571f5fb17f9106ce2834c8aa1 to your computer and use it in GitHub Desktop.
CiviCRM set up
Set up on Ubuntu 16.04
======================
* sudo apt-get update && sudo apt-get install mysql-server libapache2-mod-php php-curl php-mbstring php-xml php-gd phpmyadmin
* mysql -u root -p
* CREATE USER 'drupalsite'@'localhost' IDENTIFIED BY 'drupalsite';
* CREATE DATABASE drupalsite;
* GRANT all ON drupalsite.* TO 'drupalsite'@'localhost';
* CREATE USER 'civicrm'@'localhost' IDENTIFIED BY 'civicrm';
* CREATE DATABASE civicrm;
* GRANT all ON civicrm.* TO 'civicrm'@'localhost';
* exit
* wget https://ftp.drupal.org/files/projects/drupal-7.56.tar.gz
* tar -xzf drupal-7.56.tar.gz
* sudo mv /var/www/html/index.html /var/www/html/index.html.bak
* sudo mv drupal-7.56/* /var/www/html/
* rm -rf drupal-7.56*
* sudo cp /var/www/html/sites/default/default.settings.php /var/www/html/sites/default/settings.php
* sudo chmod 644 /var/www/html/sites/default/settings.php
* sudo mkdir /var/www/html/sites/default/files
#* sudo chmod 777 /var/www/html/sites/default/files
* sudo chown -R www-data.www-data /var/www/html/sites/default
* sudo service apache2 restart
* Visit http://localhost/install.php
* sudo chmod u=rw,o=r,a=r /var/www/html/sites/default/settings.php
* sudo service apache2 restart
* wget https://download.civicrm.org/civicrm-4.7.20-drupal.tar.gz
* tar -xzf civicrm-4.7.20-drupal.tar.gz
* sudo mv civicrm /var/www/html/sites/all/modules
* rm civicrm-4.7.20-drupal.tar.gz
* Visit http://localhost/sites/all/modules/civicrm/install/index.php
TODO:
* Fix permissions of http://192.168.1.90/sites/all/modules/civicrm/
* Any other permissions issue?
* Visit http://192.168.1.90/index.php?q=civicrm/a/#/status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment