• Welcome to XF2 Addons

    You can purchase a Premium membership for only $35 per year, and this gives you access to download any or ALL of the over 400 add-ons developed for Xenforo 2.x. In addition, Premium members will get technical support. Once the Premium membership has expired you can continue to use the installed addons on your forum as long as you like.

How to install Elasticsearch 8.x


Staff member
Before installing Elasticsearch on your server, make sure you have a minimum of 4GB of memory.



Log into your terminal as root and run the following commands:

rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch

yum install --enablerepo=elasticsearch elasticsearch

sudo systemctl daemon-reload

sudo systemctl enable elasticsearch.service

systemctl start elasticsearch.service

systemctl status elasticsearch.service

Edit the following file etc/elasticsearch/elasticsearch.yml and change the following directive from true to false:

xpack.security.enabled: false

then stop and start Eleasticesearch for the change to take effect.


To start Elasticsearch issue the following command:

service elasticsearch start

To verify Elasticsearch is running issue the following command:

service elasticsearch status

To stop Elasticsearch issue the following command:

service elasticsearch stop

Install XenForo Enhanced Search and create an index, then you can use the commands below:

curl -XGET 'localhost:9200'

You can verify Elasticsearch is running with this command:

curl http://localhost:9200/_cluster/health?pretty
If upgrading Elasticsearch to a newer version, you must first uninstall the current version.

1. Disable Enhanced search in XenForo.
2. Log into your terminal as root.
3. Execute the following commands.

service elasticsearch stop

yum remove elasticsearch

rm -rf /var/lib/elasticsearch/
rm -rf /etc/elasticsearch

4. Install latest version of Elasticsearch following the directions from the above post.
5. Enable Enhanced search in XenForo.
6. Rebuild the search index in XenForo.
Be sure to prevent outside access to port 9200.

Using WHM go to the follow location:

WHM -> Plugins -> ConfigServer Security & Firewall

Click the Firewall Configuration button:


Then remove 9200 from here: