Configuring Elasticsearch with Magento 2.4

One of the most difficult features to support with Magento 2.4 is it's dependency for Elasticsearch which is a system which is used for Magento's catalog search engine. Elasticsearch was not designed for a shared hosting environment however we now have a secure Elasticsearch cluster available to our Business Hosting users which allows Krystal to fully support Magento 2.4.

Before you start, please ensure Magento 2.4 has been pre-installed as our cluster requires an existing Magento 2.4 installation before connection details will be provided.

  1. From within your cPanel, scroll down to the ADVANCED section and click on the Magento Elasticsearch option.
cPanel, section advanced, select elastic search
  1. Select highlighted option to request your Elasticsearch instance.

  1. This will trigger a please wait notice, this allows the system to request a login from the elastic search cluster and run checks to verify your account has an instance of Magento 2.4. This check can take around 1 minute.
elastic search manager, please wait notice
  1. If you have a valid Magento 2.4 instance you will receive a confirmation page that contains your new elastic login details. The details will be similar to the below but will contain a unique set of details generated for your cPanel account.
elastic search manager example login details
  1. With the login details you now need to insert them into Magento's store configuration. Make sure to login to your Magento admin area and from the dashboard select the Stores option and then Configuration.
magento stores settings page
  1. Next select the Catalog Category and then select the Catalog option under that menu.
magento stores settings page 2
  1. Expand the Catalog Search section and half way down are the Elasticsearch options which will need to be updated. Make sure to enable HTTP Auth (set from no to yes) and then enter your details as provided in the cPanel plugin. Below is an example of the standard settings along with what your details may look like.
magento elastic settings before and after comparison
  1. Once entered you can test the connection to verify the cluster can be accessed and then save your changes.

Congratulations! You've now configured your Magento Store to use Elasticsearch!

Possible Errors

There are some possible errors you may experience during the setup of your Elasticsearch login details which are as follows:

  1. No valid Magento 2.4 installation detected. If you receive this error, make sure you install Magento 2.4 using Installatron before requesting details again however if you do have a valid installation of Magento 2.4 please contact support.
Elastic search manager failed installation


How did we do?


Powered by HelpDocs (opens in a new tab)
© Krystal Hosting Ltd 2002–