You changed the asterisk manager connection. Not the mysql connection, your mysql connection is fine, otherwise you would have been modifying freepbx.conf not "php-asmanager.php" (which btw "asmanager" should give you the hint that it's not mysql). and you changed it because the word "localhost" isn't resolving to 127.0.0.1 like it should and you didn't work with us (being "freepbx") on a better solution, one that would help you without having to have run a hacky script fix against "php-asmanager.php" which changes a lot in FreePBX 12....
I'm just trying to be helpful here.
/var/lib/asterisk/bin/freepbx_setting ASTMANAGERHOST 127.0.0.1
/var/lib/asterisk/bin/freepbx_setting ASTMANAGERPORT 5038
Here's a two line fix that will last forever. This solution is not hacky. It will last through all upgrades of FreePBX because it's the supported way to do this things.
Code:/var/lib/asterisk/bin/freepbx_setting ASTMANAGERHOST 127.0.0.1 /var/lib/asterisk/bin/freepbx_setting ASTMANAGERPORT 5038
cd /root
nano -w /etc/apt/sources.list
# add contrib non-free to the top debian source so it looks like this:
# deb http://ftp.us.debian.org/debian wheezy main contrib non-free
# save the file
apt-get update
apt-get install pciutils iw wireless-tools
apt-get install firmware-realtek unzip
wget http://incrediblepbx.com/dwa130_revC_drivers_linux_006.zip
unzip dwa130_revC_drivers_linux_006.zip
mkdir -p /lib/firmware/RTL8192U
cp rtl8192u_linux_2.6.0006.1031.2008/firmware/RTL8192U/* /lib/firmware/RTL8192U
reboot
lsmod # is the wifi device rtl… in the list?
apt-get install wpasupplicant
nano -w /etc/network/interfaces # add the following:
# auto wlan0
iface wlan0 inet dhcp
wpa-ssid "your-SSID-network"
wpa-psk "your-SSID-password"
# save the file
ifup wlan0
iwconfig
ifconfig
status
# if it's workin', uncomment auto wlan0 to enable wireless on boot
# comment out auto eth0 to disable wired connection on boot
reboot
Potential thread-hijacking question:
Although I have a Pogoplug in my cart at Amazon as I type this, I was wondering if all this IncrediblePBX goodness could be loaded onto my Seagate Dockstar.
Link up your team and customers Phone System Live Chat Video Conferencing
Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.
Check your inbox!
We’ve sent you an email. Click on the button in the email body to verify your email address – (if you can not find it, check your spam folder).
Upon verification you will be directed to the 3CX setup wizard.