yum -y install lynx mariadb-server mariadb php php-mysql php-mbstring tftp-server \ httpd ncurses-devel sendmail sendmail-cf sox newt-devel libxml2-devel libtiff-devel \ audiofile-devel gtk2-devel subversion kernel-devel git php-process crontabs cronie \ cronie-anacron wget vim php-xml uuid-devel sqlite-devel net-tools gnutls-devel php-pear unixODBC mysql-connector-odbc
pear install Console_Getopt
systemctl enable mariadb.service systemctl start mariadb
mysql_secure_installation
systemctl enable httpd.service systemctl start httpd.service
sed -i 's/\(^upload_max_filesize = \).*/\120M/' /etc/php.ini sed -i 's/^\(User\|Group\).*/\1 asterisk/' /etc/httpd/conf/httpd.conf sed -i 's/AllowOverride None/AllowOverride All/' /etc/httpd/conf/httpd.conf systemctl restart httpd.service
adduser asterisk -M -c "Asterisk User" chown asterisk. /var/run/asterisk chown -R asterisk. /etc/asterisk chown -R asterisk. /var/{lib,log,spool}/asterisk chown -R asterisk. /usr/lib64/asterisk chown -R asterisk. /var/www/
wget http://mirror.freepbx.org/modules/packages/freepbx/freepbx-13.0-latest.tgz tar -zxvf freepbx-13.0-latest.tgz cd freepbx ./start_asterisk start ./install -n
firewall-cmd --zone=public --add-port=80/tcp --permanent firewall-cmd --reload
fwconsole chown