Skip to main content
Get Started

Quick Start Guide

Get from zero to a working Mage-OS store in under 30 minutes. This guide is designed for developers, merchants evaluating the platform, or anyone wanting a fast local development environment.

Total time: 20-30 minutes | Difficulty: Beginner-friendly


Before You Begin

System Requirements

ComponentVersion Required
PHP8.3 or 8.4
Composer2.8+
MySQL8.4+ (or MariaDB 11.4+)
OpenSearch2.19+
Web ServerApache 2.4+ or Nginx 1.26+

Need the full list? See System Requirements.

Choose Your Environment

Already have a development environment? Skip to Installation Steps.

Need an environment? We recommend these Docker-based options:

ToolBest ForSetup Time
DDEVEasiest setup, great for beginners5 minutes
docker-magentoProduction-like, excellent docs10 minutes
WardenProduction-like, built for managing multiple environments10 minutes

For detailed Docker installation, see the Installation Guide.

Installation Steps

Follow these six steps to get your Mage-OS store up and running

Step 1: Create Project 3-5 min

Use Composer to download Mage-OS and all dependencies into your project directory.

Step 2: Create Database 1 min

Set up a MySQL or MariaDB database and user for your installation.

Step 3: Run Installation 5-10 min

Execute the setup installer to configure your store, admin account, and services.

Step 4: Set Permissions & Deploy 5-10 min

Configure file permissions, compile dependency injection, and deploy static assets.

Step 5: Set Deploy Mode 1 min

Choose developer mode for local work or production mode for live stores.

Step 6: Access Your Store Done!

Open your storefront and admin panel to verify everything is working.

Step 1: Create Project 3-5 min

Navigate to your web server's document root and create a new project:

composer create-project --repository-url=https://repo.mage-os.org/ mage-os/project-community-edition .

What this does:

  • Downloads Mage-OS Distribution and all dependencies
  • Sets up the basic file structure
  • Configures Composer autoloading

Step 2: Create Database 1 min

Create an empty database for your Mage-OS installation:

mysql -u root -p -e "CREATE DATABASE mage_os;"
mysql -u root -p -e "CREATE USER 'mage_os_user'@'localhost' IDENTIFIED BY 'secure_password';"
mysql -u root -p -e "GRANT ALL PRIVILEGES ON mage_os.* TO 'mage_os_user'@'localhost';"
mysql -u root -p -e "FLUSH PRIVILEGES;"

Step 3: Run Installation 5-10 min

Run the setup installer with your configuration:

bin/magento setup:install \
  --base-url=http://yourdomain.local/ \
  --db-host=localhost \
  --db-name=mage_os \
  --db-user=mage_os_user \
  --db-password=secure_password \
  --admin-firstname=<your-firstname> \
  --admin-lastname=<your-lastname> \
  --admin-email=<your-email@example.com> \
  --admin-user=<your-username> \
  --admin-password=<your-secure-password> \
  --language=en_US \
  --currency=USD \
  --timezone=America/New_York \
  --use-rewrites=1 \
  --search-engine=opensearch \
  --opensearch-host=localhost \
  --opensearch-port=9200

Customize these values:

ParameterDescriptionExample
--base-urlYour store URLhttp://mystore.local/
--db-nameDatabase namemage_os
--db-userDatabase usernamemage_os_user
--db-passwordDatabase passwordYour secure password
--admin-emailAdmin email addressyou@example.com
--admin-userAdmin login usernameadmin
--admin-passwordAdmin login passwordMin 7 chars, 1 letter, 1 number

Step 4: Set Permissions and Deploy 5-10 min

After installation completes, set permissions and deploy assets:

# Set file permissions
find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} +
find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} +
chmod u+x bin/magento

# Compile dependency injection
bin/magento setup:di:compile

# Deploy static content
bin/magento setup:static-content:deploy -f

# Flush cache
bin/magento cache:flush

Step 5: Set Deploy Mode 1 min

For local development:

bin/magento deploy:mode:set developer

Developer mode provides detailed error messages and disables static file caching for easier debugging.

For production:

bin/magento deploy:mode:set production

Production mode enables full caching and optimizations for performance.


Step 6: Access Your Store Done!

Storefront

Open your browser and navigate to:

http://yourdomain.local/

You should see the default Mage-OS/Magento storefront with the Luma theme.

Admin Panel

Navigate to:

http://yourdomain.local/admin

Login with:

  • Username: The value you specified for --admin-user
  • Password: The value you specified for --admin-password

Success! Your Store is Live

Congratulations! You now have a working Mage-OS installation.

Essential Configuration

Access Admin > Stores > Configuration to configure:

SettingLocationPurpose
Store InformationGeneral > GeneralStore name, address, contact
Base URLsGeneral > WebSecure URLs for production
Payment MethodsSales > Payment MethodsEnable payment gateways
Shipping MethodsSales > Shipping MethodsConfigure shipping options
Tax RulesSales > TaxSet up tax calculations

Set Up Cron Jobs

Mage-OS requires cron for scheduled tasks (indexing, emails, etc.). Use the built-in command to configure cron automatically:

bin/magento cron:install

Verify the installation:

bin/magento cron:status

Troubleshooting

Next Steps

Now that your store is running, explore these resources:

Join the Community

Get help, share ideas, and connect with other Mage-OS developers and merchants.

Our Partners

Support Mage-OS