Configuration Files

There are three important configuration files, which may need to be edited. These files are in /opt/lampp/etc/LFX (assuming you copied them as mentioned above.)

Note that the third file, LFX_config, specifies where the first two files should be found. By default, it points to /opt/lampp/etc/LFX, but this may be changed if required.

LFX_dbData.php

This file is used to specify the user names and passwords which should be used to connect to the MySQL database. These should match the user name and password you specified earlier when you installed MySQL as part of the XAMPP package. Typically, the default user name is "root". Assuming you chose the password "secret", the configuration file should be changed as shown below:

<?
  /**
  * LFX database credentials
  * Bogdan Stancescu<bogdan@lanifex.com>, May 2002
  *
  * Contains sensitive information
  * $Id: x131.html,v 1.1 2005/11/28 21:25:55 paul Exp $
  */

  $_LFX['global']['dbData']=array (
  'LFX' =>
  array (
    'host' => 'localhost',
    'db' => 'lfxlib',
    'uname' => 'root',
    'pwd' => 'secret',
  ),
  'dmo_new' =>
  array (
    'host' => 'localhost',
    'db' => 'dmo_new',
    'uname' => 'root',
    'pwd' => 'secret',
  ),
  'mysql' =>
  array (
    'host' => 'localhost',
    'db' => 'mysql',
    'uname' => 'root',
    'pwd' => 'secret',
  ),
);
  $_LFX_dbData=&$_LFX['global']['dbData'];
?>

Note that the above file uses the same credentials for each database, however best practice means keeping these separate, and creating a different user for each database. In any case, because the file contains sensitive information, it should be restricted using the Linux "chmod" command, so that only the Web server has permission to read it. This is usually done with the following commands, assuming that Apache is configured to run as user nobody:

# cd /opt/lampp/etc/
# chmod -R 700 LFX
# chown -R nobody.nogroup LFX

Note that it is possible to run an external MySQL server, by replacing "localhost" with the fully qualified domain name of the Database server.

LFXlink.php

This script defines which additional applications are installed with DMO. Normally, the standard installation of DMO does not require changes to this file. However, whenever DMO is installed with other applications, such as Event Horizon, Policy Compliance Manager, Help Desk, Crisis Manager, etc., this file should be updated to reflect each installed application. For DMO, it may be necessary to change the path which tells LFXlib where to find DMO in the file system.

<?
  /**
  * The Lanifex link
  * Bogdan Stancescu <bogdan@lanifex.com>, November 2002
  * $Id: x131.html,v 1.1 2005/11/28 21:25:55 paul Exp $
  */

  /**
  * This file links the LFX_lib with all the other LFX
  * applications on this server.
  */

$_LFX['global']['applications']=array (
  'LFX' =>
  array (
    'app_code' => 'LFX',
    'app_name' => 'LFX Library',
    'app_url' => '/LFXlib',
    'app_dbdata' => 'LFX',
    'app_ver' => '1.0',
  ),
  'DMO' =>
  array (
    'app_code' => 'DMO',
    'app_name' => 'Database of Managed Objects',
    'app_url' => '/dmo_new',
    'app_lib' => '/opt/lampp/htdocs/dmo_new/include/DMO_lib.php',
    'app_dbdata' => 'dmo_new',
    'app_ver' => '1.0',
  ),
);
?>

LFX_config

This file should be found in /opt/lampp/htdocs/LFXlib/LFX_config. It contains a single line, which points to the location of the previous two files, as shown in the example below:

systemdir=/opt/lampp/etc/LFX