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

secret = new_password

[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:
[Wed Oct 07 08:48:35.279779 2020] [:error] [pid 12417] [client] 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:
[Wed Oct 07 08:48:35.279856 2020] [:error] [pid 12417] [client] PHP Fatal error:  Class 'FreePBX' not found in /var/www/html/admin/config.php on line 136, referer: