• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Friday, May 9, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System Linux

How to Install OpenSIPS Control Panel on Ubuntu 16.04

How VPS by How VPS
January 1, 2020
in Linux
0
0
SHARES
151
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Prerequisites
  2. Step 1: Update the System
  3. Step 2: Install LAMP Server
  4. Step 3: Download Opensips-CP
  5. Step 4: Configure Apache
  6. Step 5: Configure Database
  7. Step 6: Access Opensips-CP Web Interface
  8. Want to contribute?


OpenSIPS Control Panel is a PHP based web application for provisioning an OpenSIPS SIP server. It can be used to provision, operate, and monitor multiple instances of OpenSIPS servers across the globe. It is specially designed for the VoIP providers to develop their own interface with the end users.

Here, I will explain how to install OpenSIPS Control Panel on Ubuntu 16.04 server.

Prerequisites

  • A newly deployed Vultr Ubuntu 16.04 server instance.
  • A non-root user with sudo privileges setup on your server.

Step 1: Update the System

Before installing any packages, you will need to update your system to the latest stable version by running the following commands:

sudo apt-get update -y
sudo apt-get upgrade -y
sudo reboot

Step 2: Install LAMP Server

Install Apache, MySQL, PHP and other required dependencies on your server. You can install all of them with the following command:

sudo apt-get install apache2 mysql-server php7.0 php7.0-cli php7.0-mysql php7.0-xmlrpc php-pear php-log php-mdb2-driver-mysql -y

Once the installation is complete, start Apache and MySQL services and enable them to start at boot:

sudo systemctl start apache2
sudo systemctl start mysql
sudo systemctl enable apache2
sudo systemctl enable mysql

Step 3: Download Opensips-CP

Download the latest stable version of the Opensips-CP.

wget https://github.com/OpenSIPS/opensips-cp/archive/6.2.zip

Once the download has completed, extract the downloaded file with the following command:

unzip 6.2.zip

Next, move the extracted directory to the Apache web root directory:

sudo mv opensips-cp-6.2 /var/www/html/opensips

Next, give proper permissions to the opensips directory:

sudo chown -R www-data:www-data /var/www/html/opensips

Step 4: Configure Apache

You will need to configure Apache for Opensips-CP. You can do this by adding following lines at the end of the apache2.conf file:

sudo nano /etc/apache2/apache2.conf

Add the following lines at the end of the file:

<Directory /var/www/html/opensips/web>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
</Directory>
<Directory /var/www/html/opensips>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order deny,allow
    deny from all
</Directory>
Alias /cp /var/www/html/opensips/web

Save and close the file when you are finished.

Next, edit the php.ini file:

sudo nano /etc/php/7.0/cli/php.ini

Change the following line:

short_open_tag = On;

Save the file and restart the Apache service:

sudo systemctl restart apache2

Step 5: Configure Database

Create a database for Opensips-CP by logging into a MySQL shell.

mysql -u root -p

Enter your password, then create a new database:

mysql> create database opensips character set utf8;
mysql> exit;

Install the ocp_admin_privileges table schema from the opensips folder:

sudo mysql -u root -p opensips < /var/www/html/opensips/config/tools/admin/add_admin/ocp_admin_privileges.mysql

Next, insert a “first login user” into the table with the following command:

sudo echo "INSERT INTO ocp_admin_privileges (username,password,ha1,available_tools,permissions) values ('admin','admin',md5('admin:admin'),'all','all');" | sudo mysql -u root -p opensips

You will need to edit the db.inc.php file and update your database credentials:

sudo nano /var/www/html/opensips/config/db.inc.php

Change the lines as shown below:

$config->db_driver = "mysql";
$config->db_host = "localhost";
$config->db_port = "";
$config->db_user = "root";
$config->db_pass = "your-root-password";
$config->db_name = "opensips";

Save the file when you are finished.

By default, Opensips-CP will save the password in plain text. If you don’t want the password in plain text format, then edit local.inc.php file and update the value of $config->passwd_mode from 0 to 1.

sudo nano /var/www/html/opensips/config/tools/users/user_management/local.inc.php

Change the following lines:

 $config->passwd_mode=1;

Save and close the file, then restart Apache and MySQL service:

sudo systemctl restart apache2
sudo systemctl restart mysql

Step 6: Access Opensips-CP Web Interface

It’s time to access the Opensips-CP web interface.

Open your web browser and type the URL http://your-server-ip/opensips. Login by using the default user name as admin and password as admin. Upon successful login, you will be redirected to the Opensips Control Panel.

Congratulations! You have successfully installed Opensips Control Panel on Ubuntu 16.04 server.

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
Previous Post

How to Install and Configure Elastic Stack (Elasticsearch, Logstash and Kibana) on Ubuntu 17.04

Next Post

How to Install osTicket on Ubuntu 16.04

Next Post

How to Install osTicket on Ubuntu 16.04

Leave a Reply Cancel reply

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

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
0

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Thabet