[{"data":1,"prerenderedAt":342},["ShallowReactive",2],{"navigation_docs_en":3,"-en-guides-config-file":60,"-en-guides-config-file-surround":337},[4,25,45],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fen\u002Fgetting-started","en\u002F1.getting-started",[10,15,20],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","\u002Fen\u002Fgetting-started\u002Fintroduction","en\u002F1.getting-started\u002F1.introduction","i-lucide-house",{"title":16,"path":17,"stem":18,"icon":19},"Installation","\u002Fen\u002Fgetting-started\u002Finstallation","en\u002F1.getting-started\u002F2.installation","i-lucide-download",{"title":21,"path":22,"stem":23,"icon":24},"Update & Upgrade","\u002Fen\u002Fgetting-started\u002Fupdate-upgrade","en\u002F1.getting-started\u002F3.update-upgrade","i-lucide-arrow-up-circle",{"title":26,"icon":6,"path":27,"stem":28,"children":29,"page":6},"Guides","\u002Fen\u002Fguides","en\u002F2.guides",[30,35,40],{"title":31,"path":32,"stem":33,"icon":34},"Install Styles","\u002Fen\u002Fguides\u002Finstall-styles","en\u002F2.guides\u002F1.install-styles","i-lucide-palette",{"title":36,"path":37,"stem":38,"icon":39},"Install Plugins","\u002Fen\u002Fguides\u002Finstall-plugins","en\u002F2.guides\u002F2.install-plugins","i-lucide-plug",{"title":41,"path":42,"stem":43,"icon":44},"config.php File","\u002Fen\u002Fguides\u002Fconfig-file","en\u002F2.guides\u002F3.config-file","i-lucide-file-cog",{"title":46,"icon":6,"path":47,"stem":48,"children":49,"page":6},"Development","\u002Fen\u002Fdevelopment","en\u002F3.development",[50,55],{"title":51,"path":52,"stem":53,"icon":54},"Plugin Development","\u002Fen\u002Fdevelopment\u002Fplugin-development","en\u002F3.development\u002F1.plugin-development","i-lucide-blocks",{"title":56,"path":57,"stem":58,"icon":59},"Styles Development","\u002Fen\u002Fdevelopment\u002Fstyles-development","en\u002F3.development\u002F2.styles-development","i-lucide-paintbrush",{"id":61,"title":62,"body":63,"description":328,"extension":329,"links":330,"meta":331,"navigation":332,"path":42,"seo":333,"stem":43,"__hash__":336},"docs_en\u002Fen\u002F2.guides\u002F3.config-file.md","The config.php File",{"type":64,"value":65,"toc":323},"minimark",[66,75,80,94,98,104,151,155,162,166,169,173,179,319],[67,68,69,70,74],"p",{},"One of the most important files in your Kleeja installation is the ",[71,72,73],"code",{},"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.",[76,77,79],"h2",{"id":78},"where-is-configphp","Where is config.php",[67,81,82,83,85,86,90,91,93],{},"When you first download Kleeja, the ",[71,84,73],{}," file isn't included. The ",[87,88,89],"a",{"href":17},"Kleeja installation process"," creates a ",[71,92,73],{}," file for you based on the information you provide.",[76,95,97],{"id":96},"creating-configphp-manually","Creating config.php manually",[67,99,100,101,103],{},"You can manually create a ",[71,102,73],{}," file by copying the simple code below:",[105,106,111],"pre",{"className":107,"code":108,"filename":73,"language":109,"meta":110,"style":110},"language-php shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003C?php\n$dbserver   = 'localhost'; \u002F\u002F database server\n$dbuser     = 'user';      \u002F\u002F database user\n$dbpass     = 'pass';      \u002F\u002F database password\n$dbname     = 'kleeja';    \u002F\u002F database name\n$dbprefix   = 'klj_';      \u002F\u002F prefix for table names\n","php","",[71,112,113,121,127,133,139,145],{"__ignoreMap":110},[114,115,118],"span",{"class":116,"line":117},"line",1,[114,119,120],{},"\u003C?php\n",[114,122,124],{"class":116,"line":123},2,[114,125,126],{},"$dbserver   = 'localhost'; \u002F\u002F database server\n",[114,128,130],{"class":116,"line":129},3,[114,131,132],{},"$dbuser     = 'user';      \u002F\u002F database user\n",[114,134,136],{"class":116,"line":135},4,[114,137,138],{},"$dbpass     = 'pass';      \u002F\u002F database password\n",[114,140,142],{"class":116,"line":141},5,[114,143,144],{},"$dbname     = 'kleeja';    \u002F\u002F database name\n",[114,146,148],{"class":116,"line":147},6,[114,149,150],{},"$dbprefix   = 'klj_';      \u002F\u002F prefix for table names\n",[152,153,154],"tip",{},"We recommend that you don't do this manually — follow the installation process to generate this file automatically.",[67,156,157,158,161],{},"From Kleeja 3.1.0 you can use ",[71,159,160],{},"$dbtype = 'sqlite';"," to use the SQLite database driver instead of MySQL.",[76,163,165],{"id":164},"advanced-options","Advanced options",[67,167,168],{},"Kleeja offers many hidden settings to make Kleeja work the best for you, and to solve some issues that are encountered by some users.",[170,171,172],"warning",{},"Use these only if needed.",[67,174,175,176,178],{},"To use one, copy the wanted code and paste it at the end of the ",[71,177,73],{}," file.",[180,181,182,195],"table",{},[183,184,185],"thead",{},[186,187,188,192],"tr",{},[189,190,191],"th",{},"Code",[189,193,194],{},"Description",[196,197,198,209,219,229,239,249,259,269,279,289,299,309],"tbody",{},[186,199,200,206],{},[201,202,203],"td",{},[71,204,205],{},"defined('MAKE_DOPHP_301_HEADER', true);",[201,207,208],{},"Use header 301 redirection to download files directly (helps with performance).",[186,210,211,216],{},[201,212,213],{},[71,214,215],{},"define('DEV_STAGE', true);",[201,217,218],{},"Enable development mode (for developers).",[186,220,221,226],{},[201,222,223],{},[71,224,225],{},"define('STOP_PLUGINS', true);",[201,227,228],{},"Disable the plugins system, so you can delete corrupted plugins or disable them.",[186,230,231,236],{},[201,232,233],{},[71,234,235],{},"define('STOP_CAPTCHA', true);",[201,237,238],{},"Disable the CAPTCHA system if you are having issues.",[186,240,241,246],{},[201,242,243],{},[71,244,245],{},"define('TIME_FORMAT', 'd-m-Y h:i a');",[201,247,248],{},"Change the date format in Kleeja to what you like.",[186,250,251,256],{},[201,252,253],{},[71,254,255],{},"define('DISABLE_INTR', true);",[201,257,258],{},"Disable user system integration with other web apps.",[186,260,261,266],{},[201,262,263],{},[71,264,265],{},"define('FORCE_COOKIES', true);",[201,267,268],{},"If having a login issue due to cookies settings.",[186,270,271,276],{},[201,272,273],{},[71,274,275],{},"$config_cookie_name = ''; $config_cookie_domain = ''; $config_cookie_secure = ''; $config_cookie_path = '';",[201,277,278],{},"Or use one of these cookie settings individually.",[186,280,281,286],{},[201,282,283],{},[71,284,285],{},"define('STOP_CSRF', true);",[201,287,288],{},"Adds another security layer to the Kleeja Admin Panel.",[186,290,291,296],{},[201,292,293],{},[71,294,295],{},"define('ACP_IMAGES_PER_PAGE', 20);",[201,297,298],{},"Number of images per page in the Kleeja Admin Panel.",[186,300,301,306],{},[201,302,303],{},[71,304,305],{},"define('ACP_FILES_PER_PAGE', 20);",[201,307,308],{},"Number of files per page in the Kleeja Admin Panel.",[186,310,311,316],{},[201,312,313],{},[71,314,315],{},"define('HAS_SUEXEC', true);",[201,317,318],{},"Solution for hosts running under suexec.",[320,321,322],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":110,"searchDepth":123,"depth":123,"links":324},[325,326,327],{"id":78,"depth":123,"text":79},{"id":96,"depth":123,"text":97},{"id":164,"depth":123,"text":165},"Kleeja's main configuration file — where it lives, how to create it by hand, and every advanced option you can add to it.","md",null,{},{"icon":44,"title":41},{"title":334,"description":335},"The config.php file","Database settings and the hidden advanced options of Kleeja's config.php file.","gAww2pRtBhmYjQMScQVfW7k2gMjwOGJcvvpz_5NlIuA",[338,340],{"title":36,"path":37,"stem":38,"description":339,"icon":39,"children":-1},"Extend Kleeja with plugins for SEO, comments, payments, forum integration and more.",{"title":51,"path":52,"stem":53,"description":341,"icon":54,"children":-1},"Learn how to build your own plugins for Kleeja.",1787917765453]