{"id":493,"date":"2011-12-15T11:31:47","date_gmt":"2011-12-15T10:31:47","guid":{"rendered":""},"modified":"2018-11-01T00:54:09","modified_gmt":"2018-10-31T23:54:09","slug":"installing-siremis-32-kamailio-web-management-interface-debian-lenny-how","status":"publish","type":"post","link":"https:\/\/nil.uniza.sk\/en\/installing-siremis-32-kamailio-web-management-interface-debian-lenny-how\/","title":{"rendered":"Installing SIREMIS 3.2 the Kamailio web management interface, on debian (lenny) &#8211; how to"},"content":{"rendered":"<p>By day 14.12.2011 is <strong>Siremis v3.2.0<\/strong> out. Siremis is the web management interface for&nbsp;Kamailio SIP Server. This is a major release, which is compatible with <em><strong>Kamailio v3.2.x<\/strong><\/em>. As we are using latest Kamailio 3.2 server we will do install and test latest Siremis GUI (however <a href=\"https:\/\/nil.uniza.sk\/en\/sip\/kamailio\/installing-siremis-210-kamailio-web-management-interface-debian-squeeze-how\/\">version 2.1 of siremis works with Kamailio 3.2<\/a>). I follows official guide released on <a href=\"http:\/\/kb.asipto.com\/siremis:install32x:main\">asipto web page<\/a>.<\/p>\n<h2>Prerequisities<\/h2>\n<ul>\n<li class=\"level1\">\n<div class=\"li\">Installed Kamailio (OpenSER) 3.2 server.<\/div>\n<\/li>\n<li class=\"level1\">\n<div class=\"li\">Web server (e.g., Apache2) with <span><strong>mod_rewrite <\/strong><\/span>enabled<\/div>\n<\/li>\n<li class=\"level1\">\n<div class=\"li\">PHP5 with MySQL and <strong>GD support<\/strong><\/div>\n<\/li>\n<li class=\"level1\">\n<div class=\"li\">siremis database with granted user access<\/div>\n<\/li>\n<\/ul>\n<p>The apache server have to have  enabled <strong>mod_rewrite<\/strong>!!! Without mod_rewrite there is unable login, because you are redirected on a broken web link!!!<\/p>\n<h2>Installing apache web server with php5<\/h2>\n<pre>\r\napt-get install apache2 apache2-doc php5 php5-mysql php5-gd\r\n<\/pre>\n<p>Enable mod_rewrite for your apache. Enabling rewrite mode for  my Apache 2 means add symlink from \/etc\/apache2\/mods-available into  \/etc\/apache2\/mods-enabled. Alternativelly we enable rewrite mode with<\/p>\n<pre>\r\n a2enmod rewrite\r\n<\/pre>\n<p>Without this we are not able to use siremis  web after installation.<\/p>\n<h2>Download and install siremis 3.2.0<\/h2>\n<p>Go to your preferred donwload folder or your home folder and using wget download latest siremis from the <a href=\"http:\/\/siremis.asipto.com\/pub\/downloads\/siremis\/\">http:\/\/siremis.asipto.com\/pub\/downloads\/siremis\/<\/a> site.<\/p>\n<pre>\r\nwget http:\/\/siremis.asipto.com\/pub\/downloads\/siremis\/siremis-3.2.0.tgz\r\n<\/pre>\n<p>Go to the www folder<\/p>\n<pre>\r\ncd \/var\/www\r\n<\/pre>\n<p>and extract siremis files here<\/p>\n<pre>\r\ntar xvfx \/home\/palo\/siremis\/siremis-3.2.0.tgz\r\n<\/pre>\n<p>new folder siremis-3.2.0 appear here.<\/p>\n<h2><strong>Web server setup<\/strong><\/h2>\n<p><span>First time <\/span><strong>Siremis web access setup<\/strong><\/p>\n<pre>\r\ncd \/etc\/apache2\/sites-available\/\r\n<\/pre>\n<p>edit the apache <strong><em>default <\/em><\/strong>file<\/p>\n<pre>\r\nvim default \r\n<\/pre>\n<p>and add lines with alias pointing to your siremis files located in \/var\/www\/siremis-3.2.0\/siremis<\/p>\n<pre>\r\n&nbsp;Alias \/siremis &quot;\/var\/www\/siremis-3.2.0\/siremis&quot;\r\n&nbsp;&nbsp;&nbsp; &lt;Directory &quot;\/var\/www\/siremis-3.2.0\/siremis&quot;&gt;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Options Indexes FollowSymLinks MultiViews\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DirectoryIndex index.php index.html\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AllowOverride All\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Order allow,deny\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Allow from all\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Files &quot;\\.xml$&quot;&gt;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Order deny,allow\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Deny from all\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/Files&gt;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Files ~ &quot;\\.inc$&quot;&gt;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Order allow,deny\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Deny from all\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/Files&gt;\r\n&nbsp;&nbsp;&nbsp; &lt;\/Directory&gt;\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>Alternatively, move to your web root with siremis file<\/p>\n<pre>\r\ncd \/var\/www\/siremis-3.2.0\/\r\n<\/pre>\n<p>and run<\/p>\n<pre>\r\npstest:\/var\/www\/siremis-3.2.0# <strong>make apache-conf<\/strong>\r\n# siremis apache conf snippet ...\r\n\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Alias \/siremis &quot;\/var\/www\/siremis-3.2.0\/siremis&quot;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Directory &quot;\/var\/www\/siremis-3.2.0\/siremis&quot;&gt;\r\n&nbsp;&nbsp;&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ilesMatch &quot;\\.inc$&quot;&gt;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Order deny,allow\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Deny from all\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/FilesMatch&gt;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/Directory&gt;\r\n <\/pre>\n<p>Then copy and paste config to your default apacha config at<\/p>\n<pre>\r\nvim \/etc\/apache2\/sites-available\/default\r\n<\/pre>\n<p>Finally do not forget restart apache2 service<\/p>\n<pre>\r\n\/etc\/init.d\/apache2 restart\r\n<\/pre>\n<p><strong>Updating existing siremis file<\/strong><\/p>\n<p>If you have installed previous version of siremis (like 2.1), just modify existing apache config pointing to your new siremis install location. Do not forget drop previous siremis database.<\/p>\n<p>&nbsp;<\/p>\n<h2>Siremis local configuration<\/h2>\n<p>Go to the folder<\/p>\n<pre>\r\ncd \/var\/www\/siremis-3.2.0\/\r\n<\/pre>\n<p>and run<strong><em> make prepare<\/em><\/strong><\/p>\n<pre><strong>make prepare   <\/strong>\r\nupdating htaccess file...\r\nupdating app.inc file...\r\ncreating folders...\r\ndone<\/pre>\n<p>Make sure that following directories have write access for web server user:<\/p>\n<ul>\n<li>\n<div class=\"li\">siremis\/log<\/div>\n<\/li>\n<li>\n<div class=\"li\">siremis\/session<\/div>\n<\/li>\n<li>\n<div class=\"li\">siremis\/files<\/div>\n<\/li>\n<li>\n<div class=\"li\">siremis\/themes\/default\/template\/cpl<\/div>\n<\/li>\n<\/ul>\n<p>using for example<\/p>\n<pre>\r\nchown www-data:www-data -R *<\/pre>\n<p>Do not forget to restart the web server after doing the changes in its configuration file.<\/p>\n<h2><em><strong>Creating siremis database<\/strong><\/em><\/h2>\n<p>The installation of the siremis version 3.2 suppose that you have an user with granted privilege  access.<\/p>\n<pre>\r\nmysql -p\r\nmysql&gt; GRANT ALL PRIVILEGES ON siremis.* TO siremis@localhost IDENTIFIED BY 'siremisrw';\r\nQuery OK, 0 rows affected (0.09 sec)\r\n<\/pre>\n<h2>Siremis install<\/h2>\n<p>To install siremis we will use siremis Web wizard, so open preffered browser and point to<\/p>\n<pre>\r\nhttp:\/\/&lt;your_IP&gt;\/siremis\r\n<\/pre>\n<p>URL&nbsp;is redirecting to the siremis installation wizard pages and we just  need to follow steps described in <a href=\"http:\/\/kb.asipto.com\/siremis:install32x:main\">http:\/\/kb.asipto.com\/siremis:install32x:main<\/a>.  The initial web page should be loaded. Then follow installation steps. The most critical step is three, where we have to provide correct  information required for database connection (either siremis and kamailio). The siremis database is  for internal siremis use, the kamailio database is used by the Kamailio  SIP server as persistant storage, for example for SIP&nbsp;localization.<\/p>\n<p>Check in <strong>Import Default Data &gt; box<\/strong> Because there is default admin account with defautl password.<\/p>\n<p>That should be all!<\/p>\n<p>We should be able login into siremis and work with siremis.<\/p>\n<h2>&nbsp;Final notes<\/h2>\n<p>Do not forget to remove the install directory at siremis\/install<\/p>","protected":false},"excerpt":{"rendered":"<p>By day 14.12.2011 is <strong>Siremis v3.2.0<\/strong> out. Siremis is the web management interface for&nbsp;Kamailio SIP Server. This is a major release, which is compatible with <em><strong>Kamailio v3.2.x<\/strong><\/em>. As we are using latest Kamailio 3.2 server we will do install and test latest Siremis GUI (however <a href=\"https:\/\/nil-test.kis.fri.uniza.sk\/sip\/kamailio\/installing-siremis-210-kamailio-web-management-interface-debian-squeeze-how\">version 2.1 of siremis works with Kamailio 3.2<\/a>).<\/p>","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[771],"tags":[],"class_list":["post-493","post","type-post","status-publish","format-standard","hentry","category-sip-en"],"taxonomy_info":{"category":[{"value":771,"label":"SIP"}]},"featured_image_src_large":false,"author_info":{"display_name":"admin","author_link":"https:\/\/nil.uniza.sk\/en\/author\/admin\/"},"comment_info":0,"category_info":[{"term_id":771,"name":"SIP","slug":"sip-en","term_group":0,"term_taxonomy_id":769,"taxonomy":"category","description":"","parent":0,"count":23,"filter":"raw","cat_ID":771,"category_count":23,"category_description":"","cat_name":"SIP","category_nicename":"sip-en","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts\/493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/comments?post=493"}],"version-history":[{"count":0,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts\/493\/revisions"}],"wp:attachment":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/media?parent=493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/categories?post=493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/tags?post=493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}