Asterisk Management Portal on SuSE 10.0
From Docupedia
This howto document describes the steps required to get Asterisk Management Portal ("AMP") installed and running under SuSE 10.0.
This howto procedure has been tested and is known to work in at least two production environments.
Note that this is only tested with the Asterisk 1.0 that ships with SuSE 10.0. Testing is underway to evaluate compatibility with Asterisk 1.2. Packages for Asterisk 1.2 are available via the Alkaloid Networks SuSE 10.0 YaST Source
Quick and dirty:
- Install the following RPMs in YaST:
- All asterisk RPMs listed (except the debuginfo ones)
- mysql and mysql-client
- perl-Net-Telnet
- glibc-devel
- apache2 with the php4 module and the following php4 packages: php4-mysql php4-sessions php4-pear php4-gettext php4-gd
- After php4-pear is installed, you'll need DB. Unfortunately SuSE 10.0 seems to ship with an old version of pear, so you'll need to do the following:
- pear upgrade Archive_Tar
- pear upgrade Console_Getopt
- pear upgrade XML_RPC
- pear upgrade -n pear (it tries to complain about a dependency problem here)
- pear install db
- vipw and change the user asterisk's shell from /bin/false to /bin/bash
- vigr and add the group asterisk with the user asterisk as an additional member (asterisk:!:105:asterisk). The user asterisk's primary group will remain dialout.
- Visit http://asterisk.gnuinter.net and get the Asterisk perl module package. Install it.
- Go through the AMP readme and follow the steps excluding the ones where you download/compile/install Asterisk. You *will* need to use perl with CPAN to install two modules plus download the mime thing. You will also need to configure PHP4 and Apache as listed in the doc. Also preload and configure the database.
- Things I do now even though I don't like them (ie: FIX THIS LATER)
- Edit /etc/apache2/uid.conf and change the user and group to asterisk
- `chown asterisk /var/lib/php`
