Installation
This guide walks you through setting up the School Management Platform on your local development environment using XAMPP.Installation typically takes 10-15 minutes. Make sure you have at least 500MB of free disk space.
Prerequisites
Before you begin, ensure you have:- Windows, macOS, or Linux operating system
- At least 500MB of free disk space
- Administrator/root access to install XAMPP
- Git installed (optional, for cloning the repository)
Installation steps
Download and install XAMPP
Download XAMPP from the official website. Choose the version that includes PHP 7.4 or higher.Install XAMPP to your preferred location:
- Windows:
C:\xampp - macOS/Linux:
/opt/lamppor~/xampp
During installation, ensure both Apache and MySQL components are selected.
Clone the repository
Open your terminal or command prompt and navigate to the XAMPP Clone the School Management Platform repository:Alternatively, download the ZIP file from GitHub and extract it to the
htdocs folder:htdocs folder.Start XAMPP services
Launch the XAMPP Control Panel and start both services:
- Click Start next to Apache
- Click Start next to MySQL
If Apache fails to start, port 80 might be in use. Check if IIS or Skype is running and stop those services.
Create the database
Open phpMyAdmin in your browser:Create a new database:
- Click New in the left sidebar
- Enter database name:
school_db - Choose collation:
utf8mb4_general_ci - Click Create
If you prefer a different database name, you’ll need to update the configuration in the next step.
Import database schema (if provided)
If a SQL file is included in the repository:
- Select your
school_dbdatabase in phpMyAdmin - Click the Import tab
- Click Choose File and select the
.sqlfile from the project - Click Go to import
Configure database connection
Create the database configuration file. In your project, create the folder and file:Create
config/database.php with the following content:This file is gitignored by default to protect your database credentials. Update the values if you’ve changed your MySQL username, password, or database name.
Verify your setup
To confirm everything is working correctly:- Check Apache: Visit
http://localhost- you should see the XAMPP dashboard - Check MySQL: Open phpMyAdmin at
http://localhost/phpmyadmin - Check application: Visit
http://localhost/school_management/publicfor the login page
Troubleshooting
Apache won’t start
Problem: Port 80 is already in use Solution:- Stop IIS if running on Windows
- Close Skype or change its port settings
- Edit XAMPP’s Apache config to use port 8080 instead
Database connection error
Problem: “Connection error” message appears Solution:- Verify MySQL is running in XAMPP Control Panel
- Check database credentials in
config/database.php - Ensure database
school_dbexists in phpMyAdmin
Page not found errors
Problem: Routes return 404 errors Solution:- Check that
.htaccessfile exists in thepublicfolder - Enable
mod_rewritein Apache configuration - Verify the correct path is used:
/school_management/public
Session errors
Problem: Login doesn’t work or session errors appear Solution:- Ensure PHP session directory is writable
- Check that
session_start()is called inpublic/index.php - Clear browser cookies and try again
Next steps
Now that you’ve installed the platform, proceed to the quickstart guide to:- Create your first admin user
- Log in and explore the dashboard
- Add students and teachers
- Create your first course