Install Magento 2.4.6 for Windows 2FA via Warden and WSL 2 - ECommerce Development Environment
A tutorial on how to setup the Magento 2.4.6 installation for Windows that I've verified works.
**Note:** Will not work from iPhones or iPads. Only works for Desktops and Discord account age must be 18+
Discord: https://discord.gg/JkNp3mnJ6Q
==To add to Hosts file:==
# Warden Global Services (run with warden svc up)
127.0.0.1 traefik.warden.test
127.0.0.1 portainer.warden.test
127.0.0.1 dnsmasq.warden.test
127.0.0.1 mailhog.warden.test
# Project environments (run with warden env up)
127.0.0.1 app.youtube-demo.test
==Gitignore file from official Magento 2.4.6 github (remove the line /app/etc/config.php):==
https://raw.githubusercontent.com/magento/magento2/2.4.6/.gitignore
==Adobe Commerce Marketplace for Access Keys:==
https://commercemarketplace.adobe.com/
==Python 2FA command for 2.7:==
OTPAUTH_QRI=
TFA_SECRET=$(python2 -c "import base64; print base64.b32encode('$(pwgen -A1 128)')" | sed 's/=*$//')
OTPAUTH_URL=$(printf "otpauth://totp/%s%%3Alocaladmin%%40example.com?issuer=%s&secret=%s" \
"${TRAEFIK_SUBDOMAIN}.${TRAEFIK_DOMAIN}" "${TRAEFIK_SUBDOMAIN}.${TRAEFIK_DOMAIN}" "${TFA_SECRET}"
)
OR
==Python 2FA command for 3.0+:==
OTPAUTH_QRI=
TFA_SECRET=$(python -c "import base64; print (base64.b32encode('$(pwgen -A1 128)'.encode()).decode('utf8'))" | sed 's/=*$//')
OTPAUTH_URL=$(printf "otpauth://totp/%s%%3Alocaladmin%%40example.com?issuer=%s&secret=%s" \
"${TRAEFIK_SUBDOMAIN}.${TRAEFIK_DOMAIN}" "${TRAEFIK_SUBDOMAIN}.${TRAEFIK_DOMAIN}" "${TFA_SECRET}"
)
This video is under the creative commons zero license.
-----------------------------------------------------------------