⚠️

Risk Assessment System

Installation & Setup Guide

📋 Installation Steps

  1. Create Database:
    mysql -u scubatricky_risk -p
    CREATE DATABASE scubatricky_risk CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
    GRANT ALL PRIVILEGES ON scubatricky_risk.* TO 'scubatricky_risk'@'localhost';
    FLUSH PRIVILEGES;
    exit;
  2. Import Database Schema:
    mysql -u scubatricky_risk -p scubatricky_risk < includes/schema.sql
  3. Configure Database Connection:
    Edit includes/config.php with your database credentials
  4. Set Directory Permissions:
    chmod 755 reports/
    chown www-data:www-data reports/
    chmod +x public/api/generate_pdf.py
  5. Install Python Dependencies:
    pip3 install reportlab --break-system-packages
  6. Test Installation:
    Reload this page. If setup is complete, you'll be redirected to the login page.

🔐 Default Login Credentials

Username: admin
Password: Admin123!

⚠️ Change the default password immediately after first login!

✅ Requirements Checklist

✓ PHP 7.4 or higher with PDO extension
✓ MySQL 5.7+ or MariaDB 10.3+
✓ Python 3.7+ with ReportLab
✓ Apache/Nginx web server
✓ Write permissions on reports/ directory
📖 Read Full Documentation

Need help? Check the README.md file for detailed instructions and troubleshooting.