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


Categories: VOIP


sreekanth · February 1, 2013 at 1:50 am

Thank you @doug mortensen , what i followed may not uninstall free-pbx completely but leave some files which are installed in those directories .

I think those files would not do any harm to OS or do not conflict with free-pbx if we plan to reinstall on the same system .

Anyways there are always auto uninstallation shortcut methods available in the form of scripts .

Doug Mortensen · January 27, 2013 at 11:01 am

Not true. More effort is required to uninstall FreePBX. It installs programs in the operating system outside of /var/www, such as:

Leave a Reply

Your email address will not be published.