There are some default good practice when installing/configure a server and I think is good to follow them and improve where is possible.
I tend to use [ apt ] instead of [ apt-get ] as they are almost the same: apt is designed for end-users (human) and its output may be changed between versions > Means the output is more reach and pleasant.
Read more “Configure Web Server for Magento [Ubuntu, Nginx…] (Part 1)”
I got a bit tired of this error, it’s a bit of nightmare to setup Magento2 on OSX using the MAMP PRO PHP in CLI.
As composer is not able to pick the MAMP php but instead is loading the native one (if u’re in a hurry go to end of article, to update 2, for the solution).
The entire error looks like this:
- Installation request for magento/framework 100.1.5 -> satisfiable by magento/framework[100.1.5].
- magento/framework 100.1.5 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- Installation request for magento/magento2-base 2.1.5 -> satisfiable by magento/magento2-base[2.1.5].
- magento/magento2-base 2.1.5 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- Installation request for magento/product-community-edition 2.1.5 -> satisfiable by magento/product-community-edition[2.1.5].
- magento/product-community-edition 2.1.5 requires ext-intl * -> the requested PHP exte
nsion intl is missing from your system.
Read more “PHP extension mcrypt, intl, … missing as composer uses default environment”
A plugin is used to extend or modify a public method’s behaviour by applying code before, after, or around that observed method.
The first argument for the before, after, and around methods is an object that provides access to all public methods of the observed method’s class.
Note: The rest of the parameters for these functions are depending on the function type (before, after, around) – they are having a dynamic number of parameters.
Read more “M2 Defining a plugin”
The cache is the biggest issue when you develop so you need to know all the possible ways of cleaning it.
There are 3 way to clean the cache (similar to Magento 1): Read more “Clear Cache in Magento 2”
Magento 2 can run in one of three primary modes — developer, production, and default.
But aside from that ones there is also a maintenance mode, which is used when you want to make the site unavailable to the public during updates or other changes. Read more “Maintenance mode (M2)”
First, will be a good idea to check the current MODE:
php bin/magento deploy:mode:show
Read more “Set Environment Variable [Developer or Production Mode] (M2)”