April 26, 2024
How-to-install-kannel-sms-gateway-on-Ubuntu

How to install Kannel SMS gateway on ubuntu

Kannel is an open-source SMS-gateway used widely across the globe both for serving trillions of short messages (SMS), WAP Push service indications and mobile internet connectivity.

Before Installing Kannel you will need to configure the following packages on your Ubuntu.

  1. Development Tools.
  2. libxml2.
  3. Bison 1.25.

In order to convert the documentation from DocBook (a mark-up language) to HTML and PostScript, you need some tools. Please find the command below:

sudo apt-get install openjade jadetex transfig imagemagick \
             docbook-dsssl docbook-utils

For Redis support DLR, you need to install hiredis on your Ubuntu.

In order to install Redis, first, download the Redis package from the URL https://redis.io/

Redis Installation Process:-

Extract the Redis package with the command:-

tar xzf redis-5.0.5.tar.gz

then type

make 
make install

After that go to utils directory

cd utils/
./install_server.sh

then go to deps directory to install hiredis

cd hiredis/
make
make install

if you find symbolic link error then only use this command:-

ln -s /usr/local/lib/libhiredis.so.0.13 /lib64/libhiredis.so.13

Now, After configuring all these packages let us follow the steps for installing kannel on Ubuntu

Step 1:- Download Kannel gateway from the URL:- https://redmine.kannel.org/attachments/320/gateway-1.4.5.zip

Step 2:- Extract the gateway using the following gateway.

unzip gateway-1.4.5

Step 3:- In order to configure kannel with Redis and Mysql follow the following command.

./configure --with-mysql --with-redis --enable-assertions --with-defaults                                                                                        =speed --disable-localtime --enable-start-stop-daemon --enable-pam

If you want to understand the command then read the Kannel user guide.

If you get the following error

doc/allig

ata/alligata`.log for errors && false)

kpathsea: Running mktexfmt jadetex.fmt

fmtutil: no info for format `jadetex'.

Check doc/alligata/alligata.log for errors

make: *** [doc/alligata/alligata.ps] Error 1

Then use the following command

./configure --with-mysql --with-redis --enable-assertions --with-defaults                                                                                        =speed --disable-localtime --enable-start-stop-daemon --enable-pam --disable-doc

Step 4:- Make Install

make
make install

Now you have successfully Installed Kannel on your Ubuntu.

The installed Kannel binary will be found in /usr/local/sbin directory

You can download the kannel configuration from the link below:-

https://drive.google.com/file/d/1zlepZ6aLnle8SWrg4fVA1nzXB3JE30up/view

In order to install kannel in centos 7 follow this article

If you need any help in SMS gateway configuration feel free to contact me at kumarvedant777@gmail.com or inbox me on facebook https://www.facebook.com/VedantSingh4

If you like our article do support this page!

Vedant Kumar

Currently I'm working as an Implementation Engineer, Started my career as an System Administrator - Linux. Additionally loves to explore new technologies and research about new open-source software that ease the development cycle.

View all posts by Vedant Kumar →

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.

close

Ad Blocker Detected!

VEDANT EXPLAINS
We've noticed that you are using an ad blocker. Advertising helps fund our server cost and keep it truly independent. It helps to build our content creator team. So please disable your ad blocker, and help us to keep providing you with free- great content - for free. Thank you for your support.

Refresh