{"id":39248,"date":"2021-11-15T12:30:00","date_gmt":"2021-11-15T18:30:00","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=39248"},"modified":"2022-10-04T09:15:35","modified_gmt":"2022-10-04T14:15:35","slug":"how-to-install-magento-2-4-3-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/","title":{"rendered":"How To Install Magento 2.4.3 on Ubuntu 20.04"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\r\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"742\" height=\"372\" class=\"wp-image-39445\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-magento-2.4.3-on-ubuntu-20.04.jpg\" alt=\"how to install magento 2.4.3 on ubuntu 20.04\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-magento-2.4.3-on-ubuntu-20.04.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-magento-2.4.3-on-ubuntu-20.04-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-magento-2.4.3-on-ubuntu-20.04-150x75.jpg 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>Magento is a highly popular open-source e-commerce platform written in PHP. It is completely customizable to every user\u2019s requirements, thus allowing them to create and launch a fully functional online store in minutes, making it an excellent choice for businesses looking to have an online shop set up without hassle.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"alignright size-full is-resized\"><img decoding=\"async\" class=\"wp-image-39446\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/installing-magento-2.4.3-on-ubuntu-20.04.png\" alt=\"installing magento 2.4.3 on ubuntu 20.04\" width=\"106\" height=\"125\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/installing-magento-2.4.3-on-ubuntu-20.04.png 255w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/installing-magento-2.4.3-on-ubuntu-20.04-128x150.png 128w\" sizes=\"(max-width: 106px) 100vw, 106px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p><a href=\"https:\/\/www.rosehosting.com\/magento-hosting.html\" target=\"_blank\" rel=\"noreferrer noopener\">Magento<\/a> offers a community and a commercial version of its platform \u2013 the community version is free and is designed primarily for individuals and\/or small businesses. On the other hand, the enterprise version is mainly aimed at medium to large businesses and more of an enterprise environment. In this tutorial, we will show you how to install Magento 2.4.3 on Ubuntu 20.04.<\/p>\r\n\r\n\r\n\r\n<p><!--more--><\/p>\r\n\r\n\r\n\r\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69c8e528d1f40\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69c8e528d1f40\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#Prerequisites\" >Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#1-Log-in-via-SSH-and-update-the-system\" >1. Log in via SSH and update the system<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#2-Install-PHP\" >2. Install PHP<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#3-Install-Web-server\" >3. Install Web server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#4-Install-MariaDB-Server\" >4. Install MariaDB Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#5-Install-Elastic-Search\" >5. Install Elastic Search<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#6-Install-Composer\" >6. Install Composer<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#7-Download-and-Install-Magento\" >7. Download and Install Magento<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#8-Setup-Cron-jobs\" >8. Setup Cron jobs<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#9-Install-an-SSL-Certificate\" >9. Install an SSL Certificate<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-prerequisites\"><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Ubuntu 20.04<\/li>\r\n<li>root SSH access or a regular user with sudo privileges<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1-Log-in-via-SSH-and-update-the-system\"><\/span>1. Log in via SSH and update the system<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>Log in to your Ubuntu 20.04 VPS with SSH as a root user or as a regular user with sudo privileges<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">ssh master@IP_Address -p Port_number<\/pre>\r\n\r\n\r\n\r\n<p>Remember to replace IP_Address and Port_Number with your server\u2019s actual IP address and SSH port number respectively.<\/p>\r\n\r\n\r\n\r\n<p>You can check whether you have the proper Ubuntu version installed on your server with the following command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ lsb_release -a<\/pre>\r\n\r\n\r\n\r\n<p id=\"block-f19bc203-eeeb-416b-a678-66794b9f4593\">You should get this output:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">No LSB modules are available.<br \/>Distributor ID: Ubuntu<br \/>Description: Ubuntu 20.04.3 LTS<br \/>Release: 20.04<br \/>Codename: focal<\/pre>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"358\" height=\"109\" class=\"wp-image-39447\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-set-up-magento-2.4.3-on-ubuntu-20.04.png\" alt=\"how to set up magento 2.4.3 on ubuntu 20.04\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-set-up-magento-2.4.3-on-ubuntu-20.04.png 358w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-set-up-magento-2.4.3-on-ubuntu-20.04-300x91.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-set-up-magento-2.4.3-on-ubuntu-20.04-150x46.png 150w\" sizes=\"(max-width: 358px) 100vw, 358px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>Then, run the following command to make sure that all installed packages on the server are updated to the latest available version<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ sudo apt update &amp;&amp; sudo apt upgrade<\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2-Install-PHP\"><\/span>2. Install PHP<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>Magento 2.4.3 is fully compatible with PHP 7.4. To install the latest stable version of PHP 7.4 and all necessary modules, run:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ sudo apt install php7.4-{bcmath,common,curl,fpm,gd,intl,mbstring,mysql,soap,xml,xsl,zip,cli}<\/pre>\r\n\r\n\r\n\r\n<p>Once completed, we can increase some PHP variable values to meet Magento&#8217;s minimum requirements.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ sudo sed -i \"s\/memory_limit = .*\/memory_limit = 768M\/\" \/etc\/php\/7.4\/fpm\/php.ini\r\n$ sudo sed -i \"s\/upload_max_filesize = .*\/upload_max_filesize = 128M\/\" \/etc\/php\/7.4\/fpm\/php.ini\r\n$ sudo sed -i \"s\/zlib.output_compression = .*\/zlib.output_compression = on\/\" \/etc\/php\/7.4\/fpm\/php.ini\r\n$ sudo sed -i \"s\/max_execution_time = .*\/max_execution_time = 18000\/\" \/etc\/php\/7.4\/fpm\/php.ini<\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3-Install-Web-server\"><\/span>3. Install Web server<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>In this tutorial, we are going to use nginx the web server, you can check our other <a href=\"https:\/\/www.rosehosting.com\/blog\" target=\"_blank\" rel=\"noreferrer noopener\">blog posts<\/a> if you want to use Apache.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ sudo apt install nginx<\/pre>\r\n\r\n\r\n\r\n<p>Now, we need to create an nginx server block for our domain.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ sudo nano \/etc\/nginx\/sites-enabled\/magento.conf<\/pre>\r\n\r\n\r\n\r\n<p>Then insert the following into the configuration file.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">upstream fastcgi_backend {\r\nserver unix:\/run\/php\/php7.4-fpm.sock;\r\n}\r\n\r\nserver {\r\nserver_name yourdomain.com;\r\nlisten 80;\r\nset $MAGE_ROOT \/opt\/magento2;\r\nset $MAGE_MODE developer; # or production\r\n\r\naccess_log \/var\/log\/nginx\/magento2-access.log;\r\nerror_log \/var\/log\/nginx\/magento2-error.log;\r\n\r\ninclude \/opt\/magento2\/nginx.conf.sample;\r\n}<\/pre>\r\n\r\n\r\n\r\n<p>Save the file then exit. To test the configuration file we can run this command<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ sudo nginx -t<\/pre>\r\n\r\n\r\n\r\n<p>If everything is okay and no error message, we can reload nginx.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ sudo systemctl reload nginx<\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4-Install-MariaDB-Server\"><\/span>4. Install MariaDB Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>Run the following command to install the latest MariaDB server from the official Ubuntu repositories:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ sudo apt install mariadb-server<\/pre>\r\n\r\n\r\n\r\n<p>Once installed, we can proceed with creating a new database and its user for our Magento website.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ sudo mysql<\/pre>\r\n\r\n\r\n\r\n<p>The command above will bring you to MySQL\/MariaDB shell without a password because by default root does not have a password. If you want to secure your MariaDB installation, you can run the following command to improve the security of your MySQL server installation (answering with \u2018Y\u2019 to every prompt is highly recommended):<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ mysql_secure_installation<\/pre>\r\n\r\n\r\n\r\n<p>If you prefer to run the mysql_secure_installation, then you need to run the command below to log in to MySQL\/MariaDB shell.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ mysql -u root -p<\/pre>\r\n\r\n\r\n\r\n<p>You will be asked for the password you created earlier when running <strong><em>mysql_secure_installation<\/em><\/strong>, type the password then hit enter. Once logged in, we can issue these commands below to create a database and password for our Magento website. Remember, you would want to replace &#8216;<strong>m0d1fyth15<\/strong>&#8216; with a stronger password.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">mysql&gt; CREATE USER 'magento'@'localhost' IDENTIFIED WITH mysql_native_password BY 'm0d1fyth15';<br \/>mysql&gt; CREATE DATABASE magentodb;<br \/>mysql&gt; GRANT ALL PRIVILEGES ON magentodb.* TO 'magento'@'localhost';<br \/>mysql&gt; FLUSH PRIVILEGES;<br \/>mysql&gt; \\q<\/pre>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"640\" height=\"359\" class=\"wp-image-39448\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/configuring-magento-2.4.3-on-ubuntu-20.04.png\" alt=\"configuring magento 2.4.3 on ubuntu 20.04\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/configuring-magento-2.4.3-on-ubuntu-20.04.png 640w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/configuring-magento-2.4.3-on-ubuntu-20.04-300x168.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/configuring-magento-2.4.3-on-ubuntu-20.04-150x84.png 150w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/figure>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"5-Install-Elastic-Search\"><\/span>5. Install Elastic Search<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">Add Elasticseach Repository<\/h3>\r\n\r\n\r\n\r\n<p>Starting Magento 2.4, all Magento installations must be configured to use Elasticsearch as the catalog search solution. And since Elasticsearch is not available in the Ubuntu 20.04 repository, we will need to add the Elasticsearch repository to our system.<\/p>\r\n\r\n\r\n\r\n<p>First, install the required dependencies with the following command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ sudo apt install apt-transport-https ca-certificates gnupg2 -y<\/pre>\r\n\r\n\r\n\r\n<p>Then, we need to import the GPG key with the following command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ wget -qO - https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch | sudo apt-key add -<\/pre>\r\n\r\n\r\n\r\n<p>At last, we can run the following command to add the Elasticsearch repository:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo sh -c 'echo \"deb https:\/\/artifacts.elastic.co\/packages\/7.x\/apt stable main\" &gt; \/etc\/apt\/sources.list.d\/elastic-7.x.list'<\/pre>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">Install Elasticsearch<\/h3>\r\n\r\n\r\n\r\n<p>We need to update the repository cache to be able to install the Elasticsearch with the following command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ sudo apt update -y<br \/>$ sudo apt install elasticsearch -y<\/pre>\r\n\r\n\r\n\r\n<p>That&#8217;s it, elasticsearch has been successfully installed. We can enable the service and start it by running this command below:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ sudo systemctl --now enable elasticsearch<\/pre>\r\n\r\n\r\n\r\n<p>To verify whether Elasticsearch is running or not we can run the following command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ curl -X GET \"localhost:9200\"<\/pre>\r\n\r\n\r\n\r\n<p>You will be presented with a message like this.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">{<br \/>\"name\" : \"ubuntu20\",<br \/>\"cluster_name\" : \"elasticsearch\",<br \/>\"cluster_uuid\" : \"FKnwn1-fSYm54T3dv7a6UQ\",<br \/>\"version\" : {<br \/>\"number\" : \"7.15.0\",<br \/>\"build_flavor\" : \"default\",<br \/>\"build_type\" : \"deb\",<br \/>\"build_hash\" : \"79d65f6e357953a5b3cbcc5e2c7c21073d89aa29\",<br \/>\"build_date\" : \"2021-09-16T03:05:29.143308416Z\",<br \/>\"build_snapshot\" : false,<br \/>\"lucene_version\" : \"8.9.0\",<br \/>\"minimum_wire_compatibility_version\" : \"6.8.0\",<br \/>\"minimum_index_compatibility_version\" : \"6.0.0-beta1\"<br \/>},<br \/>\"tagline\" : \"You Know, for Search\"<br \/>}<\/pre>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"537\" height=\"292\" class=\"wp-image-39449\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/setting-up-magento-2.4.3-on-ubuntu-20.04.png\" alt=\"setting up magento 2.4.3 on ubuntu 20.04\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/setting-up-magento-2.4.3-on-ubuntu-20.04.png 537w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/setting-up-magento-2.4.3-on-ubuntu-20.04-300x163.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/setting-up-magento-2.4.3-on-ubuntu-20.04-150x82.png 150w\" sizes=\"(max-width: 537px) 100vw, 537px\" \/><\/figure>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"6-Install-Composer\"><\/span>6. Install Composer<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>The installation of Composer is fairly easy and straightforward.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ curl -sS https:\/\/getcomposer.org\/installer -o composer-setup.php<\/pre>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ sudo php composer-setup.php --install-dir=\/usr\/local\/bin --filename=composer<\/pre>\r\n\r\n\r\n\r\n<p>That\u2019s it. You have successfully installed Composer on your system and have made it available for global use by storing it to \/usr\/local\/bin\/. To check the Composer version you can run the following command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ composer -V<\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"7-Download-and-Install-Magento\"><\/span>7. Download and Install Magento<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>In this tutorial, we will install Magento 2.4.3 using composer, it is the recommended installation method for most situations. To proceed with this, you need to create an access key. You can create an account at the magento.com website and navigate to <a href=\"https:\/\/marketplace.magento.com\/customer\/accessKeys\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/marketplace.magento.com\/customer\/accessKeys\/<\/a> to create an access key.<\/p>\r\n\r\n\r\n\r\n<p>Once an access key is created, you can run this command in your SSH session.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ composer create-project --repository-url=https:\/\/repo.magento.com\/ magento\/project-community-edition=2.4.3 \/opt\/magento2<\/pre>\r\n\r\n\r\n\r\n<p>Running the command above, you will be asked for your username and password. This is the information you need to fill.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">Username: YOUR_PUBLIC_KEY<br \/>Password: YOUR_PRIVATE_KEY<\/pre>\r\n\r\n\r\n\r\n<p>Please note, when typing or pasting the password\/private key, you would not see the password string, just paste it and hit ENTER and composer with start downloading Magento 2. Magento files will be downloaded to directory \/opt\/magento2, if you want to use another path you can edit the command above and use another location.<\/p>\r\n\r\n\r\n\r\n<p>Once downloaded, you can start the installation by running the command below.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ cd \/opt\/magento2<\/pre>\r\n\r\n\r\n\r\n<p>Before running the command below, you would want to edit the domain name, email address, and admin password.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ sudo bin\/magento setup:install \\<br \/>--base-url=http:\/\/yourdomain.com \\<br \/>--db-host=localhost \\<br \/>--db-name=magentodb \\<br \/>--db-user=magento \\<br \/>--db-password=magento \\<br \/>--admin-firstname=admin \\<br \/>--admin-lastname=admin \\<br \/>--admin-email=admin@admin.com \\<br \/>--admin-user=admin \\<br \/>--admin-password=admin123 \\<br \/>--language=en_US \\<br \/>--currency=USD \\<br \/>--timezone=America\/Chicago \\<br \/>--use-rewrites=1<\/pre>\r\n\r\n\r\n\r\n<p>Wait for the installation process until it finishes.<\/p>\r\n\r\n\r\n\r\n<p>You should see the following output:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\"><code>[SUCCESS]: Magento installation complete.\r\n[SUCCESS]: Magento Admin URI: \/admin_1iwnbd<\/code><\/pre>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"670\" height=\"95\" class=\"wp-image-39450\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/set-up-and-configure-magento-2.4.3.-on-ubuntu-20.04.png\" alt=\"set up and configure magento 2.4.3. on ubuntu 20.04\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/set-up-and-configure-magento-2.4.3.-on-ubuntu-20.04.png 670w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/set-up-and-configure-magento-2.4.3.-on-ubuntu-20.04-300x43.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/set-up-and-configure-magento-2.4.3.-on-ubuntu-20.04-150x21.png 150w\" sizes=\"(max-width: 670px) 100vw, 670px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>Now, let&#8217;s correct the permissions.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ sudo chown -R www.data. \/opt\/magento2<\/pre>\r\n\r\n\r\n\r\n<p>By default, two-factor authentication is enabled. If you want to disable it, you can run the command below<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ sudo -u www-data bin\/magento module:disable Magento_TwoFactorAuth\r\n$ sudo -u www-data bin\/magento cache:flush<\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"8-Setup-Cron-jobs\"><\/span>8. Setup Cron jobs<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>Magento requires its cron jobs to run to automate its important system functions. Let\u2019s create the following cron job:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ sudo -u www-data bin\/magento cron:install<\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"9-Install-an-SSL-Certificate\"><\/span>9. Install an SSL Certificate<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>We\u2019re going to use and generate a free SSL certificate from Let\u2019s Encrypt. Install the required packages by running the following command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ sudo apt install certbot python3-certbot-nginx<br \/>Then run this command to install a new SSL certificate for your domain name, making sure that you replace 'yourdomain.com' to your actual domain or subdomain name:<\/pre>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ sudo certbot --nginx -d yourdomain.com -d www.yourdomain.com\r\n<\/pre>\r\n\r\n\r\n\r\n<p id=\"block-92167d96-91ff-41a7-a1d3-1fdbca1e1a4a\">Please select \u20182\u2019 and choose to redirect HTTP traffic to HTTPS:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\n1: No redirect - Make no further changes to the webserver configuration.\r\n2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for\r\nnew sites, or if you're confident your site works on HTTPS. You can undo this\r\nchange by editing your web server's configuration.\r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\nSelect the appropriate number [1-2] then [enter] (press 'c' to cancel): 2<\/pre>\r\n\r\n\r\n\r\n<p><br \/>Use the following Magento 2 CLI commands to update the Magento base-URL and the base-URL-secure values:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ cd \/opt\/magento2\/<br \/>$ sudo -u www-data bin\/magento setup:store-config:set --base-url=\"https:\/\/yourdomain.com\/\"<br \/>$ sudo -u www-data bin\/magento setup:store-config:set --base-url-secure=\"https:\/\/yourdomain.com\/\"<\/pre>\r\n\r\n\r\n\r\n<p>That&#8217;s it! You have successfully installed Magento 2.4.3 on your Ubuntu 20.04 server, you can navigate to your <code>https:\/\/yourdomain.com<\/code><\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1024\" height=\"530\" class=\"wp-image-39451\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/install-and-configure-magento-2.4.3.-on-ubuntu-20.04.png\" alt=\"install and configure magento 2.4.3. on ubuntu 20.04\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/install-and-configure-magento-2.4.3.-on-ubuntu-20.04.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/install-and-configure-magento-2.4.3.-on-ubuntu-20.04-300x155.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/install-and-configure-magento-2.4.3.-on-ubuntu-20.04-150x78.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/install-and-configure-magento-2.4.3.-on-ubuntu-20.04-768x398.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>And access Magento backend at <code>https:\/\/yourdomain.com\/admin_1iwnbd<\/code>. Please remember that your Magento Admin URI is provided when installing Magento using composer in the previous step.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1024\" height=\"528\" class=\"wp-image-39452\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-and-set-up-magento-2.4.3.-on-ubuntu-20.04.png\" alt=\"how to install and set up magento 2.4.3. on ubuntu 20.04\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-and-set-up-magento-2.4.3.-on-ubuntu-20.04.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-and-set-up-magento-2.4.3.-on-ubuntu-20.04-300x155.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-and-set-up-magento-2.4.3.-on-ubuntu-20.04-150x77.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-and-set-up-magento-2.4.3.-on-ubuntu-20.04-768x396.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>Of course, you don\u2019t have to install Magento 2.4.3 on your Ubuntu 20.04 server if you have a server with us, in which case you can simply ask our expert <a href=\"https:\/\/www.rosehosting.com\/linux-vps-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\">Linux hosting<\/a> admins to set all of this up for you, quickly and easily. They are available 24\u00d77 and will respond to your request immediately.<\/p>\r\n\r\n\r\n\r\n<p>PS. If you liked this post, please share it with your friends on social networks or simply leave a comment down in the comments section. Thank you.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Magento is a highly popular open-source e-commerce platform written in PHP. It is completely customizable to every user\u2019s requirements, thus &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How To Install Magento 2.4.3 on Ubuntu 20.04\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#more-39248\" aria-label=\"Read more about How To Install Magento 2.4.3 on Ubuntu 20.04\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":39445,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1711,13],"tags":[1603,983,1839],"class_list":["post-39248","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-e-commerce","category-tutorials","tag-how-to-install","tag-magento-2","tag-ubuntu-20-04","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Magento 2.4.3 on Ubuntu 20.04 | RoseHosting<\/title>\n<meta name=\"description\" content=\"In this ecommerce guide, you will learn how to install Magento 2.4.3 on Ubuntu 20.04, step by step tutorial.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Magento 2.4.3 on Ubuntu 20.04 | RoseHosting\" \/>\n<meta property=\"og:description\" content=\"In this ecommerce guide, you will learn how to install Magento 2.4.3 on Ubuntu 20.04, step by step tutorial.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2021-11-15T18:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-04T14:15:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-magento-2.4.3-on-ubuntu-20.04.jpg?v=1634289765\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Install Magento 2.4.3 on Ubuntu 20.04 | RoseHosting\" \/>\n<meta name=\"twitter:description\" content=\"In this ecommerce guide, you will learn how to install Magento 2.4.3 on Ubuntu 20.04, step by step tutorial.\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How To Install Magento 2.4.3 on Ubuntu 20.04\",\"datePublished\":\"2021-11-15T18:30:00+00:00\",\"dateModified\":\"2022-10-04T14:15:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/\"},\"wordCount\":1100,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-magento-2.4.3-on-ubuntu-20.04.jpg\",\"keywords\":[\"how to install\",\"magento 2\",\"Ubuntu 20.04\"],\"articleSection\":[\"E-Commerce\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/\",\"name\":\"How to Install Magento 2.4.3 on Ubuntu 20.04 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-magento-2.4.3-on-ubuntu-20.04.jpg\",\"datePublished\":\"2021-11-15T18:30:00+00:00\",\"dateModified\":\"2022-10-04T14:15:35+00:00\",\"description\":\"In this ecommerce guide, you will learn how to install Magento 2.4.3 on Ubuntu 20.04, step by step tutorial.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#primaryimage\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-magento-2.4.3-on-ubuntu-20.04.jpg\",\"contentUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-magento-2.4.3-on-ubuntu-20.04.jpg\",\"width\":742,\"height\":372,\"caption\":\"how to install magento 2.4.3 on ubuntu 20.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.rosehosting.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Install Magento 2.4.3 on Ubuntu 20.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#website\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/RoseHosting\",\"https:\/\/x.com\/rosehosting\",\"https:\/\/www.linkedin.com\/in\/rosehosting\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\/\/www.rosehosting.com\",\"https:\/\/www.facebook.com\/rosehosting.helpdesk\"],\"url\":\"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install Magento 2.4.3 on Ubuntu 20.04 | RoseHosting","description":"In this ecommerce guide, you will learn how to install Magento 2.4.3 on Ubuntu 20.04, step by step tutorial.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Magento 2.4.3 on Ubuntu 20.04 | RoseHosting","og_description":"In this ecommerce guide, you will learn how to install Magento 2.4.3 on Ubuntu 20.04, step by step tutorial.","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2021-11-15T18:30:00+00:00","article_modified_time":"2022-10-04T14:15:35+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-magento-2.4.3-on-ubuntu-20.04.jpg?v=1634289765","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_title":"How to Install Magento 2.4.3 on Ubuntu 20.04 | RoseHosting","twitter_description":"In this ecommerce guide, you will learn how to install Magento 2.4.3 on Ubuntu 20.04, step by step tutorial.","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How To Install Magento 2.4.3 on Ubuntu 20.04","datePublished":"2021-11-15T18:30:00+00:00","dateModified":"2022-10-04T14:15:35+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/"},"wordCount":1100,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-magento-2.4.3-on-ubuntu-20.04.jpg","keywords":["how to install","magento 2","Ubuntu 20.04"],"articleSection":["E-Commerce","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/","name":"How to Install Magento 2.4.3 on Ubuntu 20.04 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-magento-2.4.3-on-ubuntu-20.04.jpg","datePublished":"2021-11-15T18:30:00+00:00","dateModified":"2022-10-04T14:15:35+00:00","description":"In this ecommerce guide, you will learn how to install Magento 2.4.3 on Ubuntu 20.04, step by step tutorial.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-magento-2.4.3-on-ubuntu-20.04.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-magento-2.4.3-on-ubuntu-20.04.jpg","width":742,"height":372,"caption":"how to install magento 2.4.3 on ubuntu 20.04"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-3-on-ubuntu-20-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Install Magento 2.4.3 on Ubuntu 20.04"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/39248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=39248"}],"version-history":[{"count":12,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/39248\/revisions"}],"predecessor-version":[{"id":43249,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/39248\/revisions\/43249"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/39445"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=39248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=39248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=39248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}