This file contains the basic settings for your website.
The file is program code written in PHP.
The file is called rk-config.php and is located in the root directory of your website.
Path to file:
/rk-config.php
This file contains many settings necessary for the website to function correctly.
The settings are located in the define functions.
This is the only PHP function an exchange administrator should know.
The function consists of two values: the first is the name, and the second is the definition. The values are separated by a comma.
define(NAME, VALUE);
To configure the exchange sсript, find the define functions whose names match the description and change the value after the comma. Required data:
RK_DB_PREFIX - Database prefix. Any letters of the Latin alphabet are required to uniquely identify the database. The prefix is optional, but for enhanced security, it is recommended to enter a unique value.
Example:
define('RK_DB_PREFIX', 'rexch');
RK_DB_NAME - Database name on the server.
Example:
define('RK_DB_NAME', 'exchanger_db');
RK_DB_USER - Name of an existing database user.
Example:
define('RK_DB_USER', 'exchanger_user');
RK_DB_PASSWORD - Database user password.
Example:
define('RK_DB_PASSWORD', 'exchanger_pass');
RK_DB_HOST - Database host. Typically, this is localhost, but can be changed if necessary.
Example:
define('RK_DB_HOST', 'localhost');
RK_SITEURL - Full URL of your website with https.
Example:
define('RK_SITEURL', 'https://richexchanger.info/');
RK_LOGINPAGE_PATH - Administrator login page name. This is the URL where the site administrator login page will be located.
Example:
define('RK_LOGINPAGE_PATH', 'adminlogin');
This way, authorization will occur at the address:
https://richexchanger.info/adminlogin/
You shouldn't leave authorization at the default address. Everyone knows this address, including attackers.
RK_CRON_HASH, RK_NONCE_SALT, RK_LOGIN_SALT, RK_TIME_SALT, RK_AUTH_SALT, RK_AUTHCOOKIE_SALT, RK_EXT_SALT, RK_PASS_SALT - Salts and hashes. For this block, we recommend using our generator and replacing the entire block.
This block is filled in only once. Do not share the data in it with anyone.
RK_DEBUG – Enables error display on the website.
There are two values: true (enables display) and false (disables display).
RK_DEBUG_LOG – Works in conjunction with RK_DEBUG. If RK_DEBUG is true, this option logs all errors to a file.
There are two values: true (enables display) and false (disables display).
RK_DEBUG_DISPLAY – Works in conjunction with RK_DEBUG. If RK_DEBUG is true, this option enables display of errors on the website.
There are two values: true (enables display) and false (disables display).
When testing features or developing, all three options (RK_DEBUG, RK_DEBUG_LOG, RK_DEBUG_DISPLAY) should be set to true. Once programming or testing is complete, all three options should be set to false.
RK_MAINTENANCE_MODE – Setting indicating the site's maintenance mode.
There are two values: true (maintenance mode enabled) and false (maintenance mode disabled).
RK_ADMIN_LANG – Administrative panel language. The default is ru_RU. Available options: ru_RU (Russian), en_US (English), uk_UA (Ukrainian), es_ES (Spanish).
Example:
define('RK_ADMIN_LANG', 'ru_RU');
RK_SITE_LANG - Site language. Defaults to ru_RU. Available options: ru_RU (Russian), en_US (English), uk_UA (Ukrainian), es_ES (Spanish).
Example:
define('RK_SITE_LANG', 'ru_RU');
RK_ENABLE_LANGS - Site languages, if the site is intended to be multilingual.
Languages are separated by commas.
Available options: ru_RU (Russian), en_US (English), uk_UA (Ukrainian), es_ES (Spanish).
Example (Russian and English):
define('RK_ENABLE_LANGS', 'ru_RU, en_US, uk_UA, es_ES');
Example (Russian and Ukrainian):
define('RK_ENABLE_LANGS', 'ru_RU, uk_UA');
Example (Ukrainian and Spanish):
define('RK_ENABLE_LANGS', 'uk_UA, es_ES');
You can also use the rk-config.php generator on our website to create a file without any programming knowledge.