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