
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
- cPanel hosting with Apache, PHP 8.1 or later, and MySQL 5.7+/MySQL 8/MariaDB.
- PHP extensions: PDO MySQL, Fileinfo, OpenSSL and Session.
- A valid SSL certificate for the portal domain or subdomain.
- PHP
mail()enabled or the host's approved server-side mail relay.
2. Prepare cPanel
- Create a subdomain such as
compliance.yourdomain.com, or a dedicated folder such aspublic_html/compliance. - Create a MySQL database and user in cPanel → MySQL Databases.
- Grant the database user All Privileges on the portal database.
- Upload and extract the V2 package into the selected document root.
3. Configure the application
Edit config.php and set the real values for:
| Setting | Required value |
|---|---|
app.url | The HTTPS portal URL without a trailing page name. |
app.cron_secret | A 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_address | A real mailbox on the sending domain, such as compliance@yourdomain.com. |
mail.reply_to | The monitored Compliance Department mailbox. |
4. Run the secure installer
- Open
https://your-portal-domain/install.php. - Enter the private setup key stored as
cron_secret. - Create the first Administrator account.
- Sign in and confirm the dashboard loads.
- Delete or rename
install.phpandupgrade.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
- Applies global or per-report daily, weekly, monthly and annual rules.
- Emails Primary Owners and selected Assigned Staff.
- CCs eligible Supervising Managers without duplicate recipients.
- Marks late open periods as Overdue.
- Escalates eligible overdue periods to assigned Department Heads.
- Records each recipient, message type, delivery result and timestamp.
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
- Temporarily set
mail.transporttolog. - Create a test report, reporting period and team, then make its due date eligible for a reminder.
- Run the cron command once from cPanel Terminal.
- Review
storage/logs/mail.logand the portal's Email Reminders → Recent Email Activity. - Change the transport back to
mail, run another controlled test and verify delivery. - Remove or label test records before production use.
8. Production safeguards
- Use HTTPS only and retain the supplied
.htaccess. - Keep database credentials and the cron secret private.
- Back up the database and
storage/uploadstogether. - Confirm SPF, DKIM and DMARC for the sender domain.
- Keep
storage/uploadsandstorage/logswritable by PHP using the host's secure permissions, normally0750. - Review failed email entries, inactive users and assignment changes regularly.