๐Ÿ• Cron Path Checker

MikhMon Billing Automation - Path Detection Tool

๐Ÿ“Š Informasi Sistem

Server Software:
LiteSpeed
PHP Version:
7.4.33
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

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

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

4. Using wget (If PHP CLI not available)

30 0 * * * wget -q -O /dev/null https://axima.mahavikri.net/process/billing_cron.php

๐Ÿค– 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

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

๐Ÿงช Manual Test Commands (via SSH)

Test Billing Cron:

/usr/local/bin/lsphp /home/axima/public_html/process/billing_cron.php

Test Telegram Cache Warmer:

/usr/local/bin/lsphp /home/axima/public_html/scripts/telegram_cache_warmer.php

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

๐Ÿ“ Setup Instructions

  1. Login ke cPanel hosting Anda
  2. Cari menu Cron Jobs
  3. Klik Add New Cron Job
  4. Copy salah satu command di atas (yang recommended: #1)
  5. Paste ke field Command
  6. Klik Add New Cron Job
  7. Tunggu cronjob berjalan sesuai jadwal
  8. Monitor log billing di: /home/axima/public_html/logs/billing_cron.log
  9. 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.