Magento 2 Project Setup
Before writing code
- Fetch system requirements: Fetch
https://experienceleague.adobe.com/en/docs/commerce-operations/installation-guide/system-requirements for current PHP, MySQL, OpenSearch, Redis, and Varnish versions
- Fetch installation guide: Web-search
site:experienceleague.adobe.com commerce installation guide for step-by-step setup
- Check latest version: Web-search
magento open source latest version release for the current GA release
What This Skill Does
Guides through complete Magento 2 environment setup:
- Verify system requirements — PHP version, required extensions, MySQL/MariaDB, OpenSearch, Redis, Composer
- Install via Composer —
composer create-project from repo.magento.com
- Configure services — database, search engine, cache backend, session storage
- Run installer —
bin/magento setup:install with all required parameters
- Post-install — cron setup, developer mode, sample data (optional)
Supported Stack (Conceptual)
PHP support is a window, not a floor. Each Magento release supports a narrow band of PHP versions and drops older ones — 2.4.8 moved to PHP 8.3/8.4, and 2.4.9 dropped 8.2 while adding 8.5. "PHP 8.2 or newer" is therefore the wrong mental model: pick the Magento version first, then read its exact supported PHP versions from the system-requirements page fetched above, and pin to one of them. A PHP version that is too new fails as hard as one that is too old.
- PHP: match the exact band for your target Magento release — never assume forward compatibility
- Database: MySQL 8.0+ or MariaDB 10.6+
- Search: OpenSearch 2.12+ (Elasticsearch deprecated)
- Cache/Session: Redis 7.x or Valkey 8.x
- HTTP Cache: Varnish 7.x
- Message Queue: RabbitMQ 3.13+ (optional)
- Web Server: Nginx 1.24+ or Apache 2.4
- Composer: 2.x
Required PHP Extensions
memory_limit >= 2GB, and extensions: bcmath, ctype, curl, dom, gd, hash, iconv, intl, mbstring, openssl, pdo_mysql, simplexml, soap, spl, xsl, zip, sodium, sockets.
Installation Pattern
# 1. Create project
composer create-project --repository-url=https://repo.magento.com/ \
magento/project-community-edition <install-dir>
# 2. Install (with all services configured)
bin/magento setup:install \
--base-url=<url> \
--db-host=<host> --db-name=<name> --db-user=<user> --db-password=<pass> \
--search-engine=opensearch --opensearch-host=<host> --opensearch-port=9200 \
--session-save=redis --session-save-redis-host=<host> \
--cache-backend=redis --cache-backend-redis-server=<host> \
--admin-firstname=<first> --admin-lastname=<last> \
--admin-email=<email> --admin-user=<user> --admin-password=<pass>
# 3. Post-install
bin/magento deploy:mode:set developer
bin/magento cron:install
bin/magento setup:upgrade
bin/magento cache:flush
Development Environment Options
- Docker: Warden, Mark Shust's Docker Config, DDEV
- Local: Native PHP/MySQL/Nginx stack
- Cloud: Adobe Commerce Cloud (paid), custom cloud setup
Fetch the installation guide for exact CLI flags, service configuration, and file permission setup before proceeding.
1---2name: magento-setup3description: Set up a Magento 2 Open Source project — installation, Composer setup, system requirements verification, and initial configuration. Use when starting a new Magento project or setting up a development environment.4allowed-tools: Read, Write, Edit, Bash, Grep, Glob, WebSearch, WebFetch5metadata:6 source: https://skillmd.com/skills/orcaqubits/magento-setup7---89# Magento 2 Project Setup1011## Before writing code12131. **Fetch system requirements**: Fetch `https://experienceleague.adobe.com/en/docs/commerce-operations/installation-guide/system-requirements` for current PHP, MySQL, OpenSearch, Redis, and Varnish versions142. **Fetch installation guide**: Web-search `site:experienceleague.adobe.com commerce installation guide` for step-by-step setup153. **Check latest version**: Web-search `magento open source latest version release` for the current GA release1617## What This Skill Does1819Guides through complete Magento 2 environment setup:20211. **Verify system requirements** — PHP version, required extensions, MySQL/MariaDB, OpenSearch, Redis, Composer222. **Install via Composer** — `composer create-project` from `repo.magento.com`233. **Configure services** — database, search engine, cache backend, session storage244. **Run installer** — `bin/magento setup:install` with all required parameters255. **Post-install** — cron setup, developer mode, sample data (optional)2627## Supported Stack (Conceptual)2829> **PHP support is a window, not a floor.** Each Magento release supports a *narrow band* of PHP versions and **drops older ones** — 2.4.8 moved to PHP 8.3/8.4, and 2.4.9 dropped 8.2 while adding 8.5. "PHP 8.2 or newer" is therefore the wrong mental model: pick the Magento version first, then read its exact supported PHP versions from the system-requirements page fetched above, and pin to one of them. A PHP version that is too *new* fails as hard as one that is too old.3031- **PHP**: match the exact band for your target Magento release — never assume forward compatibility32- **Database**: MySQL 8.0+ or MariaDB 10.6+33- **Search**: OpenSearch 2.12+ (Elasticsearch deprecated)34- **Cache/Session**: Redis 7.x or Valkey 8.x35- **HTTP Cache**: Varnish 7.x36- **Message Queue**: RabbitMQ 3.13+ (optional)37- **Web Server**: Nginx 1.24+ or Apache 2.438- **Composer**: 2.x3940## Required PHP Extensions4142memory_limit >= 2GB, and extensions: bcmath, ctype, curl, dom, gd, hash, iconv, intl, mbstring, openssl, pdo_mysql, simplexml, soap, spl, xsl, zip, sodium, sockets.4344## Installation Pattern4546```bash47# 1. Create project48composer create-project --repository-url=https://repo.magento.com/ \49 magento/project-community-edition <install-dir>5051# 2. Install (with all services configured)52bin/magento setup:install \53 --base-url=<url> \54 --db-host=<host> --db-name=<name> --db-user=<user> --db-password=<pass> \55 --search-engine=opensearch --opensearch-host=<host> --opensearch-port=9200 \56 --session-save=redis --session-save-redis-host=<host> \57 --cache-backend=redis --cache-backend-redis-server=<host> \58 --admin-firstname=<first> --admin-lastname=<last> \59 --admin-email=<email> --admin-user=<user> --admin-password=<pass>6061# 3. Post-install62bin/magento deploy:mode:set developer63bin/magento cron:install64bin/magento setup:upgrade65bin/magento cache:flush66```6768## Development Environment Options6970- **Docker**: Warden, Mark Shust's Docker Config, DDEV71- **Local**: Native PHP/MySQL/Nginx stack72- **Cloud**: Adobe Commerce Cloud (paid), custom cloud setup7374Fetch the installation guide for exact CLI flags, service configuration, and file permission setup before proceeding.