How to set up the connection to the web-based mobile app for on-premise clients

After you have successfully installed Feng Office on-premise, it will be necessary for you to contact us through support@fengoffice.com and select either of the following options to move forward.

Option A

1) Provide us SSH access to your installation so we can make the connection, and we will do everything for you

Option B

1) Provide the main URL for your Feng's installation

2) Add the following constant to your config/config.php file replacing “company_mame_key” with a string that our mobile system will use to identify your company (without any spaces)

define('ONPREMISE_MOBILE_KEY', 'company_mame_key');

3) We will make the connection

4) Finally, you will be asked to execute these steps on your end to complete the installation:

4.1) Install “web” plugin:

php public/install/plugin-console.php install_activate web

4.2) Create the script to register your account users on our website

Create the file in the root directory of the Feng Office installation

add_users_to_website.php

Use the following contents:

<?PHP
chdir(dirname(__FILE__));
define("CONSOLE_MODE", true);
define('PUBLIC_FOLDER', 'public');
include "init.php";
$users = Contacts::getAllUsers();
foreach ($users as $user) {
  $user->save();
}

Execute the script

php add_users_to_website.php

Remove the script

rm add_users_to_website.php