Magento how to check whether SSL redirection is enabled using MySQL command line and disable it if needed

To check whether SSL redirection is enabled or disabled in Magento using MySQL command line, you can execute the following SQL query:

SELECT * FROM core_config_data WHERE path LIKE '%web/secure/use_rewrites%';

If the value of the value column is set to 1, then SSL redirection is enabled.… Read the rest

How to know Magento version via the command line?

To find out the version of Magento installed on your system via the command line, you can use the following command in the Magento root directory:

php bin/magento --version

or

grep -A6 'static function getVersionInfo' app/Mage.php

From a browser you may try to reach the following page:

https://yourwebsite/magento_version

This will display the version number of Magento installed on your system.… Read the rest

Magento 2 useful commands

Enter Magento 2 folder

cd /home/username/public_html/

Reindex

php bin/magento indexer:reindex

Flush Cache

php bin/magento cache:flush

Magento version

php bin/magento --version

Disable a module

php bin/magento module:disable Magento_SOMEMODULE

Uninstall Magento

php bin/magento setup:uninstall

To get modules list:

php bin/magento module:status

 

 

Source: https://www.measureddesigns.com/magento-2-useful-commands/… Read the rest