[SIP]Kamailio用Web 管理ツールsiremisをインストールする


siremis_001.png


KamailioにはWebを通して管理できるsiremisが用意されています。
index:http://kb.asipto.com/siremis:indexにインストール方法が案内されています。この記事ではこの手順に従いインストールを行います。
1.動作確認環境
以下の環境で動作を確認しています。
Ubuntu 15.04
Apache 2.4.10
php 5.6.4
2.環境の準備
aptを更新します。

sudo apt-get update

apacheをインストールします。

sudo apt-get install apache2
sudo a2enmod rewrite

PHPをインストールします。

sudo apt-get install php5 php5-mysql php5-gd php5-curl

3.siremis 4.2のインストール
siremis 4.2をダウンロードします。

wget http://siremis.asipto.com/pub/downloads/siremis/siremis-4.2.0.tgz

※PHP5.6ではインストール完了後のログイン時にエラーが出るためgithubから最新バージョンを入手する必要がありました。
siremisをWEBサイトのデフォルトディレクトリ(/var/www)に展開します。

sudo chmod 777 /var/www
cd /var/www
tar xvzf ~/siremis-4.2.0.tgz

4.Webサーバー apacheを設定します。
以下のコマンドで設定ファイルを作成し編集します。

make apache24-conf
sudo vi /etc/apache2/sites-available/default

/etc/apache2/sites-available/defaultの編集内容は以下となります。

siremis-x.y.z# make apache-conf
# siremis apache conf snippet ...
Alias /siremis "/var/www/siremis-x.y.x/siremis"
<Directory "/var/www/siremis-x.y.x/siremis">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
<FilesMatch "\.xml$">
Order deny,allow
Deny from all
</FilesMatch>
<FilesMatch "\.inc$">
Order deny,allow
Deny from all
</FilesMatch>
</Directory>

.htaccess と Siremis 設定ファイルを作成し、'make prepare'を実行します。

cd /var/www
cd siremis-4.2.0/
make prepare
make chown

5.Webサーバー を開き初期設定を行います。。
http:///siremis/を開き初期設定を行います。

0 件のコメント :

コメントを投稿