← Back to Login

Network Setup Guide

School Management System - LAN and WAN Configuration

⚠️ Important Notice

This guide provides step-by-step instructions for setting up the School Management System on both Local Area Network (LAN) and Wide Area Network (WAN). Please follow the instructions carefully to ensure proper functionality.

1. LAN (Local Area Network) Setup

LAN setup allows multiple computers within the same building or campus to access the system from a central server.

Step 1: Server Configuration

  1. Install XAMPP on the main server computer
  2. Copy all system files to C:\xampp\htdocs\school_system\
  3. Start Apache and MySQL services in XAMPP Control Panel
  4. Import the William.sql database file through phpMyAdmin
  5. Configure MySQL to allow remote connections:
    • Edit C:\xampp\mysql\bin\my.ini
    • Find bind-address and change to bind-address = 0.0.0.0
    • Restart MySQL service

Step 2: Create MySQL User for Remote Access

  1. Open phpMyAdmin (http://localhost/phpmyadmin)
  2. Go to User Accounts → Add user account
  3. Username: school_user
  4. Host name: Select Any host (%)
  5. Password: Set a strong password
  6. Check "Grant all privileges on database name: William"
  7. Click Go

Step 3: Configure Firewall

  1. Open Windows Firewall with Advanced Security
  2. Create Inbound Rules for:
    • Port 80 (HTTP) - Allow
    • Port 3306 (MySQL) - Allow
  3. Apply rules to Domain, Private, and Public networks

Step 4: Client Computer Configuration

  1. Ensure client computers are on the same network as the server
  2. Open web browser on client computer
  3. Access system using server's IP address: http://SERVER_IP/school_system/
  4. Example: http://192.168.1.100/school_system/
  5. Test login with admin credentials

Step 5: Update System Settings

  1. Login as Admin
  2. Go to Settings → System Settings
  3. Set "LAN/WAN Mode" to "LAN"
  4. Save settings

2. WAN (Wide Area Network) Setup

WAN setup allows access to the system from anywhere with internet connection.

⚠️ Security Warning

WAN setup exposes your system to the internet. Ensure proper security measures are in place including SSL certificates, strong passwords, and regular backups.

2.5 LWAN (Limited Wide Area Network) Setup

LWAN setup provides controlled external access with additional security restrictions.

ℹ️ What is LWAN?

LWAN (Limited Wide Area Network) offers a hybrid approach between LAN and WAN, allowing external access while maintaining stricter security controls.

Step 1: Configure Whitelist IP Addresses

  1. Identify trusted IP addresses that need external access
  2. Configure firewall rules to allow only whitelisted IPs
  3. Block all other external access attempts
  4. Document approved IP addresses for audit purposes

Step 2: Implement VPN Requirement

  1. Set up VPN server (e.g., OpenVPN, WireGuard)
  2. Require all external users to connect via VPN first
  3. Configure VPN to provide internal network access
  4. Test VPN connectivity from external locations

Step 3: Enhanced Authentication

  1. Enable two-factor authentication (2FA) for all users
  2. Implement session timeout policies (e.g., 30 minutes)
  3. Set up IP-based access logging and monitoring
  4. Create alerts for suspicious login attempts

Step 4: Update System Settings

  1. Login as Admin
  2. Go to Settings → System Settings
  3. Set "LAN/WAN Mode" to "LWAN"
  4. Save settings

Step 1: Obtain a Domain Name

  1. Purchase a domain name from a registrar (e.g., Namecheap, GoDaddy)
  2. Example: stwilliams.edu.gh

Step 2: Configure DNS

  1. Log in to your domain registrar's control panel
  2. Add an A record pointing to your server's public IP address
  3. Example: @ A 123.45.67.89
  4. Wait for DNS propagation (up to 48 hours)

Step 3: Configure Router Port Forwarding

  1. Access router's admin panel (usually 192.168.1.1 or 192.168.0.1)
  2. Find Port Forwarding section
  3. Add forwarding rules:
    • External Port: 80 → Internal Port: 80 → Internal IP: Server IP
    • External Port: 443 → Internal Port: 443 → Internal IP: Server IP
  4. Save and restart router

Step 4: Install SSL Certificate (Recommended)

  1. Download and install Certbot for Windows
  2. Run Certbot to obtain free SSL certificate from Let's Encrypt
  3. Configure Apache to use SSL certificate
  4. Update C:\xampp\apache\conf\extra\httpd-ssl.conf
  5. Restart Apache service

Step 5: Secure MySQL

  1. Ensure MySQL is not accessible from outside (keep bind-address as 127.0.0.1)
  2. Use strong passwords for all database users
  3. Limit database user privileges
  4. Regularly update MySQL and XAMPP

Step 6: Update System Settings

  1. Login as Admin
  2. Go to Settings → System Settings
  3. Set "LAN/WAN Mode" to "WAN"
  4. Update school address and contact information
  5. Save settings

Step 7: Test WAN Access

  1. Access system using domain name: https://stwilliams.edu.gh
  2. Test from different networks (mobile data, different WiFi)
  3. Verify all features work correctly
  4. Test all portal logins (Admin, Student, Teacher, HOD)

3. Troubleshooting

Common Issues and Solutions

4. Best Practices

5. Support

For technical support or assistance with network setup, please contact:

Additional Resources