Changes

Jump to navigation Jump to search
1,122 bytes added ,  14:21, 22 February 2017
quick playbook for upgrading CiviCRM on Wordpress for CoastalTrails
== Video ==
Need links to good videos.
 
== Upgrading ==
Before doing any upgrades, login to the site with Admin rights so that you can get a session token, and be able to test
 
=== Using WP-CLI to upgrade plugins ===
# go to the document root
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">
sudo su -
/home/greg/bin/backup.db.sh wordpress
 
 
# Ctrl+D logout
# set some variables
docroot=/var/www/html
pluginroot="$docroot/wp-content/plugins"
config=/var/www/html/wp-content/uploads/civicrm/civicrm.settings.php
templates=/var/www/html/wp-content/plugins/files/civicrm/templates_c/
# make sure you have a backup of your civicrm.settings.php file
cp $config ~/civicrm.settings.php.bak
mkdir html.backup && sudo chown www-data:www-data html.backup
sudo -u www-data cp -ar /var/www/html html.backup
wget https://download.civicrm.org/civicrm-4.7.16-wordpress.zip
sudo -u www-data unzip civicrm-4.7.16-wordpress.zip -d /var/www/html/wp-content/plugin
rm -r $templates
 
# test and then cleanup or revert
rm civicrm-4.7.16-wordpress.zip
sudo rm -rf html.backup
</source>
4,558

edits

Navigation menu