Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
VGSources
Blog

How to Install Magento with Sample Data on a Linux VPS

A release-matched, step-by-step guide to installing Magento with sample data on a Linux VPS, including Composer authentication, search setup, permissions, verification, and cleanup.
Length10 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Install Magento by first selecting the exact Adobe Commerce or Magento release, then provision a Linux x86-64 VPS with the PHP, Composer, database, web server, cache, and search-engine versions listed for that release. Configure OpenSearch or Elasticsearch before installing Commerce 2.4.4 or later, install the application with Composer, switch to developer mode, run bin/magento sampledata:deploy as the file-system owner, apply the updates, and verify the storefront and Admin in a browser.

The sample catalog is a Luma demonstration store with products, categories, customer registration, and related entities. It is useful for learning and development; remove it before a live launch.

As an Amazon Associate I earn from qualifying purchases.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What you need before you begin

A successful VPS installation is primarily a compatibility exercise. Adobe changes supported dependency versions by Magento and Adobe Commerce release, so choose the application release before choosing the operating-system packages. Open Adobe’s System Requirements page, select the exact release row, and record every value shown there.

  • A Linux x86-64 VPS running an operating system listed for the selected release.
  • PHP and its required extensions at the versions in that release row.
  • Composer at the supported version.
  • MariaDB or MySQL at the supported version.
  • nginx and the supported cache service.
  • OpenSearch or Elasticsearch at a version supported by that same release row.
  • Shell access with permission to install packages, create the database, configure nginx, and manage the Magento file-system owner.
  • Adobe Commerce or Magento Composer authentication keys from the account entitled to download the package.
  • A DNS name or temporary host name, a database name and credentials, and an administrator email address.

Do not copy PHP, database, or search versions from an older tutorial. A version that worked for one patch line can be unsupported by another. Adobe’s matrix is the authority for the release you actually install.

#1 Best Overall
Sale
Gaoye Blue Light Blocking Glasses
  • BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
  • EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
  • COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
  • LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
  • WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.

Choose the release and map its dependencies

Write down the release before running any package manager command. Your planning sheet should contain the following values from one Adobe compatibility row:

Component What to select Why it matters
Magento or Adobe Commerce The exact major, minor, and patch release you intend to deploy Every dependency is evaluated against this release.
Linux A supported Linux x86-64 distribution and version Unsupported operating-system libraries can break PHP extensions or services.
PHP The PHP version and extensions listed for the release Magento’s code and dependency lock files expect this compatibility range.
Composer The Composer version listed for the release Composer resolves the application and sample-data packages.
Database The supported MariaDB or MySQL version Schema and data installation depend on the database engine and version.
Search OpenSearch or Elasticsearch, only at a version shown for the release Catalog search and the installer depend on a reachable, compatible engine.
Web and cache services nginx and the cache service versions listed by Adobe These affect routing, generated content, and runtime behavior.

The matrix does not establish that a particular VPS size guarantees success. Capacity depends on catalog size, traffic, indexing, enabled modules, and background jobs, so treat server sizing as a separate operational decision.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Prepare the search engine first

For Adobe Commerce 2.4.4 and later, Adobe requires you to install and configure either Elasticsearch or OpenSearch before installing Commerce. Search is not an optional post-install add-on in these releases.

Pick a supported engine, not a favorite

OpenSearch and Elasticsearch are alternatives only within the compatibility row for your chosen release. Check the exact engine version, Java or service prerequisites, bind address, and authentication settings in the engine’s own documentation and Adobe’s release requirements. Do not infer that a newer engine is acceptable merely because it is newer.

Verify the service before Magento runs

  1. Install the engine version listed for your release.
  2. Start it and configure it to launch at boot.
  3. Confirm that the VPS can reach the service on its configured host and port.
  4. Apply any authentication, firewall, and bind-address settings required by your deployment.
  5. Record the host, port, and credentials; you will enter these values in the Magento installer.

If the installer cannot connect to search, fix the service, network, or credentials first. Re-running Magento commands will not repair an unavailable engine.

Rank #2
Windex Gaming Cleaning Wipes, Pre-Moistened Wipes to Instantly Clean all Gaming Gear and Electronics, Resealable Packaging for a Freshness Lock, 25 count (Pack of 1)
  • WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
  • AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
  • PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
  • ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
  • COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed

Configure Composer authentication

Magento packages are downloaded from repo.magento.com. Adobe uses authentication keys: a public key acts as the user name and a private key acts as the password. Use keys associated with the account that is authorized to download the exact Commerce or Magento packages you selected.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Store the keys for the Composer account

Run Composer as the same operating-system account that owns the Magento files. Configure credentials for that account rather than configuring them only for root. A typical configuration command is:

export MAGENTO_PUBLIC_KEY='paste-your-public-key-here'
export MAGENTO_PRIVATE_KEY='paste-your-private-key-here'
composer config --global http-basic.repo.magento.com "$MAGENTO_PUBLIC_KEY" "$MAGENTO_PRIVATE_KEY"

Do not commit the private key to a project repository or place it in a world-readable file. If Composer prompts during installation or sample-data deployment, provide the same keys. Using a different account, expired keys, or keys without package access commonly causes a 401/403 response or an apparently missing package.

Install Magento with Composer

Use Adobe’s Composer installation tutorial for the create-project command and installer options because the package name and supported release must match your selection. Do not substitute a command from an older Magento guide.

Create the project directory

  1. Create the directory that will hold the application and assign it to the intended Magento file-system owner.
  2. Change into that directory’s parent and run the exact Composer create-project command for your release, using the repository configuration required by Adobe.
  3. When Composer asks for credentials, enter the public and private authentication keys configured above.
  4. Wait for dependency resolution to finish. Do not interrupt the process while Composer is writing the lock file and vendor directory.

The account that runs Composer should normally remain the file-system owner used by nginx and PHP-FPM. Mixing root-owned files with owner-owned files produces permission failures later when Magento generates code, writes cache files, or deploys sample data.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
LISEN Cell Phone Stand Phone Holder for Desk, Office Decor Gadgets for Men
  • Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
  • Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
  • Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
  • ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
  • Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)

Run the application installer

From the Magento application root, run the bin/magento setup:install command from Adobe’s guide and supply values for:

  • The database host, database name, database user, and password.
  • The base URL that browsers will use.
  • The administrator user name, password, and email address.
  • The selected search engine, host, port, and any credentials required by that engine.
  • The time zone, currency, and language appropriate for your development store.

Use a temporary HTTP base URL only when that is deliberate for a private development environment. For an internet-facing deployment, plan TLS and the final domain before inviting users. Adobe requires TLS 1.2 or later for PayPal connections and for access to repo.magento.com; production hardening should therefore include a valid certificate, HTTPS redirects, secure cookies, and restricted administrator access.

Deploy the sample data

Sample data must be installed in developer mode and by the Magento file-system owner. Adobe explicitly warns that installing sample data while the application is in production mode fails.

Switch to developer mode

Change to the application root and confirm that your shell is the file-system owner. Then run:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
bin/magento deploy:mode:set developer

Developer mode is intended for a development or learning instance. It exposes errors and supports on-demand generation behavior that is unsuitable for a hardened live store.

Rank #4
Ledagic IC+RGBW USB Powered Led Light Bar with App & Remote Control, 2 Pack
  • Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
  • Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
  • 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
  • Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
  • USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC

Download and register the sample-data packages

Run:

bin/magento sampledata:deploy

The command uses Composer to obtain the sample-data packages. If Composer requests authentication, enter the same repo.magento.com keys used for the main application. Keep the terminal output: a package conflict, authentication error, or incompatible release is easier to diagnose from the first failure than from a later browser error.

Apply the database changes

If sample data was added after the application installation, apply its module schema and data updates:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
bin/magento setup:upgrade
bin/magento cache:clean

setup:upgrade applies schema and data changes from Magento modules and the newly installed sample-data packages. Cleaning the cache removes stale configuration and block output so the browser can load the new catalog.

What the sample store contains

After a successful deployment, the storefront is based on the Luma theme and includes demonstration products, categories, customer registration, and related entities. These records let you test navigation, search, category pages, product detail pages, account creation, checkout flows, and administrative catalog screens without designing a catalog from scratch.

Sample data is a pre-generated store simulation, not a starter catalog for a commercial launch. Product names, images, prices, customer records, and categories are demonstration content. Remove them and replace them with data you own before exposing a production store to customers.

Best Value
Sale
HUANUO FlowLift™ Dual Monitor Stand, Fully Adjustable Gaming Monitor Desk Mount for 13–32″ Computer Screens, Full Motion VESA 75x75/100x100 with C-Clamp & Grommet Base, Each Arm Holds 4.4 to 19.8 lbs
  • Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
  • Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
  • Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
  • Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
  • Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Verify the installation in a browser

  1. Open the configured storefront URL and confirm that the Luma home page renders without a PHP or web-server error.
  2. Open a category and a product page; confirm that images, prices, and navigation load.
  3. Use the customer-registration link to confirm that the storefront can create an account.
  4. Open the Admin URL created by the installer and sign in with the administrator account.
  5. Inspect Catalog and Customers to confirm that sample entities are present.
  6. Run a search from the storefront and watch the search-engine and PHP logs if results fail.

A browser check is not a substitute for log review. If a page fails, check file ownership, PHP-FPM and nginx logs, database connectivity, search-engine connectivity, and Composer authentication before repeating the deployment commands.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Composer packages versus the Git repository method

Most VPS administrators should use Composer packages. Adobe documents a Git-based sample-data workflow for contributing developers who have cloned Magento Open Source, not as the normal path for a packaged server deployment.

Decision point Composer deployment Git repository deployment
Who should use it? Administrators and developers installing a released application on a VPS. Contributing developers working from a cloned Magento Open Source tree.
Release alignment Composer resolves packages for the selected released application. You must clone the matching released branch of magento2-sample-data.
Authentication Requires the authorized repo.magento.com keys when packages are downloaded. Uses the repository workflow and still requires the application to be correctly configured.
Build step bin/magento sampledata:deploy. Run build-sample-data.php with --ce-source to create links into the Magento source tree.
Permissions Keep Composer and Magento commands under the file-system owner. Set ownership and group-write permissions after creating the links, then run bin/magento setup:upgrade.
Maintenance burden Lower; package versions follow the released dependency graph. Higher; branch matching, links, permissions, and source-tree changes are your responsibility.

Do not mix the methods casually. A Git checkout linked to a different application release can produce module and schema mismatches that a normal Composer deployment avoids.

Troubleshoot the failures that matter most

Composer returns an authentication or authorization error

  • Confirm that the public and private keys belong to an account entitled to download the selected package.
  • Check that Composer is running as the account whose global configuration contains the keys.
  • Repeat the key configuration without exposing the private key in shell history or support tickets.
  • Make sure the requested package release is still available to that account.

sampledata:deploy fails immediately

  • Check the current deployment mode with bin/magento deploy:mode:show.
  • If the mode is production, switch to developer mode and rerun the deployment.
  • Confirm that the command is run from the application root and by the file-system owner.
  • Read the first Composer or module error rather than repeatedly rerunning the final command.

The storefront loads but search returns an error

  • Verify that OpenSearch or Elasticsearch is the version supported by your Magento release.
  • Check that the service is running and reachable from the PHP/web-server host.
  • Compare the host, port, protocol, and credentials entered during installation with the search service configuration.
  • Review the search-engine and PHP-FPM logs for rejected connections or authentication failures.

Magento reports permission or generated-code errors

  • Find files owned by root or another account and restore ownership to the Magento file-system owner.
  • Ensure that the web-server/PHP process can read the application and write the directories Magento documents for generated code, cache, and media.
  • Run Composer, Magento CLI commands, and sample-data commands consistently as the owner instead of alternating between root and an unprivileged account.

setup:upgrade completes but pages remain stale

  • Run bin/magento cache:clean again after the upgrade.
  • Check PHP-FPM and nginx logs for a separate runtime error.
  • Confirm that the browser is using the same base URL and virtual host configured during installation.

Remove or reset sample data

Adobe documents two management commands:

bin/magento sampledata:remove
bin/magento sampledata:reset

Use the command that matches your objective and follow it with the database and cache steps Adobe specifies for your release. Removing sample-data modules is appropriate when converting a development installation toward a real catalog; resetting is for managing the sample-data state during development. In either case, inspect the catalog and customer records afterward rather than assuming that a command has made a production-ready store.

Production boundary: what to change before launch

Sample data and developer mode belong on a private learning or staging VPS. Before a live launch:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Remove sample products, categories, customers, and other demonstration entities.
  • Switch out of developer mode using the deployment procedure appropriate for your release.
  • Use HTTPS with TLS 1.2 or later, secure cookies, and a certificate covering the final domain.
  • Restrict Admin access, rotate development credentials, and protect Composer private keys.
  • Confirm that the final PHP, database, search, nginx, and cache versions remain within the selected Adobe compatibility row.
  • Test backups, database restoration, indexing, cron jobs, transactional email, payment integrations, and log rotation separately from the sample-data check.

Final installation checklist

  • Release selected from one Adobe System Requirements row.
  • Linux x86-64 operating system and all dependency versions matched to that row.
  • OpenSearch or Elasticsearch installed and reachable before the Commerce installer ran.
  • Composer authentication configured for the authorized account.
  • Application installed with the release-specific database, base URL, Admin, and search values.
  • Developer mode enabled before bin/magento sampledata:deploy.
  • Sample-data deployment and bin/magento setup:upgrade completed as the file-system owner.
  • Cache cleaned and storefront/Admin checks completed.
  • Sample content scheduled for removal before any live launch.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.