After trying to install FOP2 on Freepbx 13 Now Lost FREEPBX GUI

I followed these instructions from FOP2 site, but now unclear why I can not get to GUI. Really have no clue?

Before starting the FOP2 service, some basic configuration is required in fop2.cfg and probably in /etc/asterisk/manager.conf,
because the FOP2 daemon connects via TCP to the Asterisk Manager
Interface (AMI) using a username and secret. The basic daemon config is
covered here.
Once that the files are in place and the manager credentials
configured you will have to start the service. There are a number of
ways to do that. The best way is to use a proper init script for your
distribution, another way is to start it from /etc/rc.local.

I did change pwd in manager.conf but put it back to amp111.

              Whoops \                        Exception \                        ErrorException
                (E_WARNING)
  











fwrite(): 56 is not a valid stream resource  

      
      
        
    
                            /var/www/html/admin/libraries/php-asmanager.php
              
                		}
	$req .= "\r\n";
	$this->log("Sending Request down socket:",10);
	$this->log($req,10);
	if(!$this->connected()) {
		throw new Exception("Asterisk is not connected");
	}
	fwrite($this->socket, $req);
	$response = $this->wait_response();

and this:

    5.
    Whoops\Exception\ErrorException
    
  


  /­var/­www/­html/­admin/­libraries/­php-asmanager.php240



  
    4.
    Whoops\Run
    handleError
  


  <#unknown>0



  
    3.
    
    fwrite
  


  /­var/­www/­html/­admin/­libraries/­php-asmanager.php240



  
    2.
    AGI_AsteriskManager
    send_request
  


  /­var/­www/­html/­admin/­modules/­digium_phones/­functions.inc.php134



  
    1.
    
    digium_phones_configpageinit
  


  /­var/­www/­html/­admin/­libraries/­BMO/­GuiHooks.class.php267



  
    0.
    FreePBX\GuiHooks
    doConfigPageInits
  


  /­var/­www/­html/­admin/­config.php340

You are supposed to use the manager.conf password to configure FOP2, not the other way around.

Exactly as smhickel said, or preferably, create a new manager user called “fop2” in manager_custom.conf
Don’t change the password for admin in manager.conf, cause this broke your GUI.

Instead open manager_custom.conf, and put this into that file:

[fop2]
secret = your password
deny = 0.0.0.0/0.0.0.0
permit = 127.0.0.1/255.255.255.0
read = all
write = all
writetimeout = 1000
eventfilter=!Event: RTCP*
eventfilter=!Event: VarSet
eventfilter=!Event: Cdr
eventfilter=!Event: DTMF
eventfilter=!Event: AGIExec
eventfilter=!Event: ExtensionStatus
eventfilter=!Event: ChannelUpdate
eventfilter=!Event: ChallengeSent
eventfilter=!Event: SuccessfulAuth

And put this in fop.cfg

[general]
; AMI definitions
manager_host = 127.0.0.1
manager_port = 5038
manager_user = fop2
manager_secret = your password