Magento 2 hosting
Powerful open-source e-commerce platform. Deploy to a dedicated VPS in seconds — database auto-created, SSL installed, firewall locked down from the first boot.
Latest
Versions
MySQL
Database
Magento 2
Category
What is Magento 2?
Magento 2 is an open-source e-commerce platform built on PHP and the Laminas framework. It powers online stores of every size, from growing online shops to complex multi-store and B2B businesses, with powerful catalog management, checkout, promotions and extensibility.
Unlike shared hosting, Magento 2 gives you the flexibility of a dedicated VPS environment. You can run multiple stores, manage large product catalogs, integrate third-party services and customize the storefront without being restricted by a shared hosting stack.
Magento is also more demanding than a typical PHP application. It needs a properly configured PHP runtime, database, search engine, caching layer, cron jobs and sufficient CPU and memory to perform reliably.
SharkCluster prepares the server around those requirements. Your Magento application can run on a production nginx + PHP-FPM stack with an auto-created MySQL database, OPcache, Elasticsearch, Redis and Varnish available for a production-ready deployment.
Quick facts
- Version
- Latest
- Database
- MySQL
- Category
- Magento 2
- SSL included
- Firewall locked
- DB auto-created
- Live in minutes
Why Magento 2 on SharkCluster?
Correct PHP runtime
Magento runs on a supported PHP runtime with PHP-FPM and OPcache configured for application workloads.
Database created and wired
The panel creates your MySQL database, user and password and connects the application to the generated database configuration.
Search-ready infrastructure
Elasticsearch can be enabled for Magento catalog search and indexing without manually preparing a separate search server.
Caching-ready stack
Redis and Varnish can be enabled to reduce application workload and improve response times for production storefronts.
Your own VPS
Magento runs on your own server resources instead of competing with unrelated applications on shared hosting.
Flexible deployment
Deploy using Git, ZIP or the file manager, then run Magento's upgrade, compilation, indexing and cache commands as required.
Production security
The server can use a closed-by-default firewall, HTTPS with Let's Encrypt and a dedicated application system user.
Developer-friendly access
Developers can use SSH and standard Magento CLI tools while the panel handles common server-management tasks.
What you get with Magento 2
One-click Magento 2 deployment with optional sample data
PHP-FPM with OPcache for Magento workloads
Auto-created MySQL database and application credentials
Elasticsearch-ready environment for catalog search and indexing
Redis support for cache and session storage
Varnish-ready production caching configuration
Git, ZIP and file-manager deployment options
Magento CLI access through SSH
Cron jobs for indexers, imports and scheduled Magento tasks
Free Let's Encrypt SSL certificate
UFW firewall with production-friendly defaults
Application and database backup support where enabled
Staging-friendly deployment workflow
Dedicated system user for application files
Server specs for
Magento 2
Not sure which plan to pick? The panel warns you before you deploy so you can choose the right size the first time.
- Minimum specs shown before deploy
- Panel blocks deploy if server is undersized
- Upgrade path available inside the panel
- Runtime
- Supported PHP version + PHP-FPM with OPcache
- Database
- MySQL version supported by your Magento release
- Search & Cache
- Elasticsearch, Redis and Varnish where required
- Build tools
- Composer 2 and Node.js when frontend asset compilation requires it
- Development server
- 2 vCPU · 4 GB RAM · 40 GB+ SSD for a modest development environment
- Small production store
- 4 vCPU · 8 GB RAM · SSD storage recommended
- Medium / large catalog
- 4–8+ vCPU · 16+ GB RAM depending on traffic, catalog size and workload
- Web server
- nginx with PHP-FPM
How Magento 2 fits together
Web traffic
Your domain points to the VPS and nginx handles incoming HTTP and HTTPS traffic.
Varnish
For production deployments, Varnish can cache eligible storefront responses and reduce repeated work for Magento.
Magento + PHP-FPM
nginx passes PHP requests to PHP-FPM, where Magento executes application logic, checkout operations and dynamic requests.
Redis
Redis can be used for Magento cache and session storage, reducing the amount of work handled directly by the application and database.
MySQL
Magento stores products, customers, orders, configuration and other application data in MySQL.
Elasticsearch
Magento uses the search service for catalog search and indexing workloads where required by the Magento release.
After your Magento 2 deploy
- 1
Choose your server
Select a VPS with enough CPU, RAM and SSD storage for your Magento catalog, traffic and background jobs.
- 2
Add your domain
Point your domain or subdomain to the server and add it through the Domains section. Once DNS is ready, enable HTTPS with Let's Encrypt.
- 3
Install Magento 2
Use the Applications section to deploy Magento and configure the generated database credentials and administrator account.
- 4
Configure search and cache
Enable Elasticsearch for catalog search and indexing, then configure Redis and Varnish when your production workload requires them.
- 5
Configure the store
Set your store URL, currency, timezone, email sender, payment methods, shipping settings, tax configuration and other Magento options.
- 6
Enable production mode
Use Magento production mode for a live storefront so developer features and verbose error output are disabled.
- 7
Verify cron and indexers
Make sure Magento cron jobs are running and indexers are configured correctly so catalog, price, inventory and scheduled tasks stay up to date.
- 8
Test before going live
Test login, product pages, search, cart, checkout, payment, emails, caching and mobile storefront behavior before sending production traffic.
Keeping Magento 2 fast
Use enough RAM
Magento, PHP-FPM, MySQL, Elasticsearch and Redis all consume memory. Avoid choosing a server size based only on Magento's application files.
Keep production mode enabled
Production mode avoids developer-oriented behavior and is the appropriate mode for a live storefront.
Use Redis for cache and sessions
Redis can reduce database workload and provide fast cache and session storage for production Magento installations.
Use Varnish for storefront caching
Varnish can cache eligible pages and reduce repeated PHP processing for visitors browsing your storefront.
Monitor Elasticsearch
Search and indexing performance depends on a healthy Elasticsearch service with enough memory and disk resources.
Keep cron running
Magento relies on scheduled jobs for indexing, imports, emails and other background operations. A broken cron configuration can cause stale storefront data.
Monitor disk usage
Logs, generated assets, media, backups and database files can grow over time. Keep enough free disk space for normal Magento operations.
Before you go live
Domain DNS points to the VPS
HTTPS certificate is active
Magento is running in production mode
Admin URL is customized
Two-factor authentication is enabled for administrators
Elasticsearch is running and Magento search is working
Redis is configured for cache and session storage where required
Varnish is configured if used for production caching
Magento cron is running continuously
Indexers are configured for scheduled updates
SMTP / transactional email delivery is configured
Payment and shipping methods have been tested
Database and application backups are configured where available
Firewall rules have been reviewed
Server CPU, RAM and disk usage are being monitored
A complete checkout flow has been tested before launch
Working with Magento 2
Install Magento
The one-click deployment handles this automatically with generated credentials. Run it manually only when installing Magento on an empty application.
bin/magento setup:install \
--db-host=localhost \
--db-name=magento_db \
--db-user=magento_user \
--db-password='***' \
--admin-user=admin \
--admin-password='***'Check Magento version
Display the Magento version currently installed on the server.
bin/magento --versionEnter production mode
Switch Magento to production mode for a live storefront.
bin/magento deploy:mode:set productionCheck deployment mode
Verify whether Magento is running in developer, default or production mode.
bin/magento deploy:mode:showRebuild indexes
Rebuild Magento indexes after imports, catalog changes or other operations that require reindexing.
bin/magento indexer:reindexCheck indexer status
Check whether Magento indexes are valid, invalid or currently being updated.
bin/magento indexer:statusInstall cron
Register Magento's cron schedule when it has not already been configured by the deployment process.
bin/magento cron:installFlush Magento cache
Clear Magento cache storage after configuration or application changes.
bin/magento cache:flushDeploy static content
Generate static frontend assets after deployment or frontend configuration changes.
bin/magento setup:static-content:deploy -fUpgrade Magento
Typical upgrade flow for Magento and installed extensions. Always test upgrades in staging and create a backup before applying changes to production.
composer update && \
php bin/magento setup:upgrade && \
php bin/magento setup:di:compileCommon Magento 2 issues & fixes
503 Service Unavailable
- Cause
- PHP-FPM may be unavailable, overloaded or configured with insufficient workers.
- Solution
- Check PHP-FPM status and logs, then review PHP-FPM worker limits and available server memory.
Catalog search is not working
- Cause
- The Magento search service may be unavailable or incorrectly configured.
- Solution
- Verify the Elasticsearch service, Magento search configuration and index status.
Products are not appearing correctly
- Cause
- Magento indexers may be stale or scheduled jobs may not be running.
- Solution
- Check cron and indexer status, then run bin/magento indexer:reindex when required.
CSS or JavaScript is missing
- Cause
- Static assets may not have been deployed after a configuration or code change.
- Solution
- Deploy static content, clear Magento cache and verify the generated/static directory permissions.
Changes are not visible
- Cause
- Magento, Redis or Varnish may still contain cached content.
- Solution
- Flush the appropriate Magento cache and clear or invalidate the relevant Varnish cache.
Magento cron tasks are delayed
- Cause
- The server cron service or Magento cron configuration may not be running correctly.
- Solution
- Check the system cron service, Magento cron configuration and cron logs.
Server memory usage is too high
- Cause
- Magento processes, PHP-FPM, MySQL, Elasticsearch and background jobs may be competing for available RAM.
- Solution
- Review memory usage, reduce unnecessary services or increase the VPS resources based on workload.
Hardened before your first request
Every deploy is locked down from boot — closed firewall, valid SSL, and restricted access by default.
Production mode keeps developer stack traces and detailed error output away from the public storefront.
UFW can be configured with a closed-by-default policy and only the ports required by your deployment.
Let's Encrypt SSL provides HTTPS for the storefront and can be renewed automatically.
Use a custom Magento admin URL and enable two-factor authentication for administrator accounts.
Keep app/etc/env.php and other environment-specific configuration out of public repositories.
Use a dedicated application system user instead of running Magento as root.
Use SSH keys for deployment access and disable password authentication where appropriate.
Apply Magento security updates and extension updates regularly.
Review installed third-party extensions and remove unused modules to reduce the attack surface.
Keep Magento, PHP, MySQL, Elasticsearch and other server components on supported versions.
A safe Magento 2 upgrade path
- 1
Create a backup
Take a current backup or snapshot before changing Magento core files, extensions or server configuration.
- 2
Test on staging
Clone or deploy the application to a staging environment and test the upgrade before touching production.
- 3
Update dependencies
Apply the required Magento and extension dependency updates through Composer.
- 4
Run Magento upgrade commands
Run setup:upgrade, dependency compilation and static asset deployment as required by the Magento release.
- 5
Reindex and clear cache
Rebuild indexes and clear application caches after the upgrade.
- 6
Test the storefront
Verify login, catalog, search, cart, checkout, payments, customer emails and administrator functionality.
- 7
Deploy to production
Only promote the tested version to production after the staging environment passes the required checks.
Take a snapshot before every upgrade so a bad release can be rolled back in minutes.
We manage the server, you own the store
SharkCluster manages
- VPS infrastructure
- nginx
- PHP-FPM
- MySQL
- Redis
- Elasticsearch
- Varnish
- SSL
- Firewall
- Server-level cron
- Backups where enabled
- Application deployment infrastructure
You manage
- Magento themes
- Magento extensions
- Custom Magento code
- Products and catalog data
- Store configuration
- Payment integrations
- Shipping configuration
- Third-party integrations
- Magento upgrades and application changes
Everything below the application line — from nginx to backups — is infrastructure. Your code, content and store configuration are always yours, and you keep full SSH and root access.
Frequently Asked Questions
The questions we hear most from people deploying Magento 2 on SharkCluster.
Contact supportMagento 2.4 releases require a supported search engine for catalog search and indexing. The exact supported search engine and version depend on the Magento release you deploy. SharkCluster can prepare the search service as part of the server environment.
Yes. You can deploy multiple applications on the same VPS, provided the server has enough CPU, RAM and storage. Magento itself can also support multiple websites, stores and store views from a single installation.
A 2 vCPU / 4 GB RAM VPS can be suitable for development or a modest workload. Production stores should generally start with more resources, such as 4 vCPU / 8 GB RAM, and larger catalogs, heavy imports or high traffic may require 8+ vCPU and 16+ GB RAM. Actual requirements depend on traffic, catalog size, extensions and background jobs.
Redis is recommended for production workloads because it can provide fast cache and session storage. The appropriate configuration depends on your Magento version and server resources.
Varnish can significantly reduce repeated PHP processing for eligible storefront pages and is commonly used in production Magento environments. It should be configured carefully alongside Magento's cache configuration.
Create a backup first, test the upgrade on staging, update Magento and extension dependencies, run setup:upgrade and required compilation or static-content commands, reindex, clear caches and test the complete storefront before deploying to production.
Magento relies on indexers to prepare catalog, pricing, inventory and other data. If indexers are stale or cron is not running, changes may not appear immediately. Check indexer status and verify that Magento cron is working.
When backups are enabled for your server or application, Magento's database can be included alongside application files. Check your SharkCluster backup configuration to confirm the schedule, retention and restore options available for your deployment.
Yes. You can deploy Magento application code using Git and run the required Composer, Magento upgrade, compilation, static-content and indexing commands as part of your deployment workflow.
Yes. Magento's modular architecture supports custom themes, extensions and integrations. You remain responsible for the compatibility and maintenance of custom application code and third-party modules.
SharkCluster manages the server and deployment environment, including nginx, PHP-FPM, database services, caching, search, SSL, firewall and related infrastructure. Magento application code, themes, extensions and store configuration remain under your control.
From deploy to live in minutes
Stack configured
Runtime, process manager and config files set up for you.
MySQL wired
Database created with a user and credentials in your config.
SSL + firewall
Free Let's Encrypt certificate and closed-by-default UFW rules.
Deploy anytime
Push with Git, or use the built-in file manager and ZIP upload.
Other applications you can deploy
How do you start
with SharkCluster?
To start with SharkCluster, create an account and your first server on DigitalOcean, Contabo or OVHcloud — no credit card or lock-in contract is needed. Every account includes free self-hosted business apps, free local backups, unlimited migrations and a dedicated DevOps manager.