Magento 2 Disable Two-Factor Authentication

Magento 2.4.0 come with Two-Factor authentication. Once you installed Magento 2.4.0 or latest you will be asked to setup Two-Factor Autentication. To Disable Two-Factor Authentication, edit file vi app/etc/config.php Find ‘Magento_TwoFactorAuth’ => 1, Replace with ‘Magento_TwoFactorAuth’ => 0, Run commands php bin/magento setup:upgrade php bin/magento setup:static-content:deploy -f Now you will be able to login to … Read more

Magento 2 Enable SSL

To enabel SSL on magento 2 site using command line (SSH), first change to the folder where magento installed. cd /home/yoursite/html Now run php bin/magento setup:store-config:set –use-secure=1 –base-url=”https://m2.serverok.in” php bin/magento setup:store-config:set –use-secure-admin=1 –base-url=”https://m2.serverok.in” Replace “m2.serverok.in” with your Magento installation Url.

Magento 2 CLI

Create Magento project To install Magento 2 To create an Admin user, run Maintenance mode Check Maintenance mode status To allow IP in maintance mode Flush Magento cache Deploy static content Change admin login path Show Magento configuration. The second command shows the configuration related elastic search See Magento 2