Setting up Homer: Difference between revisions
(first edit, rough notes) |
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-ui | {{Cmd|apk add homer-api-doc homer-ui mariadb mariadb-client kamailio-mysql nginx php5-fpm | ||
rc-service mariadb setup | rc-service mariadb setup | ||
rc-update add mariadb | |||
rc-service mariadb start | rc-service mariadb start | ||
mysql_secure_installation | |||
mysql | mysql < /usr/share/homer-api/sql/homer_databases.sql | ||
mysql | mysql < /usr/share/homer-api/sql/homer_user.sql | ||
mysql | mysql homer_data < /usr/share/homer-api/sql/schema_data.sql | ||
mysql | mysql homer_configuration < /usr/share/homer-api/sql/schema_configuration.sql | ||
mysql | mysql homer_statistic < /usr/share/homer-api/sql/schema_statistic.sql | ||
cp /usr/share/doc/homer-api/examples/ | homer_rotate | ||
cp /usr/share/doc/homer-api/examples/sipcapture/sipcapture.kamailio /etc/kamailio/kamailio.cfg | |||
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 | 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 | rc-service php-fpm start | ||
rm /etc/nginx/ | 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 "HOMER_TIMEZONE" in /etc/homer/preferences.php | |||
rc-update add nginx | |||
rc-service nginx start | rc-service nginx start | ||
}} | }} |
Revision as of 08:00, 8 February 2017
This material is work-in-progress ... Do not follow instructions here until this notice is removed. |
Rough notes for setting up Homer on Alpine Linux from testing repository
apk add homer-api-doc homer-ui mariadb mariadb-client kamailio-mysql nginx php5-fpm rc-service mariadb setup rc-update add mariadb rc-service mariadb start mysql_secure_installation mysql < /usr/share/homer-api/sql/homer_databases.sql mysql < /usr/share/homer-api/sql/homer_user.sql mysql homer_data < /usr/share/homer-api/sql/schema_data.sql 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 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 "HOMER_TIMEZONE" in /etc/homer/preferences.php rc-update add nginx rc-service nginx start