Setting up Homer: Difference between revisions

From Alpine Linux
No edit summary
No edit summary
Line 3: Line 3:
Rough notes for setting up [http://sipcapture.org Homer] on Alpine Linux from testing repository
Rough notes for setting up [http://sipcapture.org Homer] on Alpine Linux from testing repository


{{Cmd|apk add homer-api-doc homer-ui mariadb mariadb-client kamailio-mysql nginx php5-fpm
<pre>apk add homer-api-doc homer-ui mariadb kamailio-mysql nginx php5-fpm


rc-service mariadb setup
rc-service mariadb setup
Line 10: Line 10:
mysql_secure_installation
mysql_secure_installation


mysql < /usr/share/homer-api/sql/homer_databases.sql
homer_db_init
mysql < /usr/share/homer-api/sql/homer_user.sql
rc-update add crond
mysql homer_data < /usr/share/homer-api/sql/schema_data.sql
rc-service crond start
mysql homer_configuration < /usr/share/homer-api/sql/schema_configuration.sql
mysql homer_statistic < /usr/share/homer-api/sql/schema_statistic.sql
homer_rotate


cp /usr/share/doc/homer-api/examples/sipcapture/sipcapture.kamailio /etc/kamailio/kamailio.cfg  
cp /usr/share/doc/homer-api/examples/sipcapture/sipcapture.kamailio /etc/kamailio/kamailio.cfg
echo rc_need=mariadb > /etc/conf.d/kamailio
rc-update add kamailio
rc-update add kamailio
rc-service kamailio start
rc-service kamailio start
Line 30: Line 28:
edit "server_name" in /etc/nginx/conf.d/homer5.conf
edit "server_name" in /etc/nginx/conf.d/homer5.conf
edit "fastcgi_pass" in /etc/nginx/conf.d/homer5.conf to "127.0.0.1:9001"
edit "fastcgi_pass" in /etc/nginx/conf.d/homer5.conf to "127.0.0.1:9001"
edit "SINGLE_NODE" in /etc/homer/configuration.php to "0" if using DB nodes
edit "HOMER_TIMEZONE" in /etc/homer/preferences.php
edit "HOMER_TIMEZONE" in /etc/homer/preferences.php
rc-update add nginx
rc-update add nginx
rc-service nginx start
rc-service nginx start
}}
 
configure DB nodes in web UI, default password is "homer_password"
</pre>
 
== Database Nodes ==
 
<pre>apk add homer-api-doc homer-db mariadb kamailio-mysql
 
rc-service mariadb setup
rc-update add mariadb
rc-service mariadb start
mysql_secure_installation
 
homer_db_init -r
rc-update add crond
rc-service crond start
 
cp /usr/share/doc/homer-api/examples/sipcapture/sipcapture.kamailio /etc/kamailio/kamailio.cfg
edit "capture_node" in /etc/kamailio/kamailio.cfg
echo rc_need=mariadb > /etc/conf.d/kamailio
rc-update add kamailio
rc-service kamailio start
</pre>
 
== Capture Nodes ==
 
<pre>apk add captagent
edit "capture-host" in /etc/captagent/transport_hep.xml
edit "capture-port" in /etc/captagent/transport_hep.xml to "9060"
rc-update add captagent
rc-service captagent start
</pre>

Revision as of 14:57, 20 February 2017

This material is work-in-progress ...

Do not follow instructions here until this notice is removed.
(Last edited by Kunkku on 20 Feb 2017.)

Rough notes for setting up Homer on Alpine Linux from testing repository

apk add homer-api-doc homer-ui mariadb kamailio-mysql nginx php5-fpm

rc-service mariadb setup
rc-update add mariadb
rc-service mariadb start
mysql_secure_installation

homer_db_init
rc-update add crond
rc-service crond start

cp /usr/share/doc/homer-api/examples/sipcapture/sipcapture.kamailio /etc/kamailio/kamailio.cfg
echo rc_need=mariadb > /etc/conf.d/kamailio
rc-update add kamailio
rc-service kamailio start

cp /usr/share/doc/homer-api/examples/web/homer5.php-fpm /etc/php5/fpm.d/homer5.conf
rc-update add php-fpm
rc-service php-fpm start

rm /etc/nginx/conf.d/default.conf
cp /usr/share/doc/homer-api/examples/web/homer5.nginx /etc/nginx/conf.d/homer5.conf
edit "root" in /etc/nginx/conf.d/homer5.conf to "/usr/share/webapps/homer"
edit "server_name" in /etc/nginx/conf.d/homer5.conf
edit "fastcgi_pass" in /etc/nginx/conf.d/homer5.conf to "127.0.0.1:9001"
edit "SINGLE_NODE" in /etc/homer/configuration.php to "0" if using DB nodes
edit "HOMER_TIMEZONE" in /etc/homer/preferences.php
rc-update add nginx
rc-service nginx start

configure DB nodes in web UI, default password is "homer_password"

Database Nodes

apk add homer-api-doc homer-db mariadb kamailio-mysql

rc-service mariadb setup
rc-update add mariadb
rc-service mariadb start
mysql_secure_installation

homer_db_init -r
rc-update add crond
rc-service crond start

cp /usr/share/doc/homer-api/examples/sipcapture/sipcapture.kamailio /etc/kamailio/kamailio.cfg
edit "capture_node" in /etc/kamailio/kamailio.cfg
echo rc_need=mariadb > /etc/conf.d/kamailio
rc-update add kamailio
rc-service kamailio start

Capture Nodes

apk add captagent
edit "capture-host" in /etc/captagent/transport_hep.xml
edit "capture-port" in /etc/captagent/transport_hep.xml to "9060"
rc-update add captagent
rc-service captagent start