Freepbx 16 - Installation Step By Step
sudo dnf config-manager --set-enabled powertools sudo systemctl start mariadb sudo systemctl enable mariadb sudo mysql_secure_installation Set root password, remove anonymous users, disallow remote root, remove test db. Create FreePBX database:
sudo setenforce 0 sudo sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config (FirewallD):
sudo fwconsole admin --user admin --setpassword "YourSecurePassword" Open a browser and navigate to: freepbx 16 installation step by step
mysql -u root -p CREATE DATABASE asterisk; GRANT ALL PRIVILEGES ON asterisk.* TO 'asteriskuser'@'localhost' IDENTIFIED BY 'YourStrongPassword'; FLUSH PRIVILEGES; EXIT; cd /usr/src sudo wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-18.12.1.tar.gz sudo tar xzf asterisk-18.12.1.tar.gz cd asterisk-18.12.1 sudo ./configure --libdir=/usr/lib64 --with-jansson-bundled sudo make menuselect.makeopts sudo menuselect/menuselect --enable res_snmp --enable res_ari \ --enable res_ari_device_states --enable res_ari_bridges \ --enable res_ari_channels --enable res_ari_endpoints \ --enable res_ari_events --enable res_ari_playbacks \ --enable res_ari_recordings --enable res_ari_sounds \ --enable res_ari_applications --enable res_ari_mailboxes \ --enable res_stasis --enable res_stasis_playback \ --enable res_stasis_answer --enable res_stasis_recording \ --enable res_xmpp --enable res_config_mysql sudo make sudo make install sudo make config sudo ldconfig sudo systemctl start asterisk sudo systemctl enable asterisk Step 6 – Install FreePBX 16 Download & extract:
sudo ./start_asterisk start sudo ./install -n --webroot /var/www/html --dbuser asteriskuser --dbpass YourStrongPassword When prompted, accept default ownership/permissions. sudo chown -R asterisk:asterisk /var/www/html sudo chmod -R 755 /var/www/html sudo systemctl start httpd sudo systemctl enable httpd Add FreePBX to crontab: Start adding extensions
sudo systemctl start firewalld sudo systemctl enable firewalld sudo firewall-cmd --permanent --add-service=http,https,ssh sudo firewall-cmd --permanent --add-port=5060/udp,5061/tcp,5160/udp,4569/udp,10000-20000/udp sudo firewall-cmd --reload For CentOS 7 :
sudo fwconsole ma upgradeall sudo fwconsole reload | Issue | Likely Fix | |-------|-------------| | Web interface blank | sudo chown -R asterisk:asterisk /var/www/html | | Database connection error | Check password in /etc/freepbx.conf | | Asterisk not running | sudo systemctl status asterisk ; check logs: /var/log/asterisk/full | | Firewall blocking calls | Verify ports with sudo firewall-cmd --list-all | Conclusion You now have a fully functional FreePBX 16 system with Asterisk 18. Start adding extensions, SIP trunks, and configure inbound/outbound routes from the intuitive web GUI. remove anonymous users
cd /usr/src sudo wget http://mirror.freepbx.org/modules/packages/freepbx/freepbx-16.0-latest.tgz sudo tar xfz freepbx-16.0-latest.tgz cd freepbx Install dependencies via FreePBX installer:
sudo dnf -y install epel-release sudo dnf -y install httpd mariadb-server mariadb php php-mysqlnd php-process php-gd php-mbstring \ php-xml php-curl php-pear php-bcmath php-ldap nodejs npm sox mpg123 sqlite-devel libuuid-devel \ jansson-devel libedit-devel ustr-devel speex-devel libxslt-devel python3 python3-devel Enable (Rocky 8 only):
sudo yum -y install epel-release centos-release-scl sudo yum -y install httpd mariadb-server mariadb php php-mysqlnd php-process php-gd php-mbstring \ php-xml php-curl php-pear php-bcmath php-ldap nodejs npm sox mpg123 sqlite-devel libuuid-devel \ jansson-devel libedit-devel ustr-devel speex-devel libxslt-devel python3 python3-devel For :

