← 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
- Install XAMPP on the main server computer
- Copy all system files to
C:\xampp\htdocs\school_system\
- Start Apache and MySQL services in XAMPP Control Panel
- Import the
William.sql database file through phpMyAdmin
- 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
- Open phpMyAdmin (
http://localhost/phpmyadmin)
- Go to User Accounts → Add user account
- Username:
school_user
- Host name: Select
Any host (%)
- Password: Set a strong password
- Check "Grant all privileges on database name: William"
- Click Go
Step 3: Configure Firewall
- Open Windows Firewall with Advanced Security
- Create Inbound Rules for:
- Port 80 (HTTP) - Allow
- Port 3306 (MySQL) - Allow
- Apply rules to Domain, Private, and Public networks
Step 4: Client Computer Configuration
- Ensure client computers are on the same network as the server
- Open web browser on client computer
- Access system using server's IP address:
http://SERVER_IP/school_system/
- Example:
http://192.168.1.100/school_system/
- Test login with admin credentials
Step 5: Update System Settings
- Login as Admin
- Go to Settings → System Settings
- Set "LAN/WAN Mode" to "LAN"
- 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
- Identify trusted IP addresses that need external access
- Configure firewall rules to allow only whitelisted IPs
- Block all other external access attempts
- Document approved IP addresses for audit purposes
Step 2: Implement VPN Requirement
- Set up VPN server (e.g., OpenVPN, WireGuard)
- Require all external users to connect via VPN first
- Configure VPN to provide internal network access
- Test VPN connectivity from external locations
Step 3: Enhanced Authentication
- Enable two-factor authentication (2FA) for all users
- Implement session timeout policies (e.g., 30 minutes)
- Set up IP-based access logging and monitoring
- Create alerts for suspicious login attempts
Step 4: Update System Settings
- Login as Admin
- Go to Settings → System Settings
- Set "LAN/WAN Mode" to "LWAN"
- Save settings
Step 1: Obtain a Domain Name
- Purchase a domain name from a registrar (e.g., Namecheap, GoDaddy)
- Example:
stwilliams.edu.gh
Step 2: Configure DNS
- Log in to your domain registrar's control panel
- Add an A record pointing to your server's public IP address
- Example:
@ A 123.45.67.89
- Wait for DNS propagation (up to 48 hours)
Step 3: Configure Router Port Forwarding
- Access router's admin panel (usually
192.168.1.1 or 192.168.0.1)
- Find Port Forwarding section
- Add forwarding rules:
- External Port: 80 → Internal Port: 80 → Internal IP: Server IP
- External Port: 443 → Internal Port: 443 → Internal IP: Server IP
- Save and restart router
Step 4: Install SSL Certificate (Recommended)
- Download and install Certbot for Windows
- Run Certbot to obtain free SSL certificate from Let's Encrypt
- Configure Apache to use SSL certificate
- Update
C:\xampp\apache\conf\extra\httpd-ssl.conf
- Restart Apache service
Step 5: Secure MySQL
- Ensure MySQL is not accessible from outside (keep bind-address as 127.0.0.1)
- Use strong passwords for all database users
- Limit database user privileges
- Regularly update MySQL and XAMPP
Step 6: Update System Settings
- Login as Admin
- Go to Settings → System Settings
- Set "LAN/WAN Mode" to "WAN"
- Update school address and contact information
- Save settings
Step 7: Test WAN Access
- Access system using domain name:
https://stwilliams.edu.gh
- Test from different networks (mobile data, different WiFi)
- Verify all features work correctly
- Test all portal logins (Admin, Student, Teacher, HOD)
3. Troubleshooting
Common Issues and Solutions
- Cannot access from client computer: Check firewall settings and ensure Apache is running
- Database connection error: Verify MySQL user has proper permissions and remote access is enabled
- Slow performance: Check network bandwidth and server resources
- Security warnings: Install SSL certificate for WAN access
- Port forwarding not working: Verify router configuration and public IP address
4. Best Practices
- Regularly backup the database (at least daily)
- Keep XAMPP and all components updated
- Use strong, unique passwords for all accounts
- Monitor system logs for suspicious activity
- Implement regular security audits
- Document all configurations and changes
- Test disaster recovery procedures
- Keep antivirus software updated on server
5. Support
For technical support or assistance with network setup, please contact:
- Email: support@stwilliams.edu.gh
- Phone: +233 240 000 000
Additional Resources
- XAMPP Documentation:
https://www.apachefriends.org/docs.html
- MySQL Documentation:
https://dev.mysql.com/doc/
- Apache Documentation:
https://httpd.apache.org/docs/