Instalação Do SNEP 3 em CentOS 7
Instalação Do SNEP 3 em CentOS 7
1 - Instalação do CentOS 7
Padrão minimo + ferramentas de diagnóstico.
2 - Instalação Asterisk 13
2.1 - Atualizar pacotes.
yum update
Obs.: Necessário reinicializar o SO. Após reinicialização verificar se o SELinux está desabilitado
sestatus
cd jansson-2.5/
./configure
make clean
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current
cd dahdi-linux-complete-2.10.2+2.10.2/
make clean
make config
chkconfig dahdi on
wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz
cd libpri-1.4.15/
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz
cd asterisk-13.5.0/
make clean
./configure –libdir=/usr/lib64
make samples
make config
chkconfig asterisk on
3 - Instalação LAMP
3.1 - Instalação banco de dados
yum -y install mariadb-server mariadb
systemctl start mariadb.service
mysql_secure_installation
[root@server1 ~]# mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.
By default, MariaDB comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n] <-- (N) ENTER
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Cleaning up...
All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.
firewall-cmd --reload
yum -y install php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap
4 - Instalação SNEP
4.1 - Fonte do SNEP
cd /var/www/html
git clone link_do_git
mv snep-3 snep
4.2Ajuste de permissões
cd /var/www/html
chmod +x /var/www/html/snep/agi/*
cd /var/log/snep
touch ui.log
touch agi.log
ln -s /var/log/asterisk/full full
chown -R apache.apache *
cd /var/www/html/snep/
ln -s /var/log/snep logs
cd /var/lib/asterisk/agi-bin/
ln -s /var/www/html/snep/agi/ snep
cd /var/spool/asterisk/
rm -rf monitor
rm -rf asterisk
cp -avr /var/www/html/snep/install/etc/asterisk .
cp /var/www/html/snep/install/etc/odbc* .
wget -c http://www.sneplivre.com.br/downloads/asterisk-sounds.tgz
cd /var/lib/asterisk/sounds
chown -R apache:apache *
chown -R apache.apache *
cd /var/www/html/snep/sounds/
[MySQL-snep]
Socket = /var/lib/mysql/mysql.sock
Server = localhost
User = snep
Password = sneppass
Database = snep
Option = 3
/etc/odbcinst.ini
; ###OPENS###
[MySQL]
Driver = /usr/lib64/libmyodbc5w.so
FileUsage = 1
[Text]
Driver = /usr/lib64/libodbctxtS.so
Setup = /usr/lib64/libodbctxtS.so
FileUsage = 1
CPTimeout =
CPReuse =
Deverá ser copiado os arquivos asterisk.conf e modules.conf para a pasta /etc/asterisk sobreescrevendo os atu
Material de apoio:
Manual de instalação do snep no CentOS By Urick.
Manual de instalação do SNEP 3 By OpenS.