Uninstalling freepbx and asterisk manually

In CategoryVoice Over IP


First stop asterisk . If you are running freepbx enter the command “amportal stop”


killall -9 safe_asterisk

killall -9 asterisk
then unload zaptel drivers

lsmod | grep zaptel

if this returns blank , skip this step if it retruns something like below then remove the drivers with modprobe command

zaptel 214820 2 wcfxo,wctdm
crc_ccitt 2113 1 zaptel
we can remove zaptel modules in reverse order
modprobe -r wcfxo
modprobe -r wctdm
repeat this for all other zaptel submodules

modprobe -r zaptel
Now confirm that all zaptel drivers have been removed ,if you enter “lsmod | grep zaptel” it will return nothing.

Now remove asterisk directories
rm -rf /etc/asterisk
rm -f /etc/zaptel.conf
rm -rf /var/log/asterisk
rm -rf /var/lib/asterisk
rm -rf /var/spool/asterisk
rm -rf /usr/lib/asterisk

Uninstalling  freepbx  is as simple as just removing the freepbx web directories and drop the database
rm -rf /var/www/html/panel
rm -rf /var/www/html/admin