Installation of OpenSIPS-CP

The step-by-step instructions to install OpenSIPS-CP are as follows:

  1. Install Apache and PHP:
    apt-get install apache2 php5
    
  2. Install the php5-mysql and php5-xmlrpc packages and set the right parameters in the php.ini file:
    apt-get install php5-mysql php5-xmlrpc php-pear
    
  3. Download opensips-cp and untar the file:
    cd /var/www
    svn checkout svn://svn.code.sf.net/p/opensips-cp/code/trunk opensips-cp
    chown -R www-data:www-data /var/www/opensips-cp
    
  4. Install MDB2:
    pear install MDB2
    pear install MDB2#mysql
    pear install log
    
  5. Configure Apache for the OpenSIPS control panel. Edit the apache2.conf file:
    vi /etc/apache2/apache2.conf
    

    Include the following line in the last line:

    Alias /cp "/var/www/opensips-cp/web" nano /etc/php5/cli/php.ini ...

Get Building Telephony Systems with OpenSIPS - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.