Magento 1 Invalid Form Key

magento 1 login error

When login to Magento 1 Admin area, i get an error Invalid Form Key. Please refresh the page. This is because the value of web/cookie/cookie_domain set wrong. This should be the current domain name.

In this case, the domain name was different. To see the value, you can run

You can leave cookie […]

Read More…

Magento 1 Password Reset

To reset the password for the admin user in Magento 1 installation, go to phpMyAdmin, run the following SQL command.

In the above SQL command, replace PASSOWRD_HERE with your new password. If you don’t know Magento backend URL, you can find it in file app/etc/local.xml

In this case, Magento backend URL is […]

Read More…

Magento 2 Unable to proceed: the maintenance mode is enabled


When i visit a Magento 2 site, i get error

To fix this, login to the server using SSH, run following command.

This will disable Magento 2 maintenance mode. If you need maintenance mode enabled, you can run

See Magento […]

Read More…

Install Elasticsearch 7 on Ubuntu for Magento 2.3

To install Elasticsearch, add the key

add apt repository

install elasticsearch with apt

Set elasticsearch to start on boot

Elasticsearch can be started and stopped as follows:

verify elasticsearch is running with

or with

if it fail to start, you can debug with

See elasticsearch […]

Read More…

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


Replace with

Run commands

Now you will be able to login to Magento Admin with out setting up Two-Factor autentication. See Magento 2 […]

Read More…

Magento 2 list enabled modules

To list Modules in Magento 2, run


See Magento 2 […]

Read More…

Magento Change URL


Magento store website URL in table core_config_data. This is the same for Magento 1 and Magento 2. To see the current URL, in phpMyAdmin or MySQL command line, run

Normally this shows 2 entries. If it shows more than 2 entries, it is because you have more store configured in your Magento installation. In […]

Read More…