# Deployment Instructions for Hosting Server

## Files to Upload via FileZilla

### 1. Replace database.php for hosting
Before uploading, replace the current `config/database.php` with the hosting version:

```bash
# Rename current file (for local Docker use)
mv config/database.php config/database_docker.php

# Use hosting version
mv config/database_hosting.php config/database.php
```

### 2. Upload these files to your hosting server:

**Core Application Files:**
- `admin.php`
- `audit.php` 
- `dashboard.php`
- `files.php`
- `login.php`
- `logout.php`
- `register.php`
- `delete.php`
- `download.php`

**Configuration Files:**
- `config/config.php`
- `config/database.php` (hosting version)

**Classes:**
- `classes/User.php`
- `classes/FileManager.php`
- `classes/AuditLogger.php`
- `classes/Security.php`

**Database Setup:**
- `setup_hosting_db.php` (run once, then delete)
- `database/schema.sql` (for reference)

### 3. Hosting Database Setup

1. Upload `setup_hosting_db.php` to your hosting server
2. Access: `http://your-domain.com/setup_hosting_db.php`
3. This will create database and admin user
4. **Delete the setup file after running**

### 4. Admin Login After Setup
- Email: admin@sensicompany.com
- Password: Admin123!

### 5. Security Notes
- Delete `setup_hosting_db.php` after running
- Ensure `uploads/` directory has proper write permissions
- Update database credentials if different from defaults

## Current Hosting Database Config
- Host: 15.188.145.27
- Username: bitnami  
- Password: 8=Sv0Kv2RoNE
- Database: sensi_portal
