Difference between revisions of "Installing FusionPBX 3.2 on CentOS 6.5 and Mysql"

From FusionPBX
Jump to: navigation, search
Line 64: Line 64:
  
 
set ownership, perms, and install init scripts
 
set ownership, perms, and install init scripts
 +
 
cd /usr/local/
 
cd /usr/local/
 +
 
chown -R freeswitch:freeswitch freeswitch
 
chown -R freeswitch:freeswitch freeswitch
 +
 
chmod -R g+w freeswitch
 
chmod -R g+w freeswitch
 +
 
cd /usr/src/freeswitch/build
 
cd /usr/src/freeswitch/build
 +
 
cp freeswitch.init.redhat /etc/init.d/freeswitch
 
cp freeswitch.init.redhat /etc/init.d/freeswitch
 +
 
chmod +x /etc/init.d/freeswitch
 
chmod +x /etc/init.d/freeswitch
 +
 
cp freeswitch.sysconfig /etc/sysconfig/freeswitch
 
cp freeswitch.sysconfig /etc/sysconfig/freeswitch
  

Revision as of 04:15, 9 April 2013

Installing FusionPBX 3.2 on CentOS 6.4 and Mysql

Install Basic CentOS Server Installation

you can download centOS 6.4 from

http://mirror.sunnyvision.com/centos/6.4/isos/i386/CentOS-6.4-i386-minimal.iso


Then Do update to up to date

yum update -y


Disabling SELINUX

/bin/sed -i -e s,'SELINUX=enforcing','SELINUX=disabled', /etc/selinux/config


yum -y install autoconf automake gcc-c++ git-core libjpeg-devel libtool make ncurses-devel pkgconfig libedit-devel unixODBC-devel openssl-devel gnutls-devel libogg-devel libvorbis-devel curl-devel libtiff-devel libjpeg-devel python-devel expat-devel zlib zlib-devel bzip2 which subversion screen vim php* ntp libX11-devel libzrtpcpp-devel alsa-lib-devel libdb-devel uuid-devel @development-tools gdbm-devel db4-devel libjpeg libjpeg-devel libtermcap libtermcap-devel ncurses ntp screen sendmail sendmail-cf bison gettext-devel httpd-devel apr-devel apr-util-devel cyrus-sasl-devel gettext-libs openldap-devel

Installing Apache webserver

yum install http*

Install MySQL.

yum install mysql*


Install Freeswitch

cd /usr/src git clone git://git.freeswitch.org/freeswitch.git cd freeswitch ./bootstrap.sh


Edit modules.conf to enable or disable desired modules. To enable a few extra features you may want to go ahead and edit modules.conf. Remove the # in front of the lines with these modules:

mod_rtmp mod_directory mod_callcenter mod_tts_commandline mod_dingaling mod_flite mod_shout mod_pocketsphinx mod_cidlookup


./configure make make install make cd-moh-install && make cd-sounds-install

Add a user for freeswitch

useradd freeswitch


set ownership, perms, and install init scripts

cd /usr/local/

chown -R freeswitch:freeswitch freeswitch

chmod -R g+w freeswitch

cd /usr/src/freeswitch/build

cp freeswitch.init.redhat /etc/init.d/freeswitch

chmod +x /etc/init.d/freeswitch

cp freeswitch.sysconfig /etc/sysconfig/freeswitch

Add Settings to freeswitch sysconfig filed

cat >> /etc/sysconfig/freeswitch <<EOT

PID_FILE=/var/run/freeswitch/freeswitch.pid

FS_USER=freeswitch

FS_FILE=/usr/local/freeswitch/bin/freeswitch

FS_HOME=/usr/local/freeswitch

EOT