October 14, 2019

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:-

    [[email protected] /]# cd /usr/local/src

    [[email protected] src]#

    After that enter (ls) for listing the file.

      //it will look like this

      [[email protected] src]# ls


[[email protected] src]#

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

[[email protected] src]# cd kannel-1.4svn/

[[email protected] kannel-1.4svn]#

Be in this Directory and execute the following command:-

[[email protected] kannel-1.4svn]# ./configure--with-mysql   //--with-mysql is      used for configuring kannel with mysql database

[[email protected] 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)’

[[email protected] 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

Vedant Singh

Linux System Administrator | Entrepreneur | Founder Techmion. I have started my career as a Linux system Administrator after that quit my job to start something new that excites me and started a Tech Company in order to provide the best technology to my clients. My Company website link: Technology at its best For Bulk, SMS-Marketing follows the link : https://www.pingsms.in/

View all posts by Vedant Singh →

Leave a Reply

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