{"id":53691,"date":"2022-12-08T18:38:14","date_gmt":"2022-12-08T16:38:14","guid":{"rendered":"https:\/\/tuthost.ua\/faq\/where-is-the-opencart-configuration-file\/"},"modified":"2024-07-19T20:22:04","modified_gmt":"2024-07-19T17:22:04","slug":"gde-nahoditsya-konfiguratsionnyj-fajl-opencart","status":"publish","type":"ht_kb","link":"https:\/\/tuthost.ua\/en\/faq\/gde-nahoditsya-konfiguratsionnyj-fajl-opencart\/","title":{"rendered":"Where is the OpenCart configuration file?"},"content":{"rendered":"\n<p>The OpenCart configuration file is located in the root of this CMS and is named config.php<\/p>\n\n<p>The same file is also in the admin directory and has the same name config.php<\/p>\n\n<p>Therefore, it is necessary to make changes to the database connection in both files.<br\/>Changes need to be made in the following fields:<\/p>\n\n<pre class=\"wp-block-code\"><code>define('DB_HOSTNAME', 'localhost');\ndefine('DB_USERNAME', 'database user name');\ndefine('DB_PASSWORD', 'database user password');\ndefine('DB_DATABASE', 'database name');\ndefine('DB_PORT', '3306');\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The OpenCart configuration file is located in the root of this CMS and is named config.php The same file is also in the admin directory and has the same name config.php Therefore, it is necessary to make changes to the database connection in both files.Changes need to be made in the following fields:<\/p>\n","protected":false},"author":6,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","ghostkit_customizer_options":"","ghostkit_custom_css":"","ghostkit_custom_js_head":"","ghostkit_custom_js_foot":"","ghostkit_typography":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"ht-kb-category":[10669],"ht-kb-tag":[],"class_list":["post-53691","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-hosting-en"],"taxonomy_info":{"ht_kb_category":[{"value":10669,"label":"Hosting"}]},"featured_image_src_large":[],"author_info":{"display_name":"\u0421\u043b\u0430\u0432\u0438\u043a \u041a\u0440\u0438\u0432\u0443\u0446\u0435\u043d\u043a\u043e","author_link":"https:\/\/tuthost.ua\/en\/author\/slava-tuthost-com\/"},"comment_info":0,"_links":{"self":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb\/53691","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/comments?post=53691"}],"version-history":[{"count":3,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb\/53691\/revisions"}],"predecessor-version":[{"id":53703,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb\/53691\/revisions\/53703"}],"wp:attachment":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/media?parent=53691"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb-category?post=53691"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=53691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}