{"id":12037,"date":"2024-08-09T06:03:15","date_gmt":"2024-08-09T06:03:15","guid":{"rendered":"https:\/\/greenwebpage.com\/community\/?p=12037"},"modified":"2024-08-19T04:20:30","modified_gmt":"2024-08-19T04:20:30","slug":"how-to-install-magento-on-ubuntu-24-04","status":"publish","type":"post","link":"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/","title":{"rendered":"How to Install Magento on Ubuntu 24.04"},"content":{"rendered":"\n<p><a id=\"post-12037-_heading=h.1fob9te\"><\/a><a href=\"https:\/\/business.adobe.com\/products\/magento\/magento-commerce.html\">Magento<\/a> is an eCommerce platform for building and managing online stores. It is highly scalable, making it suitable for businesses of all sizes. It offers numerous features, including product display customization and order management.<\/p>\n\n\n\n<p>Additionally, it supports various payment methods and shipping options, which can help grow your business.<\/p>\n\n\n\n<p>This detailed and comprehensive article will present you with the installation of Magento on U<a href=\"https:\/\/ubuntu.com\/blog\/tag\/ubuntu-24-04-lts\">buntu 24.04<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How To Install Magento on Ubuntu 24.04?<\/strong><\/h2>\n\n\n\n<p>Through this post, the following topic will be illustrated with real-time commands:<\/p>\n\n\n\n<p><a href=\"#How-to-Install-Required-Software-for-Magento-on-Ubuntu-24.04\">How to Install Required Software for Magento on Ubuntu 24.04?<\/a><\/p>\n\n\n\n<p><a href=\"#How-to-Install-Magento-on-Ubuntu-24.04\">How to Install Magento on Ubuntu 24.04?<\/a><\/p>\n\n\n\n<p><a href=\"#Conclusion\">Conclusion<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"How-to-Install-Required-Software-for-Magento-on-Ubuntu-24.04\"><strong>How to Install Required Software for Magento on Ubuntu 24.04?<\/strong><\/h2>\n\n\n\n<p>In the first part of this article, you will learn how to install the required software for Magento on the Ubuntu 24.04 system.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"How-to-Install-Apache2-Server-on-Ubuntu-24.04\"><strong>How to Install Apache2 Server on Ubuntu 24.04<\/strong><\/h3>\n\n\n\n<p>The following command can be utilized for installing Apache2 on Ubuntu 24.04 machine.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.17dp8vu\"><\/a>Step 1: Install Apache2 Server<\/h5>\n\n\n\n<p>For properly running the Magento on your system, install the Apache2 through the command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo apt install apache2 -y<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"950\" height=\"485\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-1.png\" alt=\"\" class=\"wp-image-12038\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-1.png 950w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-1-300x153.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-1-768x392.png 768w\" sizes=\"(max-width: 950px) 100vw, 950px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"948\" height=\"441\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-2.png\" alt=\"\" class=\"wp-image-12039\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-2.png 948w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-2-300x140.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-2-768x357.png 768w\" sizes=\"(max-width: 948px) 100vw, 948px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.3rdcrjn\"><\/a>Step 2: Check Apache2 Status<\/h5>\n\n\n\n<p>The Apache2 status can be verified using the \u201cstatus\u201d option with the command below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo systemctl status apache2<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"943\" height=\"443\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-3.png\" alt=\"\" class=\"wp-image-12040\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-3.png 943w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-3-300x141.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-3-768x361.png 768w\" sizes=\"(max-width: 943px) 100vw, 943px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>If you find that Apache2 is enabled and active, it shows that the Apache2 package has been configured without occurring any error.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"How-to-Install-PHP-Modules-on-Ubuntu-24.04\"><a id=\"post-12037-_heading=h.26in1rg\"><\/a><strong>How to Install PHP Modules on Ubuntu 24.04?<\/strong><\/h3>\n\n\n\n<p>Install PHP and Its associated modules through the following commands.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.lnxbz9\"><\/a>Step 1: Install PHP Modules<\/h5>\n\n\n\n<p>The Magento also relies on the PHP package. Therefore, you have to run the attached command to install the complete set of PHP modules::<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo apt install php libapache2-mod-php php-mysql php-cli php-curl php-xml php-mbstring php-zip php-intl php-bcmath php-gd -y<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"948\" height=\"509\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-4.png\" alt=\"\" class=\"wp-image-12041\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-4.png 948w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-4-300x161.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-4-768x412.png 768w\" sizes=\"(max-width: 948px) 100vw, 948px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"942\" height=\"377\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-5.png\" alt=\"\" class=\"wp-image-12042\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-5.png 942w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-5-300x120.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-5-768x307.png 768w\" sizes=\"(max-width: 942px) 100vw, 942px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.35nkun2\"><\/a>Step 2: Verify PHP Version<\/h5>\n\n\n\n<p>When the installation process completes, you can check the PHP version to ensure the latest release on your Ubuntu 24.04:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>php -v<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"939\" height=\"142\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-6.png\" alt=\"\" class=\"wp-image-12043\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-6.png 939w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-6-300x45.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-6-768x116.png 768w\" sizes=\"(max-width: 939px) 100vw, 939px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>The latest stable release, PHP 8.3.6 is now installed on your Ubuntu machine.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"How-to-Install-Composer-for-Magento-on-Ubuntu-24.04\"><a id=\"post-12037-_heading=h.1ksv4uv\"><\/a><strong>How to Install Composer for Magento on Ubuntu 24.04?<\/strong><\/h3>\n\n\n\n<p>Composer is essential for running the Magento on your Ubuntu machine, follow these steps for setting up.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.44sinio\"><\/a>Step 1: Install \u201ccurl\u201d<\/h5>\n\n\n\n<p>To install the Composer package, ensure that you have installed the \u201ccurl\u201d on your Ubuntu 24.04 system:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo apt install curl -y<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"904\" height=\"162\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-7.png\" alt=\"\" class=\"wp-image-12044\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-7.png 904w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-7-300x54.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-7-768x138.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-7-900x162.png 900w\" sizes=\"(max-width: 904px) 100vw, 904px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.2jxsxqh\"><\/a>Step 2: Install Composer<\/h5>\n\n\n\n<p>Next, use the \u201ccurl\u201d to install and set up the Composer on your system:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo curl -sS https:\/\/getcomposer.org\/installer | sudo php -- --install-dir=\/usr\/bin --filename=composer<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"950\" height=\"210\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-8.png\" alt=\"\" class=\"wp-image-12045\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-8.png 950w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-8-300x66.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-8-768x170.png 768w\" sizes=\"(max-width: 950px) 100vw, 950px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Composer 2.7.7 has been successfully installed in the \/usr\/bin directory.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.z337ya\"><\/a>Step 3: Confirm Composer Version<\/h5>\n\n\n\n<p>To print the installed version of the Composer, run this command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>composer --version<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"941\" height=\"118\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-9.png\" alt=\"\" class=\"wp-image-12046\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-9.png 941w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-9-300x38.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-9-768x96.png 768w\" sizes=\"(max-width: 941px) 100vw, 941px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"How-to-install-MySQL-Package-on-Ubuntu-24.04\"><a id=\"post-12037-_heading=h.3j2qqm3\"><\/a><strong>How to install MySQL Package on Ubuntu 24.04?<\/strong><\/h3>\n\n\n\n<p>Perform these steps to install MySQL for Magento database management.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.1y810tw\"><\/a>Step 1: Install MySQL server<\/h5>\n\n\n\n<p>Magento depends on a database to store all its data, so it is essential to install the MySQL server package on your Ubuntu 24.04:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo apt install mysql-server -y<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"948\" height=\"506\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-10.png\" alt=\"\" class=\"wp-image-12047\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-10.png 948w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-10-300x160.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-10-768x410.png 768w\" sizes=\"(max-width: 948px) 100vw, 948px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"945\" height=\"484\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-11.png\" alt=\"\" class=\"wp-image-12048\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-11.png 945w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-11-300x154.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-11-768x393.png 768w\" sizes=\"(max-width: 945px) 100vw, 945px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>The installation process of the MySQL server is completed without any errors.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.4i7ojhp\"><\/a>Step 2: Check MySQL Version<\/h5>\n\n\n\n<p>Run this simple command to ensure the installed version of MySQL on your Ubuntu machine:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>mysql --version<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"946\" height=\"74\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-12.png\" alt=\"\" class=\"wp-image-12049\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-12.png 946w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-12-300x23.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-12-768x60.png 768w\" sizes=\"(max-width: 946px) 100vw, 946px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.2xcytpi\"><\/a>Step 3: Confirm MySQL Status<\/h5>\n\n\n\n<p>Make sure that the MySQL server is running on your system:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo systemctl status mysql<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"949\" height=\"395\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-13.png\" alt=\"\" class=\"wp-image-12050\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-13.png 949w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-13-300x125.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-13-768x320.png 768w\" sizes=\"(max-width: 949px) 100vw, 949px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.1ci93xb\"><\/a>Step 4: Secure the MySQL installation<\/h5>\n\n\n\n<p>Execute this important command to secure and protect your MySQL server from security vulnerabilities:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo mysql_secure_installation<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"944\" height=\"501\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-14.png\" alt=\"\" class=\"wp-image-12051\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-14.png 944w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-14-300x159.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-14-768x408.png 768w\" sizes=\"(max-width: 944px) 100vw, 944px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"947\" height=\"491\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-15.png\" alt=\"\" class=\"wp-image-12052\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-15.png 947w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-15-300x156.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-15-768x398.png 768w\" sizes=\"(max-width: 947px) 100vw, 947px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"946\" height=\"515\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-16.png\" alt=\"\" class=\"wp-image-12053\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-16.png 946w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-16-300x163.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-16-768x418.png 768w\" sizes=\"(max-width: 946px) 100vw, 946px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"949\" height=\"265\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-17.png\" alt=\"\" class=\"wp-image-12054\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-17.png 949w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-17-300x84.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-17-768x214.png 768w\" sizes=\"(max-width: 949px) 100vw, 949px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Respond to the prompt questions to ensure that your database is secure to store data for Magento.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.2bn6wsx\"><\/a><strong>How to Install Elasticsearch for Magento on Ubuntu 24.04?<\/strong><\/h3>\n\n\n\n<p>You can utilize Elasticsearch, a search engine by installing it through the following commands.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.qsh70q\"><\/a>Step 1: Install \u201capt-transport-https\u201d Package<\/h5>\n\n\n\n<p>To allow \u201cAPT\u201d to use HTTPS for fetching and downloading files from repositories, execute the provided command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo apt install apt-transport-https -y<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"941\" height=\"186\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-18.png\" alt=\"\" class=\"wp-image-12055\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-18.png 941w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-18-300x59.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-18-768x152.png 768w\" sizes=\"(max-width: 941px) 100vw, 941px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.3as4poj\"><\/a>Step 2: Download GPG key for Elasticsearch<\/h5>\n\n\n\n<p>Run the command to download the GPG key for Elasticsearch:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>wget -qO - https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch | sudo gpg --dearmor -o \/usr\/share\/keyrings\/elasticsearch-keyring.gpg<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"949\" height=\"73\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-19.png\" alt=\"\" class=\"wp-image-12056\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-19.png 949w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-19-300x23.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-19-768x59.png 768w\" sizes=\"(max-width: 949px) 100vw, 949px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>This is required to verify the authenticity of the Elasticsearch packages.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.1pxezwc\"><\/a>Step 3: Add the Elasticsearch Repository<\/h5>\n\n\n\n<p>Next, add the Elasticsearch repository to your system\u2019s sources:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>echo \"deb [signed-by=\/usr\/share\/keyrings\/elasticsearch-keyring.gpg] https:\/\/artifacts.elastic.co\/packages\/8.x\/apt stable main\" | sudo tee \/etc\/apt\/sources.list.d\/elastic-8.x.list<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"948\" height=\"140\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-20.png\" alt=\"\" class=\"wp-image-12057\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-20.png 948w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-20-300x44.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-20-768x113.png 768w\" sizes=\"(max-width: 948px) 100vw, 948px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>The above command is used to get access to Elasticsearch packages on your Ubuntu 24.04 system.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.49x2ik5\"><\/a>Step 4: Install Elasticsearch<\/h5>\n\n\n\n<p>Once the above steps have been completed, update your package list and install Elasticsearch via the command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo apt update &amp;&amp; sudo apt install elasticsearch -y<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"945\" height=\"530\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-21.png\" alt=\"\" class=\"wp-image-12058\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-21.png 945w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-21-300x168.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-21-768x431.png 768w\" sizes=\"(max-width: 945px) 100vw, 945px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"947\" height=\"508\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-22.png\" alt=\"\" class=\"wp-image-12059\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-22.png 947w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-22-300x161.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-22-768x412.png 768w\" sizes=\"(max-width: 947px) 100vw, 947px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.2p2csry\"><\/a>Step 5: Enable Elasticsearch Service<\/h5>\n\n\n\n<p>Run this essential command to enable the Elasticsearch service to start on boot, automatically:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo systemctl enable elasticsearch.service<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"950\" height=\"94\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-23.png\" alt=\"\" class=\"wp-image-12060\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-23.png 950w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-23-300x30.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-23-768x76.png 768w\" sizes=\"(max-width: 950px) 100vw, 950px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.3o7alnk\"><\/a>Step 6: Start Elasticsearch Service<\/h5>\n\n\n\n<p>Start the Elasticsearch service by utilizing the \u201cstart\u201d option:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo systemctl start elasticsearch.service<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"937\" height=\"51\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-24.png\" alt=\"\" class=\"wp-image-12061\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-24.png 937w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-24-300x16.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-24-768x42.png 768w\" sizes=\"(max-width: 937px) 100vw, 937px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.23ckvvd\"><\/a>Step 7: Check Elasticsearch Service Status<\/h5>\n\n\n\n<p>Finally, confirm that the Elasticsearch service is configured and running correctly on your Ubuntu 24.04 system:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo systemctl status elasticsearch.service<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"948\" height=\"462\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-25.png\" alt=\"\" class=\"wp-image-12062\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-25.png 948w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-25-300x146.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-25-768x374.png 768w\" sizes=\"(max-width: 948px) 100vw, 948px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"How-to-Configure-Elasticsearch-for-Magento\"><a id=\"post-12037-_heading=h.ihv636\"><\/a><strong>How to Configure Elasticsearch for Magento?<\/strong><\/h3>\n\n\n\n<p>Utilize the below steps to configure Elasticsearch for Magento on the Ubuntu 24.04 system.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.32hioqz\"><\/a>Step 1: Configure Elasticsearch for Magento<\/h5>\n\n\n\n<p>Access and modify the Elasticsearch configuration file for Magento:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo nano \/etc\/elasticsearch\/elasticsearch.yml<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"947\" height=\"51\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-26.png\" alt=\"\" class=\"wp-image-12063\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-26.png 947w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-26-300x16.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-26-768x41.png 768w\" sizes=\"(max-width: 947px) 100vw, 947px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Make sure to modify and update the following settings:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>cluster.name: \"magento 2.4.7\" <br>node.name: \"ubuntu\" <br>network.host: 127.0.0.1 <br>http.port: 9200 <br>xpack.security.enabled: false<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"903\" height=\"576\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-27.png\" alt=\"\" class=\"wp-image-12064\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-27.png 903w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-27-300x191.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-27-768x490.png 768w\" sizes=\"(max-width: 903px) 100vw, 903px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"891\" height=\"533\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-28.png\" alt=\"\" class=\"wp-image-12065\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-28.png 891w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-28-300x179.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-28-768x459.png 768w\" sizes=\"(max-width: 891px) 100vw, 891px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"884\" height=\"530\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-29.png\" alt=\"\" class=\"wp-image-12066\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-29.png 884w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-29-300x180.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-29-768x460.png 768w\" sizes=\"(max-width: 884px) 100vw, 884px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Return to the main terminal window after saving the changes.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.1hmsyys\"><\/a>Step 2: Reload Elasticsearch<\/h5>\n\n\n\n<p>Reload the system configuration to apply the changes:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo systemctl daemon-reload<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"949\" height=\"48\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-30.png\" alt=\"\" class=\"wp-image-12067\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-30.png 949w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-30-300x15.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-30-768x39.png 768w\" sizes=\"(max-width: 949px) 100vw, 949px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.41mghml\"><\/a>Step 3: Restart Elasticsearch<\/h5>\n\n\n\n<p>Also, run the command to restart the Elasticsearch service to update the new configuration:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo systemctl restart elasticsearch<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"952\" height=\"52\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-31.png\" alt=\"\" class=\"wp-image-12068\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-31.png 952w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-31-300x16.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-31-768x42.png 768w\" sizes=\"(max-width: 952px) 100vw, 952px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.2grqrue\"><\/a>Step 4: Test Elasticsearch<\/h5>\n\n\n\n<p>You can run the below command to verify that Elasticsearch is properly configured and running on your Ubuntu 24.04 machine:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>curl -XGET 'http:\/\/localhost:9200'<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"926\" height=\"442\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-32.png\" alt=\"\" class=\"wp-image-12069\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-32.png 926w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-32-300x143.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-32-768x367.png 768w\" sizes=\"(max-width: 926px) 100vw, 926px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>If you see the above-mentioned output, it means that Elasticsearch is running on your Ubuntu 24.04 machine.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"How-to-Install-Magento-on-Ubuntu-24.04\"><a id=\"post-12037-_heading=h.vx1227\"><\/a><strong>How to Install Magento on Ubuntu 24.04?<\/strong><\/h2>\n\n\n\n<p>Learn how to Install Magento, an eCommerce platform, on Ubuntu 24.04 through this guide.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.3fwokq0\"><\/a>Step 1: Setup MySQL Database<\/h5>\n\n\n\n<p>Upon successfully installing and configuring the required software packages, let\u2019s start the installation process of Magento by creating the MySQL database for Magento:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo mysql -u root -p<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"947\" height=\"511\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-33.png\" alt=\"\" class=\"wp-image-12070\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-33.png 947w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-33-300x162.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-33-768x414.png 768w\" sizes=\"(max-width: 947px) 100vw, 947px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Type your script, such as given below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>CREATE DATABASE magento; <br>CREATE USER 'magento_gwp'@'localhost' IDENTIFIED BY 'Pass@123'; <br>GRANT ALL PRIVILEGES ON magento.* TO 'magento_gwp'@'localhost'; <br>FLUSH PRIVILEGES; <br>EXIT;<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"944\" height=\"376\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-34.png\" alt=\"\" class=\"wp-image-12071\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-34.png 944w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-34-300x119.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-34-768x306.png 768w\" sizes=\"(max-width: 944px) 100vw, 944px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>This SQL script creates a database \u201cmagento\u201d and a user \u201cmagento_gwp\u201d with a strong password. You are also required to grant all privileges on the Magento database to the specified user.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.1v1yuxt\"><\/a>Step 2: Set Directory (\/var\/www\/html) Permissions<\/h5>\n\n\n\n<p>The following command is used to change the ownership of all files and directories within \u201c\/var\/www\/html\u201d directory to the current user:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo chown -R $USER:$USER \/var\/www\/html<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"72\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-35.png\" alt=\"\" class=\"wp-image-12072\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-35.png 940w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-35-300x23.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-35-768x59.png 768w\" sizes=\"(max-width: 940px) 100vw, 940px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Use the command to set the proper permissions to \u201c\/var\/www\/html\u201d directory:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo chmod -R 755 \/var\/www\/html<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"51\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-36.png\" alt=\"\" class=\"wp-image-12073\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-36.png 908w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-36-300x17.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-36-768x43.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-36-900x51.png 900w\" sizes=\"(max-width: 908px) 100vw, 908px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>The above two commands are essential for setting permissions, which allow the web server to read and execute files while restricting access to authorized users only.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.4f1mdlm\"><\/a>Step 3: Create Magento Access Key<\/h5>\n\n\n\n<p>To create the Magento access key:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Log in to your Magento account.<\/li>\n\n\n\n<li>Go to <strong>My Profile<\/strong>.<\/li>\n\n\n\n<li>Locate the <strong>Access Key<\/strong> in the Marketplace.<\/li>\n\n\n\n<li>Create a <strong>New Access Key<\/strong>.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>https:\/\/account.magento.com\/customer\/account\/login\/<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1298\" height=\"691\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-37.png\" alt=\"\" class=\"wp-image-12074\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-37.png 1298w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-37-300x160.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-37-1024x545.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-37-768x409.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-37-1296x691.png 1296w\" sizes=\"(max-width: 1298px) 100vw, 1298px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1285\" height=\"547\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-38.png\" alt=\"\" class=\"wp-image-12075\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-38.png 1285w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-38-300x128.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-38-1024x436.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-38-768x327.png 768w\" sizes=\"(max-width: 1285px) 100vw, 1285px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1296\" height=\"642\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-39.png\" alt=\"\" class=\"wp-image-12076\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-39.png 1296w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-39-300x149.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-39-1024x507.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-39-768x380.png 768w\" sizes=\"(max-width: 1296px) 100vw, 1296px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1299\" height=\"611\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-40.png\" alt=\"\" class=\"wp-image-12077\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-40.png 1299w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-40-300x141.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-40-1024x482.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-40-768x361.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-40-1296x611.png 1296w\" sizes=\"(max-width: 1299px) 100vw, 1299px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>The Magento Access Keys are used to authenticate access to the Magento repository when using Composer to install Magento software.<\/p>\n\n\n\n<p><strong>Note: <\/strong>The Magento access keys are confidential therefore do not share with others.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.2u6wntf\"><\/a>Step 4: Create a Magento Project<\/h5>\n\n\n\n<p>Now, utilize the following script to create a new Magento project in the \u201c\/var\/www\/html\/magento\u201d directory:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>composer create-project --repository-url=https:\/\/repo.magento.com\/ magento\/project-community-edition \/var\/www\/html\/magento<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"949\" height=\"534\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-41.png\" alt=\"\" class=\"wp-image-12078\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-41.png 949w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-41-300x169.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-41-768x432.png 768w\" sizes=\"(max-width: 949px) 100vw, 949px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"949\" height=\"412\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-42.png\" alt=\"\" class=\"wp-image-12079\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-42.png 949w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-42-300x130.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-42-768x333.png 768w\" sizes=\"(max-width: 949px) 100vw, 949px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>During the configuration process, you will be prompted to enter the Public Key and Private Key that you created via Magento Access Keys.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.19c6y18\"><\/a>Step 5: Set File Permissions for Magento<\/h5>\n\n\n\n<p>Execute the command to set the ownership of the \u201c\/var\/www\/html\/magento\u201d directory to the specified user and group:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo chown -R www-data:www-data \/var\/www\/html\/magento<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"945\" height=\"74\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-43.png\" alt=\"\" class=\"wp-image-12080\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-43.png 945w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-43-300x23.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-43-768x60.png 768w\" sizes=\"(max-width: 945px) 100vw, 945px\" \/><\/figure>\n\n\n\n<p>The following command ensures that the specified directories are accessible and executable by the owner and readable by others:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo find \/var\/www\/html\/magento -type d -exec chmod 755 {} \\;<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"946\" height=\"51\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-44.png\" alt=\"\" class=\"wp-image-12081\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-44.png 946w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-44-300x16.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-44-768x41.png 768w\" sizes=\"(max-width: 946px) 100vw, 946px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Also, run the command to set permissions that ensure files can be read by the owner and other users while preventing unauthorized changes:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo find \/var\/www\/html\/magento -type f -exec chmod 644 {} \\;<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"947\" height=\"48\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-45.png\" alt=\"\" class=\"wp-image-12082\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-45.png 947w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-45-300x15.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-45-768x39.png 768w\" sizes=\"(max-width: 947px) 100vw, 947px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.28h4qwu\"><\/a>Step 6: Install Magento Packages<\/h5>\n\n\n\n<p>Run the provided Magento setup script from the \u201c\/var\/www\/html\/magento\u201d directory, to complete the installation:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo php bin\/magento setup:install \\ <br>--base-url=http:\/\/localhost\/ \\ <br>--db-host=localhost \\ <br>--db-name=magento \\ <br>--db-user=magento_gwp \\ <br>--db-password=Pass@123 \\ <br>--admin-firstname=admin \\ <br>--admin-lastname=admin \\ <br>--admin-email=admin@example.com \\ <br>--admin-user=admin \\ <br>--admin-password=Admin123 \\ <br>--language=en_US \\ <br>--currency=USD \\ <br>--timezone=America\/Chicago \\ <br>--use-rewrites=1 <\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"943\" height=\"511\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-46.png\" alt=\"\" class=\"wp-image-12083\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-46.png 943w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-46-300x163.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-46-768x416.png 768w\" sizes=\"(max-width: 943px) 100vw, 943px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"948\" height=\"511\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-47.png\" alt=\"\" class=\"wp-image-12084\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-47.png 948w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-47-300x162.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-47-768x414.png 768w\" sizes=\"(max-width: 948px) 100vw, 948px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>While executing this command, ensure the MySQL database is configured correctly, use strong admin credentials, and set the correct URL and site settings.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"How-to-Configure-Apache2-for-Magento-on-Ubuntu-24.04\"><a id=\"post-12037-_heading=h.nmf14n\"><\/a><strong>How to Configure Apache2 for Magento on Ubuntu 24.04?<\/strong><\/h3>\n\n\n\n<p>For Magento, use these steps to configure Apache2 on Ubuntu 24.04.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.37m2jsg\"><\/a>Step 1: Configure Apache File for Magento<\/h5>\n\n\n\n<p>To run Magento, you will need an Apache configuration file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo nano \/etc\/apache2\/sites-available\/magento.conf<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"994\" height=\"50\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-48.png\" alt=\"\" class=\"wp-image-12085\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-48.png 994w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-48-300x15.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-48-768x39.png 768w\" sizes=\"(max-width: 994px) 100vw, 994px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Type your configuration script, for instance:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>&lt;VirtualHost *:80&gt; <br>ServerAdmin admin@localhost <br>DocumentRoot \/var\/www\/html\/magento <br>ServerName localhost <br><br>&lt;Directory \/var\/www\/html\/magento\/&gt; <br>Options Indexes FollowSymLinks <br>AllowOverride All <br>Require all granted <br>&lt;\/Directory&gt; <br><br>ErrorLog ${APACHE_LOG_DIR}\/error.log <br>CustomLog ${APACHE_LOG_DIR}\/access.log combined <br>&lt;\/VirtualHost&gt;<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"891\" height=\"578\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-49.png\" alt=\"\" class=\"wp-image-12086\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-49.png 891w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-49-300x195.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-49-768x498.png 768w\" sizes=\"(max-width: 891px) 100vw, 891px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Save the configuration settings for Magento and close the file.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.1mrcu09\"><\/a>Step 2: Enable the Magento Site and Apache modules<\/h5>\n\n\n\n<p>Utilize this command to enable the Apache configuration file, such as \u201cmagento.conf\u201d for Magento:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo a2ensite magento.conf<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"121\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-50.png\" alt=\"\" class=\"wp-image-12087\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-50.png 940w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-50-300x39.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-50-768x99.png 768w\" sizes=\"(max-width: 940px) 100vw, 940px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Run the command below to enable necessary Apache modules, such as the rewrite module:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo a2enmod rewrite<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"114\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-51.png\" alt=\"\" class=\"wp-image-12088\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-51.png 940w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-51-300x36.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-51-768x93.png 768w\" sizes=\"(max-width: 940px) 100vw, 940px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.46r0co2\"><\/a>Step 4: Restart the Apache Server<\/h5>\n\n\n\n<p>Update the changes by restarting the Apache web server from your Ubuntu 24.04 terminal:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>sudo systemctl restart apache2<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"48\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-52.png\" alt=\"\" class=\"wp-image-12089\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-52.png 940w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-52-300x15.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-52-768x39.png 768w\" sizes=\"(max-width: 940px) 100vw, 940px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>This command will restart the Apache2 server and apply the changes made to the configuration file.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a id=\"post-12037-_heading=h.2lwamvv\"><\/a>Step 5: Access Magento via \u201cLocalhost\u201d<\/h5>\n\n\n\n<p>You can now access Magento at your domain, such as localhost:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>localhost<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1236\" height=\"601\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-53.png\" alt=\"\" class=\"wp-image-12090\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-53.png 1236w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-53-300x146.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-53-1024x498.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/word-image-12037-53-768x373.png 768w\" sizes=\"(max-width: 1236px) 100vw, 1236px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>The <strong>Home Page<\/strong> on your web page shows that you have successfully installed Magento on Ubuntu 24.04 machine.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Conclusion\"><a id=\"post-12037-_heading=h.3l18frh\"><\/a><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>Magento can be installed on Ubuntu 24.04. First, install the required software packages, such as Apache2, PHP modules, Composer, MySQL server, and Elasticsearch. Then, install the Magento package on your Ubuntu machine using the Composer.<\/p>\n\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"<p>Magento is an eCommerce platform for building and managing online stores. It is highly scalable, making it suitable for businesses of all sizes. It offers numerous features, including product display customization and order management. Additionally, it supports various payment methods and shipping options, which can help grow your business. This detailed and comprehensive article will [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":12091,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[352,353,351,317],"class_list":["post-12037","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-cms","tag-ecommerce","tag-magento","tag-ubuntu-24-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Install Magento on Ubuntu 24.04 - Greenwebpage Community<\/title>\n<meta name=\"description\" content=\"This detailed and comprehensive article will present you with the installation of Magento on Ubuntu 24.04 LTS.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-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 on Ubuntu 24.04 - Greenwebpage Community\" \/>\n<meta property=\"og:description\" content=\"This detailed and comprehensive article will present you with the installation of Magento on Ubuntu 24.04 LTS.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Greenwebpage Community\" \/>\n<meta property=\"article:published_time\" content=\"2024-08-09T06:03:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-19T04:20:30+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/Install-Magento-on-Ubuntu-24.04.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Karim Buzdar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Karim Buzdar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"17 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/\"},\"author\":{\"name\":\"Karim Buzdar\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\"},\"headline\":\"How to Install Magento on Ubuntu 24.04\",\"datePublished\":\"2024-08-09T06:03:15+00:00\",\"dateModified\":\"2024-08-19T04:20:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/\"},\"wordCount\":1361,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/Install-Magento-on-Ubuntu-24.04.jpeg\",\"keywords\":[\"CMS\",\"Ecommerce\",\"Magento\",\"Ubuntu 24.04\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/\",\"name\":\"How to Install Magento on Ubuntu 24.04 - Greenwebpage Community\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/Install-Magento-on-Ubuntu-24.04.jpeg\",\"datePublished\":\"2024-08-09T06:03:15+00:00\",\"dateModified\":\"2024-08-19T04:20:30+00:00\",\"description\":\"This detailed and comprehensive article will present you with the installation of Magento on Ubuntu 24.04 LTS.\",\"breadcrumb\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/#primaryimage\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/Install-Magento-on-Ubuntu-24.04.jpeg\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/Install-Magento-on-Ubuntu-24.04.jpeg\",\"width\":1020,\"height\":600,\"caption\":\"Install Magento on Ubuntu 24.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/greenwebpage.com\/community\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Magento on Ubuntu 24.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"name\":\"Greenwebpage Community\",\"description\":\"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.\",\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/greenwebpage.com\/community\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\",\"name\":\"Greenwebpage Community\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"width\":512,\"height\":512,\"caption\":\"Greenwebpage Community\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\",\"name\":\"Karim Buzdar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"caption\":\"Karim Buzdar\"},\"sameAs\":[\"https:\/\/greenwebpage.com\"],\"url\":\"https:\/\/greenwebpage.com\/community\/author\/karim\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Magento on Ubuntu 24.04 - Greenwebpage Community","description":"This detailed and comprehensive article will present you with the installation of Magento on Ubuntu 24.04 LTS.","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:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Magento on Ubuntu 24.04 - Greenwebpage Community","og_description":"This detailed and comprehensive article will present you with the installation of Magento on Ubuntu 24.04 LTS.","og_url":"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/","og_site_name":"Greenwebpage Community","article_published_time":"2024-08-09T06:03:15+00:00","article_modified_time":"2024-08-19T04:20:30+00:00","og_image":[{"width":1020,"height":600,"url":"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/Install-Magento-on-Ubuntu-24.04.jpeg","type":"image\/jpeg"}],"author":"Karim Buzdar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Karim Buzdar","Est. reading time":"17 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/#article","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/"},"author":{"name":"Karim Buzdar","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8"},"headline":"How to Install Magento on Ubuntu 24.04","datePublished":"2024-08-09T06:03:15+00:00","dateModified":"2024-08-19T04:20:30+00:00","mainEntityOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/"},"wordCount":1361,"commentCount":0,"publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/Install-Magento-on-Ubuntu-24.04.jpeg","keywords":["CMS","Ecommerce","Magento","Ubuntu 24.04"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/","url":"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/","name":"How to Install Magento on Ubuntu 24.04 - Greenwebpage Community","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/#website"},"primaryImageOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/#primaryimage"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/Install-Magento-on-Ubuntu-24.04.jpeg","datePublished":"2024-08-09T06:03:15+00:00","dateModified":"2024-08-19T04:20:30+00:00","description":"This detailed and comprehensive article will present you with the installation of Magento on Ubuntu 24.04 LTS.","breadcrumb":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/#primaryimage","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/Install-Magento-on-Ubuntu-24.04.jpeg","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/08\/Install-Magento-on-Ubuntu-24.04.jpeg","width":1020,"height":600,"caption":"Install Magento on Ubuntu 24.04"},{"@type":"BreadcrumbList","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-magento-on-ubuntu-24-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/greenwebpage.com\/community\/"},{"@type":"ListItem","position":2,"name":"How to Install Magento on Ubuntu 24.04"}]},{"@type":"WebSite","@id":"https:\/\/greenwebpage.com\/community\/#website","url":"https:\/\/greenwebpage.com\/community\/","name":"Greenwebpage Community","description":"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.","publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/greenwebpage.com\/community\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/greenwebpage.com\/community\/#organization","name":"Greenwebpage Community","url":"https:\/\/greenwebpage.com\/community\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","width":512,"height":512,"caption":"Greenwebpage Community"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8","name":"Karim Buzdar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","caption":"Karim Buzdar"},"sameAs":["https:\/\/greenwebpage.com"],"url":"https:\/\/greenwebpage.com\/community\/author\/karim\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/12037","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/comments?post=12037"}],"version-history":[{"count":4,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/12037\/revisions"}],"predecessor-version":[{"id":12097,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/12037\/revisions\/12097"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media\/12091"}],"wp:attachment":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media?parent=12037"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/categories?post=12037"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/tags?post=12037"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}