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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.