Difference between revisions of "CiviCRM/WordPress"
< CiviCRM
Jump to navigation
Jump to search
(This changes nothing) |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{CompanyName}} setup CiviCRM on top of WordPress for Coastal Trails Coalition in order to substantially improve operations. | {{CompanyName}} setup CiviCRM on top of WordPress for Coastal Trails Coalition in order to substantially improve operations. | ||
− | CiviCRM gives us all benefits and capabilities of a large commercial CRM and donor management system completely free of licensing costs. CiviCRM allows non-profits to benefit from an integrated solution for donor management, events, bulk email, etc. substantially increasing their effectiveness as compared to managing a variety of non- | + | CiviCRM gives us all benefits and capabilities of a large commercial CRM and donor management system completely free of licensing costs. CiviCRM allows non-profits to benefit from an integrated solution for donor management, events, bulk email, etc. substantially increasing their effectiveness as compared to managing a variety of non- |
So, what in particular did I need to do in order to setup CiviCRM, and test or convert operations? This article with explore and document that effort. | So, what in particular did I need to do in order to setup CiviCRM, and test or convert operations? This article with explore and document that effort. | ||
Line 7: | Line 7: | ||
== Installation == | == Installation == | ||
− | The [ | + | The [http://wiki.civicrm.org/confluence/display/CRMDOC/Installing+CiviCRM+for+WordPress#InstallingCiviCRMforWordPress-PluginIssues instructions] are well-written and easy to follow. On DreamHost, I logged in to my [https://panel.dreamhost.com control panel] and created a new database called ''coastal_crm'' The only downside was that the very popular "JetPack" plugin for WordPress is listed as incompatible with the CiviCRM plugin. So I disabled the JetPack plugin. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | On DreamHost, I logged in to my [https://panel.dreamhost.com control panel] and created a new database called ''coastal_crm'' The only downside was that the very popular "JetPack" plugin for WordPress is listed as incompatible with the CiviCRM plugin. So I disabled the JetPack plugin. | ||
== After initial install == | == After initial install == | ||
Line 77: | Line 55: | ||
=== Using WP-CLI to upgrade plugins === | === Using WP-CLI to upgrade plugins === | ||
− | # go to the document root | + | # go to the document root |
− | # update all the plugins with wp-cli | + | cd /var/www/html |
+ | # update all the plugins with wp-cli | ||
+ | sudo -u www-data wp plugin update --all | ||
− | === | + | === Start with a db backup === |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<source lang="bash"> | <source lang="bash"> | ||
sudo su - | sudo su - | ||
/home/greg/bin/backup.db.sh wordpress | /home/greg/bin/backup.db.sh wordpress | ||
+ | |||
+ | |||
+ | # Ctrl+D logout | ||
# set some variables | # set some variables | ||
docroot=/var/www/html | docroot=/var/www/html | ||
Line 101: | Line 75: | ||
cp $config ~/civicrm.settings.php.bak | cp $config ~/civicrm.settings.php.bak | ||
backup=/tmp/html.backup | backup=/tmp/html.backup | ||
− | mkdir $backup && chown www-data:www-data $backup | + | mkdir $backup && sudo chown www-data:www-data $backup |
sudo -u www-data cp -ar /var/www/html $backup | sudo -u www-data cp -ar /var/www/html $backup | ||
package=https://download.civicrm.org/civicrm-5.3.0-wordpress.zip | package=https://download.civicrm.org/civicrm-5.3.0-wordpress.zip | ||
wget $package | wget $package | ||
− | rm -rf $pluginroot/civicrm && sudo -u www-data unzip $package -d $pluginroot | + | sudo rm -rf $pluginroot/civicrm && sudo -u www-data unzip $package -d $pluginroot |
− | rm - | + | rm -r $templates/ |
# upgrade the database by visiting the URL in your browser | # upgrade the database by visiting the URL in your browser | ||
/admin.php?page=CiviCRM&q=civicrm/upgrade&reset=1 | /admin.php?page=CiviCRM&q=civicrm/upgrade&reset=1 | ||
# test and then cleanup or revert | # test and then cleanup or revert | ||
− | rm | + | rm $package |
rm ~/civicrm.settings.php.bak | rm ~/civicrm.settings.php.bak | ||
− | rm -rf $backup | + | sudo rm -rf $backup |
</source> | </source> |