Skip to content

Commit ccda727

Browse files
authored
Update Magento2 instructions for 2.4.6
1 parent d436d00 commit ccda727

File tree

1 file changed

+19
-40
lines changed

1 file changed

+19
-40
lines changed

environments/magento2.md

Lines changed: 19 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,26 @@ In addition to the below manual process, there is a `Github Template available f
1717

1818
The result of this command is a `.env` file in the project root (tip: commit this to your VCS to share the configuration with other team members) having the following contents:
1919

20-
WARDEN_ENV_NAME=exampleproject
21-
WARDEN_ENV_TYPE=magento2
22-
WARDEN_WEB_ROOT=/
23-
24-
TRAEFIK_DOMAIN=exampleproject.test
25-
TRAEFIK_SUBDOMAIN=app
26-
2720
WARDEN_DB=1
28-
WARDEN_ELASTICSEARCH=1
21+
WARDEN_ELASTICSEARCH=0
22+
WARDEN_OPENSEARCH=1
23+
WARDEN_ELASTICHQ=0
2924
WARDEN_VARNISH=1
3025
WARDEN_RABBITMQ=1
3126
WARDEN_REDIS=1
3227

33-
WARDEN_SYNC_IGNORE=
34-
35-
ELASTICSEARCH_VERSION=7.6
36-
MARIADB_VERSION=10.3
28+
OPENSEARCH_VERSION=2.5
29+
DB_DISTRIBUTION=mariadb
30+
DB_DISTRIBUTION_VERSION=10.6
3731
NODE_VERSION=12
38-
COMPOSER_VERSION=1
39-
PHP_VERSION=7.3
32+
COMPOSER_VERSION=2.2
33+
PHP_VERSION=8.1
4034
PHP_XDEBUG_3=1
41-
RABBITMQ_VERSION=3.8
42-
REDIS_VERSION=5.0
43-
VARNISH_VERSION=6.0
35+
RABBITMQ_VERSION=3.9
36+
REDIS_VERSION=7.0
37+
VARNISH_VERSION=7.1
38+
39+
WARDEN_SYNC_IGNORE=
4440

4541
WARDEN_ALLURE=0
4642
WARDEN_SELENIUM=0
@@ -96,10 +92,6 @@ In addition to the below manual process, there is a `Github Template available f
9692

9793
8. Install the application and you should be all set:
9894

99-
:::{note}
100-
If you are using OpenSearch instead of ElasticSearch, use `--elasticsearch-host=opensearch` instead of `--elasticsearch-host=elasticsearch`.
101-
:::
102-
10395
## Install Application
10496
bin/magento setup:install \
10597
--backend-frontname=backend \
@@ -111,12 +103,12 @@ In addition to the below manual process, there is a `Github Template available f
111103
--db-name=magento \
112104
--db-user=magento \
113105
--db-password=magento \
114-
--search-engine=elasticsearch7 \
115-
--elasticsearch-host=elasticsearch \
116-
--elasticsearch-port=9200 \
117-
--elasticsearch-index-prefix=magento2 \
118-
--elasticsearch-enable-auth=0 \
119-
--elasticsearch-timeout=15 \
106+
--search-engine=opensearch \
107+
--opensearch-host=opensearch \
108+
--opensearch-port=9200 \
109+
--opensearch-index-prefix=magento2 \
110+
--opensearch-enable-auth=0 \
111+
--opensearch-timeout=15 \
120112
--http-cache-hosts=varnish:80 \
121113
--session-save=redis \
122114
--session-save-redis-host=redis \
@@ -158,19 +150,6 @@ In addition to the below manual process, there is a `Github Template available f
158150
bin/magento indexer:reindex
159151
bin/magento cache:flush
160152

161-
:::{note}
162-
Prior to Magento ``2.4.x`` it was not required to enter search-engine and elasticsearch configuration during installation and these params to ``setup:install`` are not supported by Magento ``2.3.x``. These should be omitted on older versions where not supported and Elasticsearch configured via ``config:set`` instead:
163-
164-
```bash
165-
bin/magento config:set --lock-env catalog/search/engine elasticsearch7
166-
bin/magento config:set --lock-env catalog/search/elasticsearch7_server_hostname elasticsearch
167-
bin/magento config:set --lock-env catalog/search/elasticsearch7_server_port 9200
168-
bin/magento config:set --lock-env catalog/search/elasticsearch7_index_prefix magento2
169-
bin/magento config:set --lock-env catalog/search/elasticsearch7_enable_auth 0
170-
bin/magento config:set --lock-env catalog/search/elasticsearch7_server_timeout 15
171-
```
172-
:::
173-
174153
10. Generate an admin user and configure 2FA for OTP
175154

176155
## Generate localadmin user

0 commit comments

Comments
 (0)