# cPanel Shared Hosting Deployment Guide — Demo1

**Site Name:** Shobuj Jibon by Ayesha (সবুজ জীবন বাই আয়েশা)  
**Runtime Requirement:** Plain PHP 8.2+ (No Laravel, No Node.js runtime, No Database, No SSH Worker)  
**Compatibility:** 100% cPanel / LAMP / LiteSpeed Shared Hosting Ready

---

## 📋 1. Simple Deployment Steps

1. Upload the `Demo1` project folder to your server via cPanel File Manager or FTP (e.g. `/home/username/Demo1/`).
2. In cPanel **Subdomains** or **Addon Domains**, set the Document Root to point to `public/` (e.g. `/home/username/Demo1/public`).
3. Set your server PHP version to **PHP 8.2** or **PHP 8.3**.

---

## ⚙️ 2. Environment Configuration

1. Copy `.env.example` to `.env` in the root directory.
2. Configure production parameters:
   ```dotenv
   SITE_URL=https://shobuj-jibon.example
   SMTP_HOST=mail.yourdomain.com
   SMTP_PORT=587
   SMTP_USER=no-reply@yourdomain.com
   SMTP_PASS=YourSecurePassword123!
   SMTP_ENCRYPTION=tls
   MAIL_FROM=no-reply@yourdomain.com
   MAIL_FROM_NAME="Shobuj Jibon by Ayesha"
   MAIL_TO=hello@yourdomain.com
   CONTACT_HMAC_KEY=a_random_32_byte_secure_string_key
   WHATSAPP_NUMBER=8801700000000
   ```

---

## 🔒 3. Built-in Security & Protection

- Direct browser access to `.env` and `bootstrap.php` is blocked via `public/.htaccess`.
- Directory browsing is disabled (`Options -Indexes`).
- Custom 404 handler configured via `ErrorDocument 404 /404.php`.
- Static `sitemap.xml` and `robots.txt` use safe reserved demo domain `https://shobuj-jibon.example`.
