Mandilas

Compliance Control Portal V2

Fresh cPanel installation and production launch guide

No additional plugin is required. Version 2 contains its own reminder, manager-CC, escalation, delivery-log and secure cron engine.

1. Confirm hosting requirements

2. Prepare cPanel

  1. Create a subdomain such as compliance.yourdomain.com, or a dedicated folder such as public_html/compliance.
  2. Create a MySQL database and user in cPanel → MySQL Databases.
  3. Grant the database user All Privileges on the portal database.
  4. Upload and extract the V2 package into the selected document root.

3. Configure the application

Edit config.php and set the real values for:

SettingRequired value
app.urlThe HTTPS portal URL without a trailing page name.
app.cron_secretA long, random private value. It is also the installer/upgrade setup key.
database.*The cPanel database host, port, database name, user and password.
mail.from_addressA real mailbox on the sending domain, such as compliance@yourdomain.com.
mail.reply_toThe monitored Compliance Department mailbox.

4. Run the secure installer

  1. Open https://your-portal-domain/install.php.
  2. Enter the private setup key stored as cron_secret.
  3. Create the first Administrator account.
  4. Sign in and confirm the dashboard loads.
  5. Delete or rename install.php and upgrade.php.

5. Activate the included cPanel cron job

Open cPanel → Cron Jobs and create one daily task. Replace the cPanel username and application path:

0 7 * * * /usr/local/bin/php -q /home/CPANEL_USERNAME/public_html/compliance/cron/send_reminders.php

The command runs daily at 07:00 in the hosting server's timezone. If the hosting server uses UTC and reminders should run at 07:00 West Africa Time, use:

0 6 * * * /usr/local/bin/php -q /home/CPANEL_USERNAME/public_html/compliance/cron/send_reminders.php

If the PHP binary is in a different location, ask the host or use which php in cPanel Terminal. A secure web-call fallback is available:

0 6 * * * /usr/bin/curl -fsS "https://your-portal-domain/cron/send_reminders.php?key=YOUR_CRON_SECRET" >/dev/null 2>&1
Prefer the PHP command. It does not place the cron secret in web access logs. Never use the placeholder secret in production.

What the single cron job does

6. Configure the business controls

Create staff accounts with valid work email addresses.
Edit each report and assign one Primary Owner plus the required Staff, Managers, Department Heads and Reviewers.
Select Global, Custom or Disabled routine reminders for each report.
Set manager CC and overdue escalation timing.
Review imported source notes, statuses and due dates.
Review inactive VFD-labelled records before deciding whether they apply.

7. Test mail before launch

  1. Temporarily set mail.transport to log.
  2. Create a test report, reporting period and team, then make its due date eligible for a reminder.
  3. Run the cron command once from cPanel Terminal.
  4. Review storage/logs/mail.log and the portal's Email Reminders → Recent Email Activity.
  5. Change the transport back to mail, run another controlled test and verify delivery.
  6. Remove or label test records before production use.

8. Production safeguards