Prerequisites
Before installing Ecom, ensure your system meets the following requirements:System Requirements:
- PHP >= 8.0.2
- Composer
- MySQL >= 5.7 or PostgreSQL >= 9.6
- Node.js >= 14.x and NPM
- Web server (Apache/Nginx)
Required PHP Extensions
The following PHP extensions must be installed and enabled:- OpenSSL PHP Extension
- PDO PHP Extension
- Mbstring PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
- Ctype PHP Extension
- JSON PHP Extension
- BCMath PHP Extension
- Fileinfo PHP Extension
- GD PHP Extension
Installation Steps
Install PHP Dependencies
Install all required PHP packages using Composer:This will install all dependencies defined in
composer.json, including:- Laravel Framework 9.2
- Payment gateway packages (Stripe, PayPal, Razorpay, etc.)
- Image processing (Intervention Image)
- PDF generation (mPDF, Laravel PDF)
- Excel support (Maatwebsite Excel)
- And 30+ other packages
The installation may take several minutes depending on your internet connection.
Create Environment File
Copy the example environment file and configure it:The
.env file will be automatically created if it doesn’t exist during the post-install process.Generate Application Key
Generate a unique application encryption key:The key will be automatically set in your
.env file as APP_KEY.Configure Database
Edit your
.env file and update the database configuration:Ecom supports multiple database systems:
- MySQL (recommended)
- PostgreSQL
- SQLite
- SQL Server
Run Database Migrations
Create all necessary database tables:This will create tables including:
users- User accountsproducts- Product catalogproduct_queries- Customer questionspassword_resets- Password reset tokens- And many more e-commerce tables
Seed Database (Optional)
If you want to populate the database with sample data:
Seeding is optional and typically used for development/testing environments.
Install Frontend Dependencies (Optional)
If you plan to modify frontend assets, install Node.js dependencies:For production builds:
Start Development Server
For local development, start the Laravel development server:Your application will be available at
http://localhost:8000For production deployment, see the Deployment Guide.
Post-Installation
After successful installation:- Visit your application URL
- Complete the initial setup wizard (if available)
- Configure payment gateways in the admin panel
- Set up email configuration
- Configure storage settings
Troubleshooting
Composer install fails
Composer install fails
Ensure you have PHP 8.0.2 or higher installed:Update Composer to the latest version:
Permission denied errors
Permission denied errors
Make sure the web server user has write access to storage and cache directories:
Migration errors
Migration errors
Ensure your database exists and credentials are correct in
.env:500 Internal Server Error
500 Internal Server Error
Check your web server error logs and ensure:
- Storage directory is writable
- APP_KEY is set in
.env - All required PHP extensions are installed
Next Steps
Configuration
Configure application settings
Environment Setup
Set up environment variables
Database Setup
Learn about database configuration
Deployment
Deploy to production