Appearance
Localhost Installation
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 on your local machine:
- 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 Tools
For easier local development, consider using:
- XAMPP (Windows/Mac/Linux) - Includes Apache, MySQL, and PHP
- WAMP (Windows) - Windows, Apache, MySQL, PHP
- MAMP (Mac) - Mac, Apache, MySQL, PHP
- Laragon (Windows) - Modern local development environment
Installation Steps
Step 1: Extract the Package
- Download the Mentor LMS package from CodeCanyon
- Extract the ZIP file to your local development directory
- For XAMPP:
C:\xampp\htdocs\mentor-lms(Windows) or/Applications/XAMPP/htdocs/mentor-lms(Mac) - For WAMP:
C:\wamp64\www\mentor-lms - For MAMP:
/Applications/MAMP/htdocs/mentor-lms - For Laragon:
C:\laragon\www\mentor-lms
- For 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: Configure Environment
- Navigate to the project directory in your terminal/command prompt
- Copy the
.env.examplefile to.env:
Step 4: Install Dependencies
Install PHP and Node.js dependencies:
bash
# Install PHP dependencies
composer install
# Install Node.js dependencies
npm installNote
If you encounter any errors during composer install, make sure your PHP version meets the requirements and all required PHP extensions are enabled.
Step 5: Database Migration & Seeding
After installing dependencies you can prepare the database using either manual artisan commands or the built-in web installer.
Option 1: Artisan Commands
- From the project root, navigate to
storage/app/public/ - Create an empty file named
installed(no extension needed) - Run one of the following command sets:
bash
php artisan migrate
php artisan db:seedOr run both migration and seeding in a single command:
bash
php artisan migrate:refresh --seedOption 2: Web Installer on Localhost
- Open your browser and visit
http://localhost:8000(or the URL shown in your terminal) - You will be redirected to the installation wizard automatically
- If not redirected, navigate directly to
http://localhost:8000/install/step-1 - Complete each wizard step as described in the Web Installer Guide
Step 6: Start Development Server
Start the local development server:
bash
composer devThis command will start the application on http://localhost:8000
Alternative Method
You can also use PHP's built-in server:
bash
php artisan serveThis will start the server on http://localhost:8000

