E-Commerce Platforms

Magento Open Source for Developers and Merchants: A Complete Handbook

By the Domain India teamPublished 9 min read
Knowledge base article
Contents (9 sections)

Magento Open Source is a free, self-hosted eCommerce platform built for large catalogues, several store views and heavy customisation. That power comes with real server requirements, so the first decision is where to run it. This handbook covers what Magento needs in 2026, why it belongs on a VPS rather than shared hosting, how to install it, and how to keep a store fast, secure and up to date.

Key takeaways

Magento Open Source 2.4 needs a current PHP, MySQL or MariaDB, an OpenSearch search service, Composer, a cron job that runs every minute, and ideally Redis and Varnish. That makes it a VPS application: shared hosting can't provide the search service, the one-minute cron or Composer. Plan for at least 4 GB of RAM, apply security patches promptly, and consider WooCommerce if your store is small.

1. What Magento Open Source is

Magento Open Source is the free edition of the platform now owned by Adobe; Adobe Commerce is the paid edition with B2B features and support. Both are written in PHP and share the same core. There is also Mage-OS, a community-run distribution of the same open-source code.

It suits merchants with thousands of products, several languages or storefronts, complex pricing or B2B-style catalogues, and a developer or agency to look after it.

Good for
  • Large catalogues with many attributes and product types
  • Several websites, stores and languages from one admin panel
  • Deep customisation through modules and themes
  • No licence fee for the Open Source edition
Watch out for
  • Needs a VPS and more memory than most platforms
  • Development and maintenance need a skilled PHP developer
  • Security patches must be applied promptly
  • Too heavy for a small store with a few hundred products

For a small or medium store, WooCommerce on shared hosting is usually cheaper and simpler. See comparing PrestaShop, WooCommerce, Magento, Shopify and BigCommerce.

2. What Magento 2.4 needs

Each 2.4 release supports specific versions of PHP, the database and the search engine, so check Adobe's system requirements page for the exact release you install. Current releases of the 2.4 line need:

ComponentRequirementNotes
PHPA recent 8.x version with PHP-FPM2.4.8 supports PHP 8.3 and 8.4; older 2.4 releases need older PHP
DatabaseMySQL 8 or a matching MariaDB releaseUse the versions listed for your release
SearchOpenSearchMandatory since 2.4.0; Magento won't install without it
ComposerComposer 2Installs Magento and every extension
CronEvery minuteRuns indexers, emails, sitemaps and scheduled jobs
CacheRedis or Valkey, plus VarnishRecommended for any live store
Memory4 GB RAM or moreOpenSearch alone needs 1 to 2 GB

PHP extensions required include bcmath, ctype, curl, dom, gd, intl, mbstring, openssl, pdo_mysql, simplexml, soap, sodium, xsl and zip.

3. Why Magento doesn't fit shared hosting

Softaculous on our shared servers includes Magento installers, but a production Magento 2.4 store can't run properly on shared hosting:

  • No search service. Shared hosting doesn't run OpenSearch, which Magento 2.4 requires.
  • Composer can't run. The PHP functions Composer needs to unpack packages are disabled on shared hosting, so you can't install extensions or apply patches on the server. See PHP disabled functions on shared hosting.
  • Cron runs every 4 minutes at best. Magento expects its cron every minute.
  • No Redis. Shared plans don't include a Redis server.
  • Resource limits. Reindexing and a busy catalogue quickly reach a shared account's CPU and memory limits.

A VPS removes all of these limits.

4. Install Magento on a VPS

The outline below uses Ubuntu 24.04 LTS, which ships PHP 8.3. Adjust versions to match Adobe's requirements for the release you choose.

  1. Prepare the server.
    Update it, create a non-root sudo user, log in with SSH keys and allow only SSH, HTTP and HTTPS through the firewall. See essential security and optimisation tips for your VPS.
  2. Install the stack.
    nginx, PHP-FPM with the extensions above, MySQL or MariaDB, Redis or Valkey, and Composer 2. Install OpenSearch from its official package repository and keep it listening on localhost only.
  3. Create the database.
    Create an empty database and a user with rights on it only.
  4. Get access keys.
    Create a free account on the Adobe Commerce Marketplace and generate access keys; Composer uses them to download Magento.
  5. Download Magento with Composer.
    Run it as the site user, not as root.
  6. Run the installer
    , then switch to production mode and install the cron job.
  7. Configure nginx and HTTPS.
    Use the sample nginx.conf.sample that ships with Magento, and add a free Let's Encrypt certificate with Certbot.

The key commands, run from the site user's account:

bash
composer create-project --repository-url=https://repo.magento.com/ \
  magento/project-community-edition /var/www/magento
cd /var/www/magento
bin/magento setup:install \
  --base-url=https://shop.example.com/ \
  --db-host=localhost --db-name=magento --db-user=magento --db-password='CHANGE-ME' \
  --admin-firstname=Store --admin-lastname=Admin [email protected] \
  --admin-user=storeadmin --admin-password='CHANGE-ME-TOO' \
  --backend-frontname=manage_7x2k \
  --search-engine=opensearch --opensearch-host=localhost --opensearch-port=9200 \
  --language=en_IN --currency=INR --timezone=Asia/Kolkata
bin/magento deploy:mode:set production
bin/magento cron:install
Protect the admin panel from day one

Choose an unguessable admin path with --backend-frontname, never admin. Magento 2.4 enables two-factor authentication for admin users by default; keep it on. Use strong, unique passwords for every admin account.

5. Set up the store

Most basic settings live in the admin under Stores → Configuration and Stores → Settings:

  • Locale, currency and time zone. English (India), Indian rupee and Asia/Kolkata for an Indian store.
  • Taxes. Create tax classes, rates and rules under Stores → Tax Zones and Rates and Tax Rules to match your GST obligations. Ask your accountant how prices should be shown and invoiced.
  • Shipping and payments. Configure shipping methods, then install your payment gateway's official Magento extension. Most Indian gateways publish one; install it from the gateway's own documentation or the Marketplace.
  • Catalogue. Create attribute sets first, then categories and products. Configurable products group variants such as size and colour.

6. Keep it fast

Production mode
Compiles code and serves static files ready-made. Never run a live store in developer mode.
Full-page cache
Use Varnish in front of the store for the biggest speed gain on catalogue pages.
Redis for cache and sessions
Much faster than the default file cache on a busy store.
Indexers on schedule
Set indexers to "Update by Schedule" so saving products doesn't slow the admin.
Optimised images
Resize and compress product images before upload, and serve modern formats where you can.
Only the extensions you need
Every third-party module adds code to every request; remove unused ones.

7. Security, updates and backups

Adobe publishes security patches for supported 2.4 releases on a regular schedule. Apply them promptly, because online stores are prime targets for card-skimming attacks.

To upgrade, test on a staging copy first, then on the live store:

bash
bin/magento maintenance:enable
composer require magento/product-community-edition=2.4.x --no-update   # the target release
composer update
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento maintenance:disable

Also:

  • Install extensions only from their developers or the Marketplace, never from "nulled" download sites.
  • Use your payment gateway's hosted or redirect checkout where possible, so card data never touches your server.
  • Back up the database and the pub/media folder to storage outside the server, and test a restore.

8. Where Domain India fits

Magento belongs on a VPS. A Domain India VPS gives you root access and is self-managed: you install, secure, update and back up the stack yourself. cPanel is not offered on our VPS plans; the control panel options at checkout are none, CyberPanel, Webuzo or DirectAdmin. Choose at least 4 GB of RAM for a small store with OpenSearch, and more as your catalogue and traffic grow.

VPS Basic
₹1,105.30/mo + GST
  • 2 vCPU
  • 4 GB DDR4 RAM
  • 128 GB NVMe SSD Storage
  • 3 TB Monthly Bandwidth
See plan details
VPS Standard
₹2,210.60/mo + GST
  • 4 vCPU
  • 8 GB DDR4 RAM
  • 256 GB NVMe SSD Storage
  • 5 TB Monthly Bandwidth
See plan details

The cards show live Domain India list prices, excluding 18% GST. For a smaller store, WooCommerce on WordPress hosting is often the better fit.

Frequently asked questions

Is Magento Open Source free?

Yes. Magento Open Source has no licence fee. You pay for hosting, any paid extensions or themes, and development and maintenance time.

Can I run Magento 2 on shared hosting?

Not properly. Magento 2.4 needs an OpenSearch service, a cron job every minute and Composer, which shared hosting doesn't provide. Use a VPS for a Magento store.

How much RAM does Magento need?

Plan for at least 4 GB on a server that also runs the database and OpenSearch, and more for large catalogues or busy stores. OpenSearch alone typically uses 1 to 2 GB.

Does Magento 2.4 still use Elasticsearch?

OpenSearch is the search engine for current 2.4 releases. A search engine is mandatory: Magento 2.4 won't install or run without one.

Which PHP version does Magento need?

It depends on the release. Magento 2.4.8 supports PHP 8.3 and 8.4, while older 2.4 releases need older versions. Check Adobe's system requirements for your exact release before upgrading PHP.

Does Domain India manage Magento on a VPS for me?

No. A Domain India VPS is self-managed. You or your developer install, secure, update and back up Magento and the server software.

Should a small store choose Magento or WooCommerce?

For a few hundred products and a simple catalogue, WooCommerce is usually cheaper to host and easier to run. Magento pays off with large catalogues, several storefronts or complex pricing.

Ready to launch your store? Compare VPS plans for Magento, see WordPress hosting for a WooCommerce store, or open a support ticket if you are not sure which fits.

Run Magento on a Domain India VPS

Root access on KVM virtualisation, with the memory a Magento store needs.

See VPS plans

Was this article helpful?

Your answer helps us decide what to improve next.

Still need help? Open a support ticket and our team will reply.

Prefer an app? Add this site to your home screen.Get the app