PHP 7.3 reached end of support in December 2021 and Adobe Commerce 2.3.x reaches end of support in September 2022. You may want to consider planning your upgrade now to Adobe Commerce 2.4.x and PHP 7.4.x to help maintain PCI compliance.
config.php reference
The config.php
file contains the following sections:
Name | Description |
---|---|
i18n |
All inline translation data. Reading from this section is currently not supported. |
modules |
The list of enabled and disabled modules. |
scopes |
The list of stores, store groups and websites with related information. |
system |
The system configurations required for static content deployment. |
themes |
The configuration of installed themes. |
modules
Contains an array of modules and their states. If module is enabled, value is 1. Otherwise, the value is 0.
1
2
3
4
5
6
'modules' => [
'Magento_Store' => 1,
'Magento_Theme' => 0,
'Magento_Backend' => 0,
'Magento_Eav' => 1
]
Learn more about Modules
scopes
Contains an array of scope configuration values. It has the following subnodes:
Name | Description |
---|---|
websites |
Website configuration |
groups |
Stores configuration |
stores |
Store views configuration |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
'scopes' => [
'websites' => [
'admin' => [
'website_id' => '0',
'code' => 'admin',
'name' => 'Admin',
'sort_order' => '0',
'default_group_id' => '0',
'is_default' => '0'
]
],
'groups' => [
0 => [
'group_id' => '0',
'website_id' => '0',
'code' => 'default',
'name' => 'Default',
'root_category_id' => '0',
'default_store_id' => '0'
]
],
'stores' => [
'admin' => [
'store_id' => '0',
'code' => 'admin',
'website_id' => '0',
'group_id' => '0',
'name' => 'Admin',
'sort_order' => '0',
'is_active' => '1'
]
]
]
Learn more about Magento Scopes
system
Contains an array of system field configuration values.
1
2
3
4
5
6
7
8
9
'system'=> [
'default' =>[
'checkout' => [
'cart' => [
'delete_quote_after' => 31
]
]
]
]
Learn more about System Specific Configuration
themes
Contains an array of values for theme configuration.
1
2
3
4
5
6
7
8
9
10
11
'themes' => [
'frontend/Magento/luma' => [
'parent_id' => 'Magento/blank',
'theme_path' => 'Magento/luma',
'theme_title' => 'Magento Luma',
'is_featured' => '0',
'area' => 'frontend',
'type' => '0',
'code' => 'Magento/luma'
]
]
Learn more about Themes