Deprixa Plus — Requirements & Installation · 2.4 Cron Job Setup
Critical: Cron Jobs Are Required
Without cron jobs, subscriptions won't renew, logs won't be purged, and update notifications won't appear. You must configure the cron entry below for the system to function correctly.
Add the following cron entry to your server. This single entry runs Laravel's task scheduler every minute, which then dispatches individual tasks at their configured intervals.
crontab Copy
* * * * * cd /path-to-project && php artisan schedule:run >> /dev/null 2>&1
Scheduled Tasks
| Task | Frequency | What It Does |
|---|---|---|
| SaaS subscription check | Daily at 01:00 | Validates active subscriptions, enforces grace periods, and triggers renewal charges |
| Driver location purge | Daily at 02:00 | Removes stale GPS location records older than the configured retention period |
| Shipment history purge | Weekly (Monday 03:30) | Archives and removes old shipment history entries to keep the database lean |
| Audit log purge | Monthly (1st at 04:00) | Prunes audit log entries older than the configured retention window |
| Update check | Twice daily (08:00 & 20:00) | Checks for new software versions and displays a notification in Settings if available |
| Plugin license check | Weekly (Monday 05:00) | Validates installed plugin licenses against the marketplace |
| System integrity | Every 4 hours | Verifies critical file checksums, directory permissions, and storage symlink health |
cPanel Setup
In cPanel, go to Cron Jobs (under Advanced). Set the interval to "Once Per Minute (* * * * *)" and paste the command:
bash Copy
cd /home/yourusername/public_html && php artisan schedule:run >> /dev/null 2>&1
VPS Setup
On a VPS, edit the crontab for the web server user:
bash Copy
sudo crontab -u www-data -e # Add this line at the bottom: * * * * * cd /var/www/deprixa-plus && php artisan schedule:run >> /dev/null 2>&1