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
-
Log in to cPanel
-
Scroll to the Advanced section
-
Click on Magento Elasticsearch
-
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:
- Log in to your Magento Admin Dashboard
- Navigate to:
Stores → Configuration
Access Catalog Search Settings
- Go to Catalog → Catalog
- 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:
- Install Magento 2.4
- Request your Elasticsearch instance via cPanel
- Add connection details in Magento admin
- 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.
