INFYTA Billing — cPanel Deploy Guide (DMS pattern: Master Panel + Branches) =========================================================================== 3 TA INSTALL (DMS-er Central + Branch-er moto): 1) billing_master.zip -> Master Panel ONLY (sudhu login + panel, billing-er kono page nei — DMS Central-er moto) 2) billing_uat.zip -> UAT (test branch) 3) billing_rubelwifi.zip -> rubel_wifi (company branch) Master Panel-e sudhu company/branch list, license, active/suspend ar auto-login thakbe — billing-er dashboard/customer/payment kicchu thakbe na. UAT ar rubel_wifi — 2 tai Master Panel-er list-er entry hisebe thakbe. (Alada Main install nei.) Protita zip-er vitore kono extra folder nei — subdomain folder-er VITORE extract korlei install cholbe. STEP 1 — SUBDOMAIN (cPanel → Subdomains): 3 ta subdomain banan (apnar domain-e): master.apnardomain.com uat.apnardomain.com rubelwifi.apnardomain.com Protitar jonno cPanel ekta folder banabe (jemon public_html/master.apnardomain.com). Folder naam mone rakhun — Master Panel-e Folder field-e ei naam lagbe. STEP 2 — DATABASE (cPanel → MySQL Databases) — SOBCHE JORURI: 3 ta DB banan (cPanel username prefix jog hobe, jemon): infytaco_billing_master infytaco_billing_uat infytaco_billing_rubelwifi 1 ta DB user banan (strong password) → "Add User to Database" theke oi user-ke 3 ta DB-tei ALL PRIVILEGES din. ETA NA DILE Master Panel theke auto-login ar license push kaj korbe na (DB connect error dibe). STEP 3 — IMPORT (cPanel → phpMyAdmin): Protita DB-te database.sql import korun (zip-er vitore ache). Seed login: superadmin / password — AR admin / password. PROTHOM LOGIN-EI PASSWORD BODLE NIN. STEP 4 — FILE UPLOAD (cPanel → File Manager): Protita zip tar subdomain folder-e upload kore Extract korun. File gulo folder-er root-e thakte hobe (vitor-e aro ekta folder thakle cholbe na). STEP 5 — CONFIG (protita install-er config/db.php khulun): DB_HOST: localhost (cPanel-e sadharonoto etai) DB_NAME: Step 2-er FULL naam (prefix soho) DB_USER: Step 2-er user DB_PASS: Step 2-er password Zip-e deoa template-e DB_NAME age thekei bosano ache (billing_master / billing_uat / billing_rubelwifi) — sudhu cPanel prefix + USER/PASS miliye nin. STEP 6 — SSL (cPanel → SSL/TLS Status): 3 ta subdomain-e AutoSSL run korun (padlock asbe). Cloudflare thakle subdomain gulo grey-cloud (DNS-only) rakhun, tarpor AutoSSL korun. STEP 7 — MASTER PANEL SETUP: Master subdomain khulun: https://master.apnardomain.com/master_login.php Seed admin diye login kore PROTHOME password bodlan. Master Panel-e 2 ta entry korun (UAT, rubel_wifi): UAT: Name: UAT Folder: uat.apnardomain.com (Step 1-er folder naam) DB Name: infytaco_billing_uat (Step 2-er full naam) Login URL: https://uat.apnardomain.com/login.php (FULL URL — cPanel-e eta LAGBEI) License: meyad-er date din, ba Lifetime tick din Status: Active rubel_wifi: (eki niyome — Folder rubelwifi.apnardomain.com, DB infytaco_billing_rubelwifi, Login URL https://rubelwifi.apnardomain.com/login.php) Save korlei license branch DB-te auto-push hobe. STEP 8 — TEST: Master Panel theke UAT-er Auto-login → UAT dashboard khulbe. rubel_wifi-r Auto-login → company dashboard khulbe. Branch admin-er password bodle nin. Branch-er logo: branch install-e Settings → logo upload korun. STEP 9 — CRON (cPanel → Cron Jobs, voucher expiry-r jonno): Branch install gulo-r jonno 1 ta kore, proti 5 minute (Master-e cron lagbe na — okhane billing nei): */5 * * * * curl -s "https://uat.apnardomain.com/cron.php?key=infyta_cron_secret" */5 * * * * curl -s "https://rubelwifi.apnardomain.com/cron.php?key=infyta_cron_secret" (apnar domain diye bodle nin.) RULES / NOTES: - License-er meyad sesh hole branch panel nijei bondho hoye jabe (login + sob page-e block). Master Panel theke meyad bariye Save korlei abar khulbe. - Suspend korle panel bondho hobe, Active korle khulbe. - Delete sudhu list theke soray — Database kokhono delete hoy na. - Pore aro company chaile eki niyome subdomain + DB + folder copy + Master Panel-e entry korun. - CSS/image na ashle: folder permission 755, file 644 kore dekhen (File Manager-e extract-er por kokhono 0660 hoy). - Auto-login-e "DB connect" error ashle Step 2-er grant (user-ke oi DB-te ALL PRIVILEGES) check korun.