Blog Post

The Magento 2.4.4 Preparation

Naweed Qadir • Nov 06, 2021

Following the Adobe guideline

Magento predominantly runs on Linux environment although you will find various deployment tutorials for Windows as well. It's not the OS but the services apps that is essential can be found for both the OS. You will often see advertisement of Linux as the platform that powers Internet. Same goes for Magento as well.


As for eCommerce - Magento has established itself as a prominent platform specially after Adobe acquired it in 2018 for $1.68 Billions! After the acquire Adobe started integrating their cloud services in the commercial tier Adobe Commerce. But at the same time the free version - Magento Open Source also enjoying premium updates like recently integration of PayPal Commerce which initially was launched for the paid version.


From my experience, Magento has become choice of platform for many large retailers besides small and medium ones. Before pandemic and post pandemic Magento is seeing a huge rate of adoption of it's platform across the globe. The need for Magento professionals also grew tremendously over the last 5 years. I would suggest getting your hands dirty understanding the platform from setting it up to how it manages the products and customers through it's Admin portal as the starting point. If you are a developer then understanding its file structure and PHP language will definitely help. 

Adobe intentionally kept all the premium reporting services, B2B functionalities, and marketing tools available in its paid version of Magento - Magento Commerce. But that doesn't mean the free Open Source version is neglected. Both versions undergo similar coding standards and are developed at the same time and may be by some of the same team members. If you are a small and medium business- the online sale is not going to be large (large number of products/SKUs, financial turnover) then sticking to the Open Source one will be less expensive. 


Bear in mind, the built-in features of Magento Commerce that you are missing out on can be accomplished using 3rd party plugins and tools. Even some of the premium themes now come with a large number of extensions that not only provide those features but add additional features which the paid version doesn't have. 


Choosing premium extensions and themes from Magento's premium partners can ensure you can maintain your site in a more tension-free manner.


OS Selection


Adobe Magento team has published an Installation Flow page to guide the Magento enthusiast and professionals to follow the correct route to deploy the environment correctly before deploying the platform. You can check the link here - https://devdocs.magento.com/guides/v2.4/install-gde/install-flow-diagram.html


I have often taken up deploying Magento for testing certain functionality parts of managing a project and I was very frustrated as most of the instructions mentioned in blogs or YouTube did not work for me. I was not alone, the comments section was full of frustrated comments not able to see the same results mentioned by the authors. I was annoyed and appalled by the fact that many of the so-called authors were copying from various sources without even testing the commands and results in their own environment. 


I decided to put together this series of deployment instructions to share with you the way I have installed it in my test environment. Hopefully, this will help you to complete your deployment in a less frustrating manner.


In terms of choosing OS, Red Hat Linux is not a free Linux Distro as it is no longer an Open Source software. It is managed just like any other OS requiring paid licensing. It is the choice of many large enterprises for various reasons. For small and medium companies it doesn't make sense to pay for this licensing cost but again the cost does come with a very stable environment with great support.


That leaves us with Ubuntu, CentOS, and Debian. Ubuntu has been very active in the Linux world and as a distro has managed to become a trusted distro in the enterprise area as well. CentOS has seen several changes and they are part of Red Hat Linux (RHEL) but keeping themselves Open Source. But 2021 has seen CentOS taking different directions leaving me to believe Ubuntu would be the best choice for most of the Magento adopters.


So my choice of OS is Ubuntu. BTW - Ubuntu is based on Debian. Please note, Ubuntu has a desktop, server, and core edition for IoT and Robotics. I would always advise going for an LTS release. At this moment Ubuntu 20.04 LTS (Focal Fossa) is the most tested and stable version that can be used for your development, testing, and production environment.


Web Server


Apache HTTPD and Nginx (and other web servers) are designed to do one thing, serve data over HTTP(S). Software-based web servers are usually doing this and executing code. Besides that, on a broader level, it also serves static file contents which include CSS, javascript, images, and more helping applications overhead. It also helps in load-balancing which can help you to scale out your front end without scaling your back end. You will be serving your contents securely or through HTTPS. Both Apache and Nginx can handle HTTPS very well which brings up the important point of security which both have very strong codebase and support. In fact, putting Apache or Nginx in front of your software protects it from probe attacks, hides its identity, and can manage access to it.


Magento supports both the popular web servers and often Magento professionals choose either of them based on a few factors which are debatable.  The reason I have chosen Apache over Nginx is it equally has a great performance record after version 2.4 was released and the most important part is - it supports PHP out of the box. If you install Nginx, you need to carry out a number of configuration changes that can add to your stress level. In fact, many of the steps by step instructions shared over the blogs and vlogs have so many readers expressing their frustration in configuring Nginx to process PHP is a clear direction for me to use Apache.


Scripting Language (Server Sided)


PHP is an acronym for "PHP: Hypertext Preprocessor". In order to generate results from the database which will be updated on a regular basis, a server-side scripting language is required. This scripting language will generate dynamic page contents which will be published in HTML, CSS, JavaScript, and Text. PHP code is executed on the server, and the result is returned to the browser as plain HTML.


Not only will it publish content but PHP can create, open, read, write, delete, and close files on the server. It can also collect data and then can add, delete, modify data in the database. PHP can send and receive cookies, control user access, and encrypt data.


Over the years PHP has been made to run on various platforms - from Windows, Linux, Unix to Mac OS X. Most importantly it can run on all the web servers including Apache, Nginx, IIS, and more.


The new Magento supports PHP 8.1 which is much faster than the previous popular releases. Speed is a vital part of the performance besides improved error handling, new operators, and much more. 


Data Base


MySQL is an open-source relational database management system. Over the years this DB management system has undergone various upgrades making it one of the most popular DB systems in the www world. The co-founder of MySQL, Michael Widenius after Oracle acquired MySQL created the MariaDB based on MySQL source code. MariaDB is also supported by Magento.


Since there are two popular DBs are supported by Magento, the debate goes on about which should be used. Magento only uses MySQL features compatible with MariaDB. MariaDB may not be compatible with all MySQL features. There have been numerous reports that reindexing (a very common process of Magento) takes more time compared to MySQL. Please note, the latest MySQL 8 removed Query Caching which is a feature that may help with Magento performance in certain circumstances.


I have chosen to use MySQL because version 8.0 has a good track record so far, backed by Oracle, it is undergoing constant updates and has great support from the open source community as well.


Search Engine


Elasticsearch is a powerful analytics and full-text search engine that stores data in JSON format. It’s open-source, developed in Java, on top of Apache Lucene. This was also the reason why I chose Apache as the webserver.  Widely used for building complex and performant search functionalities, Elasticsearch has many popular clients worldwide, including Netflix, Facebook, and Adobe.


Based on its main feature anyone can question why to use this engine when MySQL DB is already running behind the scene. First and foremost, Elasticsearch is excellent at doing what traditional databases can’t do: full-text search. Both relational and non-relational databases are very slow when it comes to this search technique.


Theoretically, RDBMS should be able to handle such queries but it will take a combination of operators like LIKE, AND, OR to produce the type of results that Elasticserch will produce. But if the dataset is large, it will be a huge performance issue using the RDBMS. Moreover, Elasticsearch can handle typos very easily and knows all about relevance. It also allows us to write complex queries using its REST API. Besides, Elasticsearch is fast, distributed, scales extremely well, and has failover mechanisms in place to avoid data loss.


One of the biggest features introduced in Magento 2.3  and thereafter is the full-text search. Based on the above info you can easily understand why Elasticsearch is so essential for Magento 2.4.4. The developers of various Search extensions are taking advantage of Elasticsearch. 


That's my list of supporting applications that I will be deploying chronologically on Ubuntu server before deploying Composer. Magento introduced this software in it's ecosystem when it got inundated with queries around how to manage various installation packages and dependencies.  In short Composer is a dependency manager for Magento 2.x. Composer reads a composer.json file in Magento’s root directory to download third-party dependencies listed in the file. Composer will consume composer.json file to install new modules to your project. Though Magento comes pre-installed with many modules you can install new ones on top. Composer can also be used to update your modules to later versions. It will pull latest code from location specified in composer.json file.

By Naweed Qadir 26 Jun, 2021
Issue with .deb file installation or internet downloaded application in Ubuntu where the software installer shows error - failed to install the application is resolved in this blog. The issue is resolved by installing Debian Package Management System (DPKG) and using it to deploy the application.
resolve wireless and bluetooth issue of Ubuntu on Microsoft Surface Pro 4
By Naweed Qadir 26 Jun, 2021
Install Ubuntu 21.04 in Microsoft Surface Pro 4 and resolve issues related to WiFi (Wireless) and Bluetooth. In this blog post I have discussed the steps to resolve these issues.
By Naweed Qadir 12 Apr, 2020
Some of the businesses provided few days in a month for their employee to work from home. I remember in my last few jobs this practice was mentioned as a benefit. Today the businesses had no other choice but to embrace this as a day to day practice at least till the COVID19 threat was over. The month long work from home has provided business with some real time data which shows it works and based on the work that we do majority of the workforce sitting behind the computer to do their job proved it is no different than to work at your own desk and produce the same result expected from your employer. It's time that the employers realize that work from home requires macro management instead of micro. It has to be more result driven on a timely manner. Businesses should realize that working from home actually cuts down their rental and utility bills. All the employees using their own resources - it's a large benefit for businesses. I won't be surprised if majority of businesses decides to continue this practice post coronavirus pandemic. I believe most of us have realized by now that we actually give more time to our work then what we used to give when sitting in the office. We had to commute and then had set time to reach, start, have lunch, meetings and then at a certain time commute back home. Once we left the office it was a psychological shutdown from work - our mind and body would look forward to post work practices. We never realized how this unlocking ourselves regularly healed our body and mind. Now due to lockdown or stay at home practice this clock has been reset and this will be felt after a couple of months as we sit more front of the computer with very restricted movements. Now is the time to start thinking about the investment that you need to start planning for your home office setup. We know that this social distancing and keeping majority of the population to home will help eradicate this pandemic. It will be a natural process to prioritize the workers who need to be physically present will need to start first - those who has been working from home keeping it business as usual will be the last. As I mentioned above - seeing the benefits businesses might make this a norm many of us working behind the computer and producing the same result as working physically in the office. Your obvious investment will start with the reliable Internet connectivity having good bandwidth, computer having good camera, a decent headset for the calls, multi-screens and not to mention all the additionals that will help you to be more productive. For me a printer, whiteboard and place at home where I can isolate myself were the logical choices. Your lighting is also very important. Ensure every hour - you are standing up and taking a couple of minutes break to walk around to get the circulation going. If you are using Google Apps or Office 365 you already have built-in Google Meet or Microsoft Team to carry out the video conferences. But more focused and dedicated conference application like Zoom. Gotomeeting have many more features and provides more stable connectivities over the similar bandwidth. Those who are working from home - you should thank your employer to have such a facility and mindset. Let's show the commitment, support and continue to produce results which will help them to pass this challenging time.
By Naweed Qadir 12 Apr, 2020
My of my clients are ex-WordPress users who were once sold to this platform for better performance and most importantly for being SEO super friendly. But at the end - users looks for a platform which will be either managed by professionals and very easy manage their contents including publishing. Few of my clients were originally Wix user who later was told that Wix is not business focused and the organic or paid SEO ranking is not possible in that platform - instead moving to WordPress will resolve the issue. Those clients of mine realized a bit later on, that the move was much worse than what was originally intended. Those clients of mine were after a very well designed, colorful website with drag and drop contents creation. The theme in Wordpress needed to be professionally extended to support those required changes and then when a new update came - it broke the site! I am not against WordPress. In fact I used to use WordPress and even worked on customising few of the themes for my clients. You can run WordPress on a $5 per month hosting making it one of the cheapest Content Management System. It needs to be patched regularly as well as upgraded. If someone is tech savvy and will be able to manage those maintenance job then it's up to you. Nowaday our drag and drop CMS is intricately built with SEO options which has site and page covered. If you are struggling with WordPress content management and maintenance of the site then please reach out to me - the content management system and the tools that I incorporate within the site has undergone various changes, making it one of the easiest intuitive content management system for general business users. In last 12 months I ensured my clients had zero downtime making me proudly present to them 100% uptime in the annual report. With WordPress or similar solution it hasn't been possible due to the fact the way the solution needs to be kept updated. You also need to see that WordPress platform is an open source platform and thousands of developers are developers are providing their own solutions. You definitely can enhance the functionality with the help of developers but it will have its own challenges.
By Naweed Qadir 21 Mar, 2019
Announcement of project related document templates will be available at my site from this week.
By Naweed Qadir 17 Aug, 2018
If you are a foodie like me then I am sure you have visited Goode Brothers at one of their three outlets. They have amazing Italian food delivered straight from their live kitchen which you can view from your table. But this discussion is not about their amazing food but their management of their Customer Data management service. Like all other customer and member of their loyalty program I received an Email outlining business's one of the worst nightmare - losing Customers details to Hacker!! Breach of personal information is a huge thing and I don't know whether they understand or not. Nowadays keeping customer data is a big responsibility and there's legal implication if the data is compromised. Their Email read - "Mondays aren’t usually our favourite day of the week, and we definitely didn’t have a goode one on Monday 23rd July. If you follow us on Facebook, you will know by now that our email database was breached, and you may have received an invoice from us as a result. Since then, our email service provider has had our account paused while they investigated further. It’s been a while since we’ve been able to contact you, but we’re pleased to say we’re now back and confident our partners have done everything they can to investigate and safeguard our database. We’re sorry for any inconvenience caused throughout this period, and if you’d like to chat further please don’t hesitate to get in touch with us." Don't be like Goode Brothers and make sure your Email and CRM are well protected behind well reputed cloud infrastructure. This is why I always reiterate to my prospective clients when they are trying to fit in cheapest solution from some local provider.
By Naweed Qadir 04 Aug, 2018
It's not that Microsoft always get things right! But it seems like with Windows 10 - they might have finally got it right with their most popular product. When there's still a battle between Mac OSX and Ubuntu Desktop (not to mention Chrome) - Windows still is a major player in the desktop market. With the Surface - it is trying to come up in the tablet arena as well which is dominated by iPad and Android tablets. They took a new approach in rolling out the new OS - surprisingly it is free and will come automatically as an upgrade. We all thought Windows 8.1 will have SP1 - instead SP1 became the new Windows. As a Windows user I have to appreciate Microsoft's vision. Apple always offers their OS to their customer free but you have to remember it is because their users have to buy Mac hardware. Microsoft don't have exclusive hardware other than Surface - so it's not the same as Apple. But definitely Microsoft's new CEO made a big impact and will win back lots of disgruntled customers. In my experience the installation was very straight forward specially since it was an upgrade from an existing 8.1 Professional installation. Instead of waiting for my automatic update - I used the Windows 10 Download Tool from Microsoft's site. Microsoft customers downloaded 14 million copies of the Windows 10 upgrade on the first day of availability - this is 10X more downloads then Windows 8 had. This alone should convince you to upgrade your existing Windows 7, 8 and 8.1 systems. If you have 4GB or more RAM and a 64bit supported processor - you should install 64bit version of Windows 10 else 32bit will obviously will do. None of the application had any issue nor the any hardware. I have to say it was the most clean hassle free upgrade experience for me after Windows XP. In fact better than Windows XP. I typically noticed performance gain. User experience wise I love the layout and the access to applications. Although Cortana is not available for most languages but I hopeful it will arrive for my English New Zealand very soon. The new browser Edge seems to be very responsive and works well with all sites. The new snipping tool-set within browser is a great idea. Don't wait for the automatic roll-out - give it a go now.
By Naweed Qadir 04 Aug, 2018
Windows Blue Screen of Death (BSD) has been a biggest joke amongst Mac and Linux users for a long time. Little did we know that it's not completely Windows OS's fault rather it's the third party device drivers and tools written to support various hardware and services were the root cause of the problem.
By Naweed Qadir 04 Aug, 2018
Knowing the kinds of typefaces you have to work with or want to use will give you a good foundation as you develop your digital presence.
More Posts
Share by: