FOP2 on seperate server

  1. 8 years ago

    I've installed a FOP2 server on a separate server as per this document:
    http://support.asternic.biz/?/selfhelp/view-article/installing-fop2-on-a-separate-server/8

    When I run:
    php /var/www/html/fop2/admin/update_conf.php
    I get an error in "functions-custom.php" line 167. That line is:
    if(!$res = $astman->connect("localhost:".$conf["MGRPORT"], $conf["MGRUSER"] , $conf["MGRPASS"], 'off')) {

    I've changed "localhost" on that line by the IP of the remote asterisk server and now I don't get the error anymore but when I go in the admin panel I don't see any extensions. I've check the MySQL credentials and they're OK. If I check in the asterisk database, I see a bunch of fop2 tables so I guess they were created by "update_conf.php". I can connect from the mysql command line of the FOP2 server to the remote asterisk MySQL server with the credentials in "/var/www/html/fop2/admin/config.php".

    Thanks for your help
    Daniel

  2. Also when we logout of the admin panel we get:

    Warning
    You must have a functions-custom.php file in the manager directory.
    FOP2 Manager - Version 1.1.4

  3. admin

    6 Aug 2016 Administrator

    That error was fixed on 1.1.4.. please type this and paste the output:

    grep config /var/www/html/fop2/admin/secure/logout.php

    What is the output ?

  4. Sorry for the delay, I was on vacation for the last 2 weeks.

    # grep config /var/www/html/fop2/admin/secure/logout.php
    require_once("../config.php");

  5. admin

    24 Aug 2016 Administrator

    contact me via the live help, as I said that error was fixed already and you should not be seeing that warning, only way to check is for me to look at your actual install/setup.

or Sign Up to reply!