DPA TECHNICAL_INSTALL_GUIDE

Data Protection & Audit Suite: Technical and Install Guide

1. Requirements

2. Choose the package

Package File
Minimum dpa_suite_minimum-<version>.zip
Standard dpa_suite_standard-<version>.zip
Advanced dpa_suite_advanced-<version>.zip

Each zip contains only its own features. Upgrading to a higher tier means installing the higher zip over the lower one.

3. Install

  1. Back up the database and the custom/ folder.
  2. Admin → Module Loader, upload the zip, click Install, confirm.
  3. Admin → Repair → Quick Repair and Rebuild. This registers entry points, hooks and admin views. Do not skip it.
  4. Open Admin → Data Protection & Audit Suite. The Starter packs tab appears on first run.
  5. Open Admin → DPA Licence and enter the key (or use the built-in 14-day trial; Store purchases also have the Store's 30-day trial).

The installer creates three scheduler jobs if missing:

Job Schedule
DPA alert scan every 15 minutes
DPA log retention daily 03:00
DPA licence check weekly, Sunday 03:30
DPA privacy reminders (Advanced only) daily 08:00

Installing twice is safe; jobs are not duplicated.

4. Scheduler (cron)

Alerts, retention and the licence check run from the SuiteCRM scheduler. Make sure the standard cron entry exists:

* * * * * cd /path/to/suitecrm && php -f cron.php > /dev/null 2>&1

On Windows use Task Scheduler to run php.exe -f cron.php every minute.

5. Web server notes

Apache (.htaccess in upload/):

Require all denied

Nginx:

location ^~ /upload/ { deny all; }

SuiteCRM’s own download entry point keeps working because PHP reads the files itself.

6. Where settings live

$sugar_config['dpa']['disable_rules'] = true;   // emergency kill switch: no field rule is applied
$sugar_config['dpa']['use_screen']    = false;  // ignore the settings screen, use only this file
$sugar_config['dpa']['debug']         = true;   // trace logging
$sugar_config['dpa']['allow_tools']   = true;   // allow external converters/stampers (Advanced, Document protection)

Settings saved on the screen win over file values for the sections that were saved. Remove emergency flags once the problem is fixed.

6a. Privacy tools data (Advanced)

The privacy tools keep their records in one table, dpa_privacy_items, created automatically the first time the Privacy page is used (the database user needs CREATE rights; if it does not have them, create the table once by hand from the statement in DPAPrivacy::ensureTable()). Module Loader does not remove this table when you uninstall, so your registers are never lost by accident. Include it in your backups.

The data inventory scan reads many columns and can take up to a minute on large databases. The daily reminder e-mail uses the same recipients as the security alerts, or all active administrators if none are set.

7. Licence mechanics

8. Upgrading

  1. Back up.
  2. Install the new zip in Module Loader (same or higher tier).
  3. Quick Repair and Rebuild.
  4. Settings and the audit log are preserved.

Downgrading to a lower tier hides the higher features; their saved configuration is kept but not applied.

9. Updating SuiteCRM itself

After a SuiteCRM upgrade, run Quick Repair and Rebuild again, then open the DPA main page. The health check reports anything that needs attention. If you upgrade by overwriting files, restore the custom/ folder from your backup first.

10. Uninstall

  1. Module Loader → Uninstall the package.
  2. Quick Repair and Rebuild.
  3. The privacy table (dpa_privacy_items, Advanced) is never dropped automatically. Module Loader asks whether to remove the package’s other database tables. Choose Keep to preserve the audit log. The settings (config rows, category dpa) stay either way; delete them by hand if you want a clean removal, after exporting what you need.

Also delete the three DPA scheduler jobs if they remain.

11. Verifying an install

12. Support checklist

When contacting support, include: SuiteCRM version, PHP version, package and version, the health check output, and the last relevant lines of suitecrm.log (and php_errors.log).