Difference between revisions of "CiviCRM/WordPress"

From Freephile Wiki
Jump to navigation Jump to search
m
Line 74: Line 74:
 
# make sure you have a backup of your civicrm.settings.php file
 
# make sure you have a backup of your civicrm.settings.php file
 
cp $config ~/civicrm.settings.php.bak
 
cp $config ~/civicrm.settings.php.bak
mkdir html.backup && sudo chown www-data:www-data html.backup
+
backup=/tmp/html.backup
sudo -u www-data cp -ar /var/www/html html.backup
+
mkdir $backup && sudo chown www-data:www-data $backup
wget https://download.civicrm.org/civicrm-4.7.16-wordpress.zip
+
sudo -u www-data cp -ar /var/www/html $backup
sudo -u www-data unzip civicrm-4.7.16-wordpress.zip -d /var/www/html/wp-content/plugin
+
package=https://download.civicrm.org/civicrm-5.3.0-wordpress.zip
rm -r $templates
+
wget $package
 +
sudo rm -rf $pluginroot/civicrm && sudo -u www-data unzip $package -d $pluginroot
 +
rm -r $templates/
 +
# upgrade the database by visiting the URL in your browser
 +
/admin.php?page=CiviCRM&q=civicrm/upgrade&reset=1
  
 
# test and then cleanup or revert
 
# test and then cleanup or revert
rm civicrm-4.7.16-wordpress.zip
+
rm $package
 
rm ~/civicrm.settings.php.bak
 
rm ~/civicrm.settings.php.bak
sudo rm -rf html.backup
+
sudo rm -rf $backup
 
</source>
 
</source>

Revision as of 02:46, 12 July 2018