๐ Cron Path Checker
MikhMon Billing Automation - Path Detection Tool
๐ Informasi Sistem
Server Software:
LiteSpeed
Operating System:
Linux idc.mapuraspeed.com 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
Current User:
axima (Process: axima)
๐ Path Information
Application Root Directory:
/home/axima/public_html
Document Root:
/home/axima/public_html
Billing Cron Script Path:
/home/axima/public_html/process/billing_cron.php
Telegram Cache Warmer Path:
/home/axima/public_html/scripts/telegram_cache_warmer.php
PHP Binary Path:
/usr/local/bin/lsphp
โ
File Checks
โ
billing_cron.php FOUND
โ
telegram_cache_warmer.php FOUND
โ
logs/ directory EXISTS
โ
logs/ directory WRITABLE
โ
cache/ directory EXISTS
โ
cache/ directory WRITABLE
๐ Recommended Cronjob Commands (Billing + Telegram Cache)
1. Daily at 00:30 (Recommended for Production)
30 0 * * * /usr/local/bin/lsphp /home/axima/public_html/process/billing_cron.php >> /home/axima/public_html/logs/billing_cron.log 2>&1 && /usr/local/bin/lsphp /home/axima/public_html/scripts/telegram_cache_warmer.php >> /home/axima/public_html/logs/telegram_cache.log 2>&1
๐ Copy Command
2. Every 6 Hours (For Testing)
0 */6 * * * /usr/local/bin/lsphp /home/axima/public_html/process/billing_cron.php >> /home/axima/public_html/logs/billing_cron.log 2>&1 && /usr/local/bin/lsphp /home/axima/public_html/scripts/telegram_cache_warmer.php >> /home/axima/public_html/logs/telegram_cache.log 2>&1
๐ Copy Command
3. Every Hour (For Development/Testing)
0 * * * * /usr/local/bin/lsphp /home/axima/public_html/process/billing_cron.php >> /home/axima/public_html/logs/billing_cron.log 2>&1 && /usr/local/bin/lsphp /home/axima/public_html/scripts/telegram_cache_warmer.php >> /home/axima/public_html/logs/telegram_cache.log 2>&1
๐ Copy Command
4. Using wget (If PHP CLI not available)
30 0 * * * wget -q -O /dev/null https://axima.mahavikri.net/process/billing_cron.php
๐ Copy Command
๐ค Telegram Cache Only (Optional - Separate Schedule)
Jika ingin menjalankan cache warmer lebih sering (misalnya setiap 30 menit):
Every 30 minutes (High Performance):
*/30 * * * * /usr/local/bin/lsphp /home/axima/public_html/scripts/telegram_cache_warmer.php >> /home/axima/public_html/logs/telegram_cache.log 2>&1
๐ Copy Command
Every 15 minutes (Ultra Performance):
*/15 * * * * /usr/local/bin/lsphp /home/axima/public_html/scripts/telegram_cache_warmer.php >> /home/axima/public_html/logs/telegram_cache.log 2>&1
๐ Copy Command
๐งช Manual Test Commands (via SSH)
Test Billing Cron:
/usr/local/bin/lsphp /home/axima/public_html/process/billing_cron.php
๐ Copy Command
Test Telegram Cache Warmer:
/usr/local/bin/lsphp /home/axima/public_html/scripts/telegram_cache_warmer.php
๐ Copy Command
Test Both Scripts Together:
/usr/local/bin/lsphp /home/axima/public_html/process/billing_cron.php && /usr/local/bin/lsphp /home/axima/public_html/scripts/telegram_cache_warmer.php
๐ Copy Command
๐ Setup Instructions
Login ke cPanel hosting Anda
Cari menu Cron Jobs
Klik Add New Cron Job
Copy salah satu command di atas (yang recommended: #1)
Paste ke field Command
Klik Add New Cron Job
Tunggu cronjob berjalan sesuai jadwal
Monitor log billing di: /home/axima/public_html/logs/billing_cron.log
Monitor log telegram cache di: /home/axima/public_html/logs/telegram_cache.log
๐ก Tentang Telegram Cache Warmer:
Script ini akan memuat cache paket MikroTik untuk mempercepat response Telegram bot.
Cache akan di-refresh secara otomatis setiap kali cronjob berjalan, memastikan bot selalu responsif.
โ ๏ธ PENTING: Hapus file ini setelah selesai!
File ini mengandung informasi sensitif tentang server Anda.
Hapus check_cron_path.php setelah Anda copy command cronjob.