The config.php File
One of the most important files in your Kleeja installation is the config.php file. This file is located in the root of your Kleeja directory and contains your website's base configuration details, such as the database connection information.
Where is config.php
When you first download Kleeja, the config.php file isn't included. The Kleeja installation process creates a config.php file for you based on the information you provide.
Creating config.php manually
You can manually create a config.php file by copying the simple code below:
<?php
$dbserver = 'localhost'; // database server
$dbuser = 'user'; // database user
$dbpass = 'pass'; // database password
$dbname = 'kleeja'; // database name
$dbprefix = 'klj_'; // prefix for table names
From Kleeja 3.1.0 you can use $dbtype = 'sqlite'; to use the SQLite database driver instead of MySQL.
Advanced options
Kleeja offers many hidden settings to make Kleeja work the best for you, and to solve some issues that are encountered by some users.
To use one, copy the wanted code and paste it at the end of the config.php file.
| Code | Description |
|---|---|
defined('MAKE_DOPHP_301_HEADER', true); | Use header 301 redirection to download files directly (helps with performance). |
define('DEV_STAGE', true); | Enable development mode (for developers). |
define('STOP_PLUGINS', true); | Disable the plugins system, so you can delete corrupted plugins or disable them. |
define('STOP_CAPTCHA', true); | Disable the CAPTCHA system if you are having issues. |
define('TIME_FORMAT', 'd-m-Y h:i a'); | Change the date format in Kleeja to what you like. |
define('DISABLE_INTR', true); | Disable user system integration with other web apps. |
define('FORCE_COOKIES', true); | If having a login issue due to cookies settings. |
$config_cookie_name = ''; $config_cookie_domain = ''; $config_cookie_secure = ''; $config_cookie_path = ''; | Or use one of these cookie settings individually. |
define('STOP_CSRF', true); | Adds another security layer to the Kleeja Admin Panel. |
define('ACP_IMAGES_PER_PAGE', 20); | Number of images per page in the Kleeja Admin Panel. |
define('ACP_FILES_PER_PAGE', 20); | Number of files per page in the Kleeja Admin Panel. |
define('HAS_SUEXEC', true); | Solution for hosts running under suexec. |