Sphinx is an open source search engine specially designed to provide search functionality to client applications. Sphinx can also be used for performing searches over large volumes of data easily. Sphinx can be easily integrated with SQL and XML sources. It is very good tool for querying and advanced indexes.
In this tutorial, we will show you how to install and configure sphinx on Ubuntu 16.04.
A server runing Ubuntu-16.04.
A non-root user with sudo privileges setup on your server.
Before starting, update your system to the latest version with the following command:
sudo apt-get update -ysudo apt-get upgrade -y
Once your system is up-to-date, you can easily install it with the following command:
sudo apt-get install sphinxsearch
Reading state information... Done
The following packages were automatically installed and are no longer required:
libc-ares2 libcitadel4 libev4 libical1a libsieve2-1
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
The following NEW packages will be installed:
Installing MariaDB Database
Next, you will need to install MariaDB for database functionality.
You can install it with the following command:
sudo apt-get install mariadb-server
The MariaDB default installation is not secure, so you will need to secure it first. You can secure it with the mysql_secure_installation script:
Answer all the questions as shown below:
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Creating the Test Database
Next, you will need to create a test database using the sample data in the SQL file provided with the package.
First, login to the database server with the following command:
mysql -u root -p
Enter the password for MariaDB root user, you should see the following output:
Welcome to the MariaDB monitor. Commands end with ; or g.
Your MariaDB connection id is 39
Server version: 10.0.27-MariaDB-0ubuntu0.16.04.1 Ubuntu 16.04
Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
Next, create a test database and import the example SQL file.
You can create an email email filters through your cPanel control panel which is where you manage your hosting account. Email filters can be set up to target specific word, subject, from or to. Emails that are filtered out can be sent to a different email, deleted, delivered to a...
If you find your cPanel disk space filling up, or an email address has hit its disk space quota, cPanel has a helpful built in Email Disk Usage tool. This will provide you with a simple to understand breakdown of how much disk space each folder for a particular email...
Although WHM will normally automatically keep itself up to date, you may want to manually check for server updates / push through an update that is pending, or it may be that you have automatic updates switched off on your cPanel server. In this guide we will show you how...