Category Archives: Magento

Magento is an open-source e-commerce platform written in PHP.

WHM cpanel magento 2 php cli command error

If you saw error php-cli: command not found when running magento command php bin/magento, then you need to run following commands. To fix this error, you need to enable php cli mode. Run following command source /opt/cpanel/ea-php72/enable based on your php version. It will solve your problem. but it will come again when you will… Read More »

SetEnv fails with Apache 2.4

If Apache error logs show below error message Invalid command ‘SetEnv’, perhaps misspelled or defined by a module not included in the server configuration The control of internal environment variables that are used by various Apache HTTP Server modules are controlled by the module mod_env. By default module ‘mod_env’ will not be enabled in apache2.4.… Read More »

How we can add each type of attribute filters in magento

Sometimes we need to add custom condition on product listing or some custom pages to fetch data. Here you will how easily we can add conditions with addAttributeToFilter .  addAttributeToFilter is a method that can be called on EAV collections in Magento. This includes product collections, category collections, customer collections and many more. In short,… Read More »