cPanel Storefront — upload guide

ENGLISH
-------
1. Download the cPanel Store ZIP from the dashboard (or individual files if needed).
2. Extract the ZIP on your computer. Folder paths are already correct
   (.htaccess, api/.htaccess, api/config.local.php, data/, etc.).
3. In cPanel File Manager open public_html (or your domain document root).
4. Turn on Show Hidden Files so .htaccess is visible.
5. Upload the extracted files into public_html keeping the same folder structure
   so index.php sits at the document root
   (example: api/config.local.php → public_html/api/config.local.php,
   data/bd-address.json → public_html/data/bd-address.json).
6. If you downloaded a single hidden file with a safe name instead of the ZIP,
   rename after saving:
   ROOT.htaccess → public_html/.htaccess
   api.htaccess  → public_html/api/.htaccess
7. Required: index.php and product.php at public_html root, api/config.local.php,
   api/_sb_proxy.inc.php, api/_selfhost_boot.inc.php, .htaccess, shop HTML/JS/CSS,
   data/bd-address.json, and the api/*.php proxy files (including coupon + payment proxies).
   Product URLs look like /product/{slug} (pretty). Old product.php?site=&slug= still works.
   Do not omit product.php or .htaccess or product pages will break.
   Install at document root (public_html/), not a subfolder — Home/Checkout from a product
   page navigate back to /.
8. Point your domain A record to this hosting IP.
9. Visit https://yourdomain.com/ — the shop should load on YOUR domain only.
   Admin stays on the platform (studymax.biz).
10. Speed: this package uses lean SSR (preview products) + disk cache + gzip.
    Re-upload a fresh ZIP after dashboard export to get the latest fast templates.
    api/cache/ is created automatically (do not delete .htaccess inside it).

Landing product pages (view.html) are not included — those stay on the platform.

PHP 8 + curl must be enabled on the host.

If the host uses nginx (not Apache), deny HTTP access to secrets:

    location ~ /api/(config\.local\.php|_sb_proxy\.inc\.php|_selfhost_boot\.inc\.php)$ { deny all; }

বাংলা
-----
1. Dashboard থেকে cPanel Store ZIP ডাউনলোড করুন (বা প্রয়োজনে আলাদা ফাইল)।
2. কম্পিউটারে ZIP এক্সট্র্যাক্ট করুন — ফোল্ডার পাথ আগে থেকেই ঠিক আছে
   (.htaccess, api/.htaccess, api/config.local.php, data/ ইত্যাদি)।
3. cPanel File Manager → public_html খুলুন।
4. Show Hidden Files চালু করুন (.htaccess দেখা যাবে)।
5. এক্সট্র্যাক্ট করা ফাইলগুলো একই ফোল্ডার স্ট্রাকচার রেখে public_html-এ আপলোড করুন
   যাতে index.php ডকুমেন্ট রুটে থাকে।
   উদাহরণ: api/config.local.php → public_html/api/config.local.php
   data/bd-address.json → public_html/data/bd-address.json
6. ZIP না নিয়ে একক হিডেন ফাইল ডাউনলোড করলে নাম বদলান:
   ROOT.htaccess → public_html/.htaccess
   api.htaccess  → public_html/api/.htaccess
7. অবশ্যই লাগবে: public_html রুটে index.php ও product.php, api/config.local.php,
   api/_sb_proxy.inc.php, api/_selfhost_boot.inc.php, .htaccess, শপ HTML/JS/CSS,
   data/bd-address.json, এবং api ফোল্ডারের PHP প্রক্সি ফাইলগুলো (কুপন + পেমেন্ট প্রক্সিসহ)।
   প্রোডাক্ট URL: /product/{slug} — পুরনো product.php?site=&slug= লিংকও কাজ করে।
   product.php বা .htaccess বাদ দিলে প্রোডাক্ট পেজ ভাঙবে।
   সাবফোল্ডারে নয় — document root (public_html/) এ আপলোড করুন; প্রোডাক্ট থেকে
   Home/Checkout রুট `/` এ ফিরে যায়।
8. ডোমেইনের A রেকর্ড এই হোস্টিং IP-তে দিন।
9. https://yourdomain.com/ খুললে শপ আপনার ডোমেইনেই লাইভ হবে — অন্য URL দেখাবে না।
   অ্যাডমিন প্যানেল প্ল্যাটফর্মেই থাকবে।
10. স্পিড: lean SSR + disk cache + gzip আছে। নতুন ZIP এক্সপোর্ট করে রি-আপলোড করুন।
    api/cache/ অটো তৈরি হয় (ভিতরের .htaccess মুছবেন না)।

ল্যান্ডিং পেজ (view.html) এই প্যাকেজে নেই — সেগুলো প্ল্যাটফর্মেই থাকবে।

হোস্টে PHP 8 এবং curl চালু থাকতে হবে।
