jroper
Guru
- Joined
- Oct 20, 2007
- Messages
- 3,832
- Reaction score
- 71
Hi
Here is an install script I just hacked together to prepare a 32 bit CentOS server for a PBX in a Flash install, e.g. on a hosted server.
It only works on 32bit, but a 64 bit version can easily be done if there is a demand.
I've tested it once, and it did not seem to throw any errors, so if anyone has any issues, let me know via this thread.
Instructions
The script is in clear text, and as with all install scripts provided by a 3rd party, I would advise that you read it first before running it to check you know what it is going to do to your system.
It will not work on installing on OpenVZ, I need some modifications to the PIAF installation process to make that happen, as below:-
Disabling the asterisk console accessible using the alt-F9 console - which from a security perspective is possibly not a bad idea anyway.
and the following to allow Meetme to be compiled into Asterisk.
This will not do any harm to an install.
And the Zaptel equivalent.
Webmin is not included in the install routine, this is pretty simple to install anyway, just change the listening ports after installation in /etc/webmin/miniserv.conf from 10000 to 9001 (two places to change) and service webmin restart.
Joe
#Changelog - Read through the thread to see if there are any updates
#6th Septempber 2010
#Change php-pear-DB from php-pear-db
#16th November 2010 v1.02
#Rewrite to support PiaF 1.7.5.5.3 and 64 bit
#This script rewrite was sponsored by Sheldon Steele of the ITS Group, http://www.itsgroup.org/
#version 1.03 released with new 32 bit yum list.
#Change php-pear-DB from php-pear-db v1.04
Here is an install script I just hacked together to prepare a 32 bit CentOS server for a PBX in a Flash install, e.g. on a hosted server.
It only works on 32bit, but a 64 bit version can easily be done if there is a demand.
I've tested it once, and it did not seem to throw any errors, so if anyone has any issues, let me know via this thread.
Instructions
- Make sure you have internet access and DNS resolution.
- Download the tarball attached to this post, and put it somewhere on your system.
- untar it - tar zxfv install-piaf-on-existing-centos.tar.gz
- Run it - ./install-piaf-on-existing-centos.sh
- Follow the on screen instructions.
- At the end, reboot when prompted.
- Login.
- type piafdl
- Installation continues as per any other PiaF install.
The script is in clear text, and as with all install scripts provided by a 3rd party, I would advise that you read it first before running it to check you know what it is going to do to your system.
It will not work on installing on OpenVZ, I need some modifications to the PIAF installation process to make that happen, as below:-
Disabling the asterisk console accessible using the alt-F9 console - which from a security perspective is possibly not a bad idea anyway.
Code:
#Disable TTY9 for OpenVZ
sed -i 's/TTY=9/#TTY=9/g' /usr/sbin/safe_asterisk
Code:
#Create directory and file to get meetme working
mkdir /usr/include/dahdi/
cp /usr/src/dahdi-linux-complete/linux/include/dahdi/user.h /usr/include/dahdi/user.h
And the Zaptel equivalent.
Code:
#Create directory and file to get meetme working
mkdir /usr/include/zaptel/
cp /usr/src/zaptel/kernel/zaptel.h /usr/include/zaptel/zaptel.h
Code:
wget http://downloads.sourceforge.net/project/webadmin/webmin/1.500/webmin-1.500-1.noarch.rpm?use_mirror=switch
rpm -Uvh webmin-1.500-1.noarch.rpm
#Changelog - Read through the thread to see if there are any updates
#6th Septempber 2010
#Change php-pear-DB from php-pear-db
#16th November 2010 v1.02
#Rewrite to support PiaF 1.7.5.5.3 and 64 bit
#This script rewrite was sponsored by Sheldon Steele of the ITS Group, http://www.itsgroup.org/
#version 1.03 released with new 32 bit yum list.
#Change php-pear-DB from php-pear-db v1.04