How to locate Loaded 7 configuration file

Updated on Dec 10, 2015

In this tutorial, we will review the main configuration file of Loaded Commerce and how to locate it. Even if you are not planning to touch the actual file, it contains valuable information that you can use for different tasks.

Access File

There are two ways of accessing or editing the configuration file of your website - using an FTP client, following our FTP tutorial, or reviewing it directly through your cPanel account → File Manager, following our cPanel tutorial.

To locate the main configuration file of your website, you first need to access the directory, where you have installed Loaded Commerce. If you are accessing your website directly via the primary domain of your account, this will indicate that your website is hosted directory in the public_html directory of your account.

When you locate your website's directory, simply navigate to includes/config.php . This is the main configuration file of your installation and it contains a lot of information for your actual website.

The first two sections of the configuration file are for the setup of your website on the server. This includes the URL of your online store and the system paths for it's different features.

  define('HTTP_SERVER', '');
  define('HTTPS_SERVER', '');
  define('ENABLE_SSL', false);
  define('HTTP_COOKIE_DOMAIN', '');
  define('HTTPS_COOKIE_DOMAIN', '');
  define('HTTP_COOKIE_PATH', '/');
  define('HTTPS_COOKIE_PATH', '/');
  define('DIR_WS_HTTP_CATALOG', '/');
  define('DIR_WS_HTTPS_CATALOG', '/');
  define('DIR_WS_ADMIN', 'admin/');
  define('DIR_WS_IMAGES', 'images/');

  define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
  define('DIR_FS_CATALOG', '/home/loaded/public_html/');
  define('DIR_FS_ADMIN', '/home/loaded/public_html/admin/');
  define('DIR_FS_WORK', '/home/loaded/public_html/includes/work/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_BACKUP', '/home/loaded/public_html/admin/backups/');

You may need to edit this information if you are changing the location of your store, it's URL or even the server you are using to host your Loaded Commerce website. The third section in the configuration file is regarding the database you are using on your website.

  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', 'loaded_lco');
  define('DB_SERVER_PASSWORD', 'p4ssw0rd');
  define('DB_DATABASE', 'loaded_lco');
  define('DB_DATABASE_CLASS', 'mysqli_innodb');
  define('DB_TABLE_PREFIX', 'lc_');
  define('USE_PCONNECT', 'false');
  define('STORE_SESSIONS', 'database');

This information may be required when you are making a backup of your website, or restoring such on the server.

On this page...

    Loaded 7

    • Free Installation
    • 24/7 Tech Support
    • Free Domain Transfer
    • Hack-free Protection
    • Fast SSD Storage
    • Free Cloudflare CDN
    • Free Website Transfer
    • Immediate Activation
    View More