The step-by-step instructions to install OpenSIPS-CP are as follows:
Install Apache and PHP:
apt-get install apache2 php5
Install the
php5-mysql
andphp5-xmlrpc
packages and set the right parameters in thephp.ini
file:apt-get install php5-mysql php5-xmlrpc php-pear
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
Install MDB2:
pear install MDB2 pear install MDB2#mysql pear install log
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 # Change short_open_tag = Off to short_open_tag = On
Install the
cdrs
table schema:cd /var/www/opensips-cp/config/tools/system/cdrviewer mysql -D opensips -p < opensips_cdrs.mysql mysql –D opensips -p < cdrs.mysql
Edit the
cron_job/generate...