How to find Asterisk Manager Password if GUI is down?


(Mvogel4949) #1

I ran a V13-V14 update and as usual the Asterisk Manager password changed for no reason. Usually I go to Advanced Settings and copy the secret into the manager.conf file but in this update my web gui also stopped working even though httpd is running. Where can I find the new AM password if my GUI is down?


(Lorne Gaetz) #2
[root@uc~]# cat /etc/asterisk/manager.conf

   *snip*
[admin]
secret = new_password
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0


[root@uc~]# fwconsole setting AMPMGRUSER admin
Changing "AMPMGRUSER" from [admin] to [admin]
[root@uc~]# fwconsole setting AMPMGRPASS new_password
Changing "AMPMGRPASS" from [random] to [new_password]

(Mvogel4949) #3

Thanks Lorne I think I’ve got it reconnected. Now to find why the GUI is down… I found this in the http logfiles

PHP Warning:  include_once(/etc/freepbx.conf): failed to open stream: Permission denied in /var/www/html/admin/config.php on line 126, referer: http://98.103.0.115:58088/
[Wed Oct 07 08:48:35.279779 2020] [:error] [pid 12417] [client 66.188.45.2:57601] PHP Warning:  include_once(): Failed opening '/etc/freepbx.conf' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/admin/config.php on line 126, referer: http://98.103.0.115:58088/
[Wed Oct 07 08:48:35.279856 2020] [:error] [pid 12417] [client 66.188.45.2:57601] PHP Fatal error:  Class 'FreePBX' not found in /var/www/html/admin/config.php on line 136, referer: http://98.103.0.115:58088/