Backup
It is essential that you perform regular backups of your site to an offsite location. Below are directions on how to backup your files and MySQL database from Pligg.

  1. Install the Pligg Update module
  2. Continue to step 2, where you will be able to download a copy of your MySQL and regular files
  3. Make sure that you confirm that the files generated are valid before performing an upgrade.


Upgrading
Please be sure to make a backup of your MySQL databases and files before upgrading to the latest version of Pligg. Some upgrades might alter your MySQL database, so please make backups whenever upgrading.

These instructions do not support upgrading your template. Template upgrades require manual changes and should be carefully handled by the template author.

  1. Backup your MySQL database
  2. Backup your old pligg files
  3. Disable all of the modules from your admin panel.
    You will need to re-enable them after upgrade.
  4. Delete all of the files from your server EXCEPT:
    1. /libs/dbconnect.php
    2. /settings.php
    3. Your current template folder

  5. Upload all of the latest files to your server.
    If you are able to I suggest uploading a zip file to the server and extracting it server-side. This is both the quickest and most full-proof method.
  6. Confirm that the CHMOD permissions for the following files or folders are all set to 777.
    • settings.php
    • /admin/backup/
    • /avatars/groups_uploaded/
    • /avatars/user_uploaded/
    • /cache/
    • /cache/admin_c/
    • /cache/templates_c/
    • /languages/
    • /languages/lang_english.conf (+ whichever language files you use)

  7. Run the upgrade from /install/upgrade.php
    If there are no error messages, delete the /install directory from your web server.
  8. Log in as a "god" level user.
    In some cases you may already be logged in from your previous version of Pligg.
  9. Either update your template to work with the latest version or navigate to /admin/admin_config.php?page=Template and change the template name to "wistie"
  10. Re-activate any modules that were previously disabled for the upgrade.


Upgrading Templates
Upgrades have been a hassle in the past during Pligg's "Beta" stage, but as of Pligg 1.0 we are editing fewer templates between releases. We will also provide more detailed information about which templates have been edited, and what content has been changed, removed or added for each update.

Upgrading Modules
As a member of the Pligg Forum, you are able to mark downloaded modules as installed and keep track of modules. By marking a module (or template) as installed you are subscribing to receive a notice whenever an update is released and marked as important by the module developer.

The Pligg module admin panel page also makes use of a pligg.com feature that will allow you to keep track of what the latest version is for many of your modules. this makes it easy to compare your installed version of a module with the latest available version.

To upgrade a module, you should follow these steps:

  1. Download the latest available version of the module to your computer and unzip it.
  2. Navigate to your Pligg site's admin panel, then click on the Modules link to go to the admin module page.
  3. If you have made any customizations to the module you are updating, you will need to repeat those customizations with the latest version.
  4. Find the module you are updating. Click the disable link, then the remove link. You are only temporarily disabling the module to reduce the chance of a problem happening during the upgrade.
  5. Delete the old module folder from the /modules directory in your Pligg site.
  6. Upload the new module folder to the /modules directory of your Pligg site.
  7. Refresh the module admin page and click on the install link for the module.
  8. If the module has any settings, make sure that you double check them after re-installation.