July 15, 2024

How to install kannel in centos 7

Before Installing Kannel you will need to configure the following packages!

First Install Development tools using the following commands:-

          All this command should be executed as a super user.

# yum update
# yum groupinstall “Development tools” -y 

     On a Red Hat Linux (RHEL) system, you need to install the following

    packages, in order:


 Command to install all these packages:-

# sudo yum install openjade jadetex docbook-style-dsssl \               texlive-dvips transfig ImageMagick 

You Will also need libxml packages on your system. Inorder to install these package just follow the command as follows.

# yum install libxml2-devel

 Now that all the necessary packages have been installed on our system. So lets proceed on installing the gateway.

Essay on cyber crime and solution

Introduction to Cybercrime:
Cybercriminals use the internet and computer technology to hack user’s personal computers, smartphone data, personal details from social media, business secrets, national secrets etc.

 Download the kannel-sms-gateway from the below link:-


After downloading the kannel sms gateway from the link above. Extract the gateway in the following directory /usr/local/src

After extracting the gateway open your terminal as super user and execute the following commands:-

# cd /usr/local/src   //this command will let you enter on src directory                                      where is the gateway.

    It will look something like this:-

    [root@localhost /]# cd /usr/local/src

    [root@localhost src]#

    After that enter (ls) for listing the file.

      //it will look like this

      [root@localhost src]# ls


[root@localhost src]#

After that go to kannel-1.4svn directory by typing the command:-

[root@localhost src]# cd kannel-1.4svn/

[root@localhost kannel-1.4svn]#

Be in this Directory and execute the following command:-

[root@localhost kannel-1.4svn]# ./configure--with-mysql   //--with-mysql is      used for configuring kannel with mysql database

[root@localhost kannel-1.4svn]# make

         [After make command if you get Latex error like:

           File ‘ulem.sty’ not found ]

          To fix this error type the following command:-

               yum install ‘tex(ulem.sty)’

               yum install ‘tex(mlnames.sty)’

[root@localhost kannel-1.4svn]# make install

//Congrats your kannel has been installed in the following directory (/usr/local/sbin)

           Now make a directory on /etc


             #cd /etc

             #mkdir kannel

          Then Go to kannel directory

               # cd /etc/kannel

              Then create a kannel.conf file 

Download the kannel.conf file from the link below:-


In the kannel.conf file edit the smscid,host,port,smsc-username and smsc-password as provided by your smpp.

To start the kannel run the following command as follows:-

# /usr/local/sbin/bearerbox -v 0 /etc/kannel/kannel.conf
# /usr/local/sbin/smsbox -v 0 /etc/kannel/kannel.conf

To check if the kannel is running or not type the following command on your browser:-

To check if the message is going through the kannel, hit the following URL in your browser.


smsc=your name defined in kannel.conf

                       Congrats you setup your kannel-sms-gateway

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

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 →

One thought on “How to install kannel in centos 7

Leave a Reply

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

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


Ad Blocker Detected!

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.