Localhost Installation
Step-by-step guide to install Mentor LMS on your local development environment.
This guide will walk you through installing Mentor LMS on your local development environment (Windows, macOS, or Linux).
Prerequisites
Before you begin, ensure you have the following installed:
- PHP (version 8.2 or higher)
- Composer (PHP dependency manager)
- Node.js and npm (for frontend assets)
- MySQL or MariaDB database server
- Web Server (Apache, Nginx, or PHP built-in server)
Recommended Local Tools
- XAMPP (Windows/Mac/Linux) — Includes Apache, MySQL, and PHP
- Laragon (Windows) — Modern local development environment
- MAMP (Mac) — Mac, Apache, MySQL, PHP
Installation Steps
Step 1: Extract the Package
- Download the Mentor LMS package from CodeCanyon
- Extract the ZIP file to your local development directory:
- XAMPP:
C:\xampp\htdocs\mentor-lms - Laragon:
C:\laragon\www\mentor-lms - MAMP:
/Applications/MAMP/htdocs/mentor-lms
- XAMPP:
Step 2: Create Database
- Open phpMyAdmin (usually at
http://localhost/phpmyadmin) - Click on Databases tab
- Create a new database (e.g.,
mentor_lms)
Step 3: Install Dependencies
# Install PHP dependencies
composer install
# Install Node.js dependencies
npm installIf you encounter errors during composer install, make sure your PHP version meets the requirements and all required PHP extensions are enabled.
Step 4: Database Migration & Seeding
After installing dependencies, prepare the database using one of these methods:
Option 1: Artisan Commands
- Navigate to
storage/app/public/and create an empty file namedinstalled(no extension) - Run the migration and seed commands:
php artisan migrate
php artisan db:seedOr run both in one command:
php artisan migrate:refresh --seed- Create the storage symbolic link:
php artisan storage:link- Start the local development server:
composer devThis starts the application at http://localhost:8000. You also need to compile assets:
npm run devOption 2: Web Installer
Start the development server:
composer devThen open your browser at http://localhost:8000 — you'll be redirected to the installation wizard automatically. Follow the Web Installer Guide.