How to Install Asterisk on Ubuntu 18.04 LTS

Install Asterisk on Ubuntu 18.04 LTS

In this tutorial we will show you how to install Asterisk on Ubuntu 18.04 LTS. For those of you who didn’t know,Asterisk is the most popular and widely adopted open source PBX platform that powers IP PBX systems, conference servers and VoIP gateways. It is used by individuals, small businesses, large enterprises and governments worldwide.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Asterisk on an Ubuntu 18.04 Bionic Beaver server.

Install Asterisk on Ubuntu 18.04 LTS Bionic Beaver

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

Step 2. Installing Dependencies.

Install all required packages on your Asterisk with the following commands:

Step 3. Installing Asterisk on Ubuntu 18.04 LTS.

First, download the latest version of Asterisk:

Once the asterisk archive is extracted, change to the asterisk-15.5.0 directory with the following command:

The script will install all necessary packages and upon successful completion, it will print the following message:

Next step is to run the ./configure script which will check your system for missing libraries and binaries and prepare the Asterisk source code for the build process:

Upon successful completion, you will see the following output:

Now that the configuration is completed start the compilation process using the make command:

Once the build process is completed, you will be presented with the following message:

As the message above says, the next step is to install Asterisk and its modules by typing:

Once the installation is finished the script will display the following message:

Run the make samples command to install the Asterisk sample configuration files:

You will see the following output indicating that the logrotation configuration has been successfully created:

The last step is to enable Asterisk service to start on boot with:

Congratulation’s! You have successfully installed Asterisk. Thanks for using this tutorial for installing Asterisk on your Ubuntu 18.04 LTS Bionic Beaver. For additional help or useful information, we recommend you to check the official Asterisk web site.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!