Magento 2 Commands

Magento 2 Commands Short Commands Usage of Commands php bin/magento setup:upgrade php bin/magento s:up Upgrades the Magento application to the latest version, DB data, and schema php bin/magento setup:di:compile php bin/magento s:d:c Generates DI configuration and all missing classes that can auto-generated php bin/magento indexer:reindex php bin/magento i:rei Reindexes Data php bin/magento cache:flush php bin/magento...

Share
Steps to increase the speed of Magento 2.4 web site

Use a reliable hosting provider: Choose a hosting provider that offers fast servers, reliable uptime, and has experience hosting Magento sites. Enable Magento Cache: Magento 2.4 includes several cache types that can significantly improve the performance of your site. Go to System -> Cache Management and enable all the caches. Enable flat catalog: Enabling flat...

Share
Remove repeated malicious script using shell script

We can use below code to remove repeated malicious scripts #!/bin/bash pattern_1=”<FilesMatch \”.(py|exe|php)$\”>” pattern_2=”[ ]*Order allow\,deny\n” pattern_3=”[ ]*Deny from all\n” pattern_4=”[ ]*<\/FilesMatch>\n” pattern_5=”[ ]*<FilesMatch \”\^(about.php|radio.php|index.php|content.php|lock360.php)$\”>\n” pattern_6=”[ ]*Order allow\,deny\n” pattern_7=”[ ]*Allow from all\n” pattern_8=”[ ]*<\/FilesMatch>\n” complete_pattern=”$pattern_1\n$pattern_2$pattern_3$pattern_4$pattern_5$pattern_6$pattern_7$pattern_8″ replacement_1=”” replacement_2=”” replacement_3=”” replacement_4=”” replacement_5=”” replacement_6=”” replacement_7=”” replacement_8=”” complete_replacement=”$replacement_1$replacement_2$replacement_3$replacement_4$replacement_5$replacement_6$replacement_7$replacement_8″ filename=”.htaccess” echo “” echo “Replacing the lines..” sed -i “/$pattern_1/{  ...

Share