Setting Up Elasticsearch for Magento 2.4 (Firstserv Guide)

Magento 2.4 requires Elasticsearch to power its product search functionality. As Elasticsearch isn’t designed for traditional shared hosting environments, Firstserv provides a managed Elasticsearch cluster for eligible hosting plans to ensure full compatibility and performance.


Before You Begin

Before configuring Elasticsearch, make sure:

  • ✅ Magento 2.4 is already installed on your hosting account
  • ✅ You have access to cPanel and your Magento Admin panel

⚠️ The Elasticsearch service can only be provisioned if a valid Magento 2.4 installation is detected.


Step 1: Request Your Elasticsearch Instance

  1. Log in to cPanel

  2. Scroll to the Advanced section

  3. Click on Magento Elasticsearch

  4. Select the option to request an Elasticsearch instance


What Happens Next?

  • The system will verify your hosting account
  • It checks for a valid Magento 2.4 installation
  • This process may take around 1 minute

✅ If successful, you will receive your Elasticsearch connection details, including:

  • Host
  • Port
  • Username
  • Password

Step 2: Configure Elasticsearch in Magento

Once you have your connection details:

  1. Log in to your Magento Admin Dashboard
  2. Navigate to:
    Stores → Configuration

Access Catalog Search Settings

  1. Go to Catalog → Catalog
  2. Expand the Catalog Search section

Update Elasticsearch Settings

Enter the details provided in cPanel:

  • Search Engine: Elasticsearch
  • Server Hostname: (from cPanel)
  • Server Port: (from cPanel)
  • Enable HTTP Authentication: Yes
  • Username: (from cPanel)
  • Password: (from cPanel)

Test the Connection

  • Click Test Connection to ensure Magento can connect to the Elasticsearch cluster
  • If successful, click Save Configuration

✅ Your Magento store is now using Elasticsearch for search functionality.


Common Issues

1. No Magento Installation Detected

If you see this error:

  • Ensure Magento 2.4 is installed correctly
  • If already installed and the error persists, contact support

2. Elasticsearch Provisioning Failed

If instance creation fails:

  • Retry after a short wait
  • If the issue continues, contact Firstserv support for assistance

Why Elasticsearch Matters

Using Elasticsearch improves:

✅ Product search speed and accuracy
✅ Filtering and category navigation
✅ Performance for large product catalogues


Summary

To enable Elasticsearch on Firstserv:

  1. Install Magento 2.4
  2. Request your Elasticsearch instance via cPanel
  3. Add connection details in Magento admin
  4. Test and save configuration

If you need help connecting your Magento store to Elasticsearch or troubleshooting errors, the Firstserv support team is always available to assist.

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Installing LiteMage caching for Magento v2

LiteSpeed & LiteMage for Magento (Firstserv Guide) All Firstserv shared and business...

Configuring Redis caching in Magento

Object Caching and Redis for Magento (Firstserv Guide) What is Object Caching? Object...

Installing LiteMage caching for Magento v1

LiteSpeed & LiteMage for Magento 1 (Firstserv Guide) All Firstserv shared and business...

Configuring Opensearch with Magento 2.4

Setting Up OpenSearch for Magento 2.4 (Firstserv Guide) Magento 2.4 requires a search engine...