Magento
- knowledgediary4min
- Mar 3, 2020
- 2 min read
http://magento.stackexchange.com/questions/137516/error-on-admin-login-magento-2-1
Temporarily disabled on admin panel
------------------------------
select * from mgq3_admin_user \G;
to unlock: UPDATE admin_user SET failures_num=0, first_failure=NULL, lock_expires=NULL WHERE username='admin';
Restrict IP access to admin panel:
RewriteCond %{REQUEST_URI} ^/(index.php/)?vinrmanager/ [NC]
RewriteCond %{REMOTE_ADDR} !^208.110.52.18
RewriteCond %{REMOTE_ADDR} !^82.71.1.24
RewriteCond %{REMOTE_ADDR} !^95.177.86.8
RewriteRule ^(.*)$ http://%{HTTP_HOST}/ [R=302,L]
"Add to Basket" issues when LiteMage Cache extension is enabled for Magento
https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:litemage:troubleshooting:cart-appears-empty
Admin panel 404
--------------------------
Check the DB entries:
>> select * from mg_core_config_data where path = 'admin/url/custom_path';
Base URL change
Using phpMyAdmin * Open up the database using phpMyAdmin
Quote:
* Navigate to the core_config_data table inside (Note - sometimes there will be a prefix for 'core_config_data' table name) * Click the Browse tab and edit two fields & give proper values with desired URLs with trailing "/"
web/unsecure/base_url web/secure/base_url
* Clear the Magento cache Using SSH Backend (MySQL commands)
Quote:
select * from core_config_data where path like '%base%url%';
update core_config_data set value = 'http://DESIRED_DOMAIN/' where path = 'web/unsecure/base_url'; update core_config_data set value = 'http://DESIRED_DOMAIN/' where path = 'web/secure/base_url';
CRON FOR MAGENTO1
*/5 * * * * php -f /home/techfocus/public_html/cron.php
php -c /home/lawnmowe/public_html/shell/indexer.php --reindexall
CRON FOR MAGE2
*/5 * * * * /usr/bin/php-cli -c /usr/local/lib/php.ini /home/**USERNME**/public_html/bin/magento cron:run
*/5 * * * * /usr/bin/php-cli -c /usr/local/lib/php.ini /home/**USERNME**/public_html/update/cron.php
*/5 * * * * /usr/bin/php-cli -c /usr/local/lib/php.ini /home/**USERNAME**/public_html/bin/magento setup:cron:run
/usr/bin/php-cli -c /usr/local/lib/php.ini /home/lenocove/public_html/bin/magento indexer:reindex
Magento 1 Through the Magento Admin Panel Log into your Magento Admin Panel >> System ->> Cache Management >> Flush Cache Storage Using SSH Delete the contents of the var/cache/ folder from Magento base directory:
Quote:
rm -rf var/cache/* or find ./var/cache -type f -delete
find ./var/session -type f -delete Magento2 From Magento admin panel System >> Cache Management >> Flush Magento Cache Using SSH Execute below commands from Magento base directory.
Quote:
php bin/magento cache:flush
php bin/magento setup:static-content:deploy -f
# Magento version check
Magneto 1 Execute below command from Magento base directory.
Quote:
grep -A10 'function getVersionInfo' app/Mage.php or php -r "require 'app/Mage.php'; echo Mage::getVersion();"
Magento 2 Execute below command from Magento base directory.
Quote:
grep community-edition composer.json or grep -s 'const VERSION' ./vendor/magento/framework/AppInterface.php
Howto get Magento Database info (& magento frontend) details: From the domain's Magento base folder (docroot), execute :
Quote:
egrep -s 'host|dbname|username|password|frontName' app/etc/{env.php,local.xml}
Comments