{"id":40107,"date":"2022-02-02T12:30:00","date_gmt":"2022-02-02T18:30:00","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=40107"},"modified":"2022-06-03T03:31:25","modified_gmt":"2022-06-03T08:31:25","slug":"how-to-install-magento-2-4-with-openlitespeed-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-with-openlitespeed-on-ubuntu-20-04\/","title":{"rendered":"How to Install Magento 2.4 With OpenLiteSpeed on Ubuntu 20.04"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"742\" height=\"372\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/01\/how-to-install-magento-2.4-with-openlitespeed-on-ubuntu-20.04.jpg\" alt=\"how to install magento 2.4 with openlitespeed on ubuntu 20.04\" class=\"wp-image-40244\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/01\/how-to-install-magento-2.4-with-openlitespeed-on-ubuntu-20.04.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/01\/how-to-install-magento-2.4-with-openlitespeed-on-ubuntu-20.04-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/01\/how-to-install-magento-2.4-with-openlitespeed-on-ubuntu-20.04-150x75.jpg 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This blog post is about installing Magento 2.4 with OpenLiteSpeed as a web server on <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\">Ubuntu 20.04 OS<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Magento is an open-source e-commerce platform written in PHP that uses multiple PHP frameworks such as Symfony and Laminas. OpenLiteSpeed is an open-source web server that offers high performance, security and can be used for handling huge traffic for the website. Magento with a combination of OpenLiteSpeed can provide a very powerful and fast website performance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For this setup, we will need about 30 minutes for everything to be configured properly. Let&#8217;s get started!<\/p>\n\n\n\n<!--more-->\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 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-6a17b46450701\" 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-6a17b46450701\"  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-with-openlitespeed-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-with-openlitespeed-on-ubuntu-20-04\/#Step-1Update-the-System\" >Step 1.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-with-openlitespeed-on-ubuntu-20-04\/#Step-2-Install-OpenLiteSpeed\" >Step 2. Install OpenLiteSpeed<\/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-with-openlitespeed-on-ubuntu-20-04\/#Step-3-Change-the-HTTP-port\" >Step 3. Change the HTTP port<\/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-with-openlitespeed-on-ubuntu-20-04\/#Step-4-Install-PHP80\" >Step 4. Install PHP8.0<\/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-with-openlitespeed-on-ubuntu-20-04\/#Step-5-Install-MariaDB\" >Step 5. Install MariaDB<\/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-with-openlitespeed-on-ubuntu-20-04\/#Step-6-Install-Elasticsearch\" >Step 6. Install Elasticsearch<\/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-with-openlitespeed-on-ubuntu-20-04\/#Step-7-Create-Magento-Database-and-User\" >Step 7. Create Magento Database and User<\/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-with-openlitespeed-on-ubuntu-20-04\/#Step-8-Create-Magento-Virtual-Host-in-OpenLiteSpeed\" >Step 8. Create Magento Virtual Host in OpenLiteSpeed<\/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-with-openlitespeed-on-ubuntu-20-04\/#Step-9-Create-a-Listener-in-OpenLiteSpeed\" >Step 9. Create a Listener in OpenLiteSpeed<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-with-openlitespeed-on-ubuntu-20-04\/#Step-10-Enable-the-Rewrite-and-Auto-Load-from-htaccess\" >Step 10. Enable the Rewrite and Auto Load from .htaccess<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-with-openlitespeed-on-ubuntu-20-04\/#Step-11-Download-and-Install-Magento-24\" >Step 11. Download and Install Magento 2.4<\/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>\n\n\n\n<ul class=\"wp-block-list\"><li>Fresh install of Ubuntu 20.04<\/li><li>User privileges: root or non-root user with sudo privileges<\/li><li>VPS with at least 4GB of RAM (Our SSD 4 VPS plan)<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-1-update-the-system\"><span class=\"ez-toc-section\" id=\"Step-1Update-the-System\"><\/span>Step 1.Update the System<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before we start with installing the webserver and Magento we need to update the system:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt update -y &amp;&amp; sudo apt upgrade -y<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-2-install-openlitespeed\"><span class=\"ez-toc-section\" id=\"Step-2-Install-OpenLiteSpeed\"><\/span>Step 2. Install OpenLiteSpeed<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before we can install the OpenLiteSpeed web server we need to install the required dependencies.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt-get install build-essential libexpat1-dev libgeoip-dev libpcre3-dev zlib1g-dev libssl-dev libxml2-dev rcs libpng-dev<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Once, the dependencies are installed we need to add manually the repo of OpenLiteSpeed for Ubuntu 20.04<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">wget -O - http:\/\/rpms.litespeedtech.com\/debian\/enable_lst_debian_repo.sh | sudo bash<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Once, the repo is added you should receive the output below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> update the repo\nHit:1 http:\/\/us.archive.ubuntu.com\/ubuntu focal InRelease\nGet:2 http:\/\/us.archive.ubuntu.com\/ubuntu focal-updates InRelease [114 kB]\nIgn:3 http:\/\/rpms.litespeedtech.com\/debian focal InRelease\nGet:4 http:\/\/rpms.litespeedtech.com\/debian focal Release [1,646 B]\nGet:5 http:\/\/rpms.litespeedtech.com\/debian focal Release.gpg [836 B]\nGet:6 http:\/\/us.archive.ubuntu.com\/ubuntu focal-backports InRelease [108 kB]\nGet:7 http:\/\/us.archive.ubuntu.com\/ubuntu focal-security InRelease [114 kB]\nGet:8 http:\/\/rpms.litespeedtech.com\/debian focal\/main amd64 Packages [16.3 kB]\nFetched 355 kB in 5s (68.8 kB\/s)\nReading package lists... Done\n All done, congratulations and enjoy !<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now, when repo is added successfully, you can proceed to install the OpenLiteSpeed:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install openlitespeed<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Once, the OpenLiteSpeed is installed you can access it on port <b>7080<\/b>at &#8220;https:<b>your_ip_address<\/b>:7080&#8243;. But before accessing it you need to set the username and the password with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo \/usr\/local\/lsws\/admin\/misc\/admpass.sh<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">After successfully setting the username and password you should receive the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@vps:~# sudo \/usr\/local\/lsws\/admin\/misc\/admpass.sh\n\nPlease specify the user name of administrator.\nThis is the user name required to login the administration Web interface.\n\nUser name [admin]: <b>Your_admin_username<\/b>\n\nPlease specify the administrator's password.\nThis is the password required to login the administration Web interface.\n\nPassword:<b>Your_strong_password<\/b>\nRetype password:<b>Retype_Your_strong_password<\/b>\nAdministrator's username\/password is updated successfully!<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If everything is set up as in the previous steps, you should see the following screen after successful login:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"470\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag1-1024x470.png?v=1640384485\" alt=\"\" class=\"wp-image-40110\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag1-1024x470.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag1-300x138.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag1-150x69.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag1-768x352.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag1-1320x605.png 1320w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag1.png 1352w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n<h2><span class=\"ez-toc-section\" id=\"Step-3-Change-the-HTTP-port\"><\/span>Step 3. Change the HTTP port<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>By default the newly installed OpenLiteSpeed, is using the port &#8220;8080&#8221;. To change this port to the default HTTP port 80 do the following:<\/p>\n<p>On the left menu click on &#8220;Listeners&#8221; and on the Actions tab on the table, click on the &#8220;View&#8221; button.<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"352\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag2-1024x352.png?v=1640384503\" alt=\"\" class=\"wp-image-40111\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag2-1024x352.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag2-300x103.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag2-150x51.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag2-768x264.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag2-1320x453.png 1320w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag2.png 1340w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n<p>Then click on the &#8220;Edit&#8221; button:<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"373\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag3-1024x373.png?v=1640384519\" alt=\"\" class=\"wp-image-40112\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag3-1024x373.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag3-300x109.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag3-150x55.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag3-768x280.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag3-1320x481.png 1320w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag3.png 1343w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n<p>Change the port from 8088 to 80. Once changed save the changes as described in the picture below:<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"458\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag4-1024x458.png?v=1640384576\" alt=\"\" class=\"wp-image-40113\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag4-1024x458.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag4-300x134.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag4-150x67.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag4-768x344.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag4.png 1104w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n<p>When the changes will be made you need to restart the OpenLiteSpeed service by clicking on the green restart button.<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"418\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag5-1024x418.png?v=1640384588\" alt=\"\" class=\"wp-image-40114\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag5-1024x418.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag5-300x122.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag5-150x61.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag5-768x313.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag5.png 1127w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n<h2><span class=\"ez-toc-section\" id=\"Step-4-Install-PHP80\"><\/span>Step 4. Install PHP8.0<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now we need to install PHP8.0 along with the extensions because Magento 2.4 is a PHP framework and can not be operative without them.<\/p>\n<pre>sudo apt-get install lsphp80 lsphp80-mysql lsphp80-common lsphp80-opcache lsphp80-curl -y<\/pre>\n<p>By default the OpenLiteSpeed is using the PHP7.3 version. To check this simply access the following URL:<\/p>\n<pre>http:\/\/<b>your_ip_address<\/b>\/phpinfo.php<\/pre>\n<p>You should receive the following screen:<\/p>\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"930\" height=\"610\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag6.png\" alt=\"\" class=\"wp-image-40115\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag6.png 930w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag6-300x197.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag6-150x98.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag6-768x504.png 768w\" sizes=\"(max-width: 930px) 100vw, 930px\" \/><\/figure>\n\n\n<p>For OpenLiteSpeed to use the newly installed PHP8.0 version you need to open the &#8220;<b>\/usr\/local\/lsws\/conf\/httpd_config.conf<\/b>&#8221; file<\/p>\n<pre>sudo nano \/usr\/local\/lsws\/conf\/httpd_config.conf<\/pre>\n<p>Then find the &#8220;lsphp73\/bin\/lsphp&#8221; and replace it with &#8220;lsphp80\/bin\/lsphp&#8221;. Save the file and close it.<\/p>\n<p>You need to restart the OpenLiteSpeed service as described in Step 3. Now the OpenLiteSpeed will use the PHP8.0 as default PHP version.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-5-Install-MariaDB\"><\/span>Step 5. Install MariaDB<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To install the MariaDB database server execute the following command:<\/p>\n<pre>sudo apt install mariadb-server<\/pre>\n<p>To verify that the MariaDB is installed successful, execute the command below:<\/p>\n<pre>systemctl status mariadb.service<\/pre>\n<p>You should receive the following output<\/p>\n<pre>root@vps:~# systemctl status mariadb.service\n\u25cf mariadb.service - MariaDB 10.3.32 database server\n     Loaded: loaded (\/lib\/systemd\/system\/mariadb.service; enabled; vendor preset: enabled)\n     Active: active (running) since Fri 2021-12-24 18:42:18 UTC; 3min 43s ago\n       Docs: man:mysqld(8)\n             https:\/\/mariadb.com\/kb\/en\/library\/systemd\/\n   Main PID: 71030 (mysqld)\n     Status: \"Taking your SQL requests now...\"\n      Tasks: 31 (limit: 4608)\n     Memory: 67.9M\n     CGroup: \/system.slice\/mariadb.service\n             \u2514\u250071030 \/usr\/sbin\/mysqld\n<\/pre>\n<p>To enable the MariaDB service to start on system reboot execute the following command:<\/p>\n<pre>systemctl enable mariadb.service<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-6-Install-Elasticsearch\"><\/span>Step 6. Install Elasticsearch<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We need to install Elasticsearch, because without it we can not install the Magento in the next steps.<\/p>\n<p>Add the GPG Key and Elastic source list to the sources.list.d<\/p>\n<pre>curl -fsSL https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch | sudo apt-key add -\n\necho \"deb https:\/\/artifacts.elastic.co\/packages\/7.x\/apt stable main\" | sudo tee -a \/etc\/apt\/sources.list.d\/elastic-7.x.list\n<\/pre>\n<p>Update the repo and install the Elasticsearch with the following command:<\/p>\n<pre>sudo apt update &amp;&amp; sudo apt install elasticsearch<\/pre>\n<p>Start and enable the service.<\/p>\n<pre>sudo systemctl start elasticsearch &amp;&amp; sudo systemctl enable elasticsearch<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-7-Create-Magento-Database-and-User\"><\/span>Step 7. Create Magento Database and User<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Next, we need to create a Magento database, the Magento user, and grant the permissions for that user to the database.<\/p>\n<pre> CREATE USER 'magento'@'localhost' IDENTIFIED BY 'StrongPassword123';\n CREATE DATABASE magento;\n GRANT ALL PRIVILEGES ON magento.* TO 'magento'@'localhost';\n FLUSH PRIVILEGES;\n EXIT;\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-8-Create-Magento-Virtual-Host-in-OpenLiteSpeed\"><\/span>Step 8. Create Magento Virtual Host in OpenLiteSpeed<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To create a virtual host, execute the following commands on your server:<\/p>\n<pre>cd \/usr\/local\/lsws\nmkdir Magento2\nmkdir Magento2\/{conf,html,logs}\nchown lsadm:lsadm Magento2\/\n<\/pre>\n<p>Next, go to the WebAdmin console click on &#8220;Virtual Hosts&#8221; -&gt; &#8220;Add&#8221;.<br>&#8211;<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"348\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag7-1024x348.png?v=1640384621\" alt=\"\" class=\"wp-image-40116\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag7-1024x348.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag7-300x102.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag7-150x51.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag7-768x261.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag7-1320x448.png 1320w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag7.png 1354w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n<p>Enter the virtual host\u2019s name, the virtual host root file, and the virtual host configuration file.<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"551\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag8-1024x551.png?v=1640384633\" alt=\"\" class=\"wp-image-40117\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag8-1024x551.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag8-300x161.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag8-150x81.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag8-768x413.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag8.png 1098w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n<p>Next step is to set the Virtual Host, document root and enter the domain name. Click on the newly created virtual host and in the &#8220;General&#8221; tab you will notice the &#8220;Document Root&#8221; field.<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"539\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag9-1024x539.png?v=1640384646\" alt=\"\" class=\"wp-image-40118\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag9-1024x539.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag9-300x158.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag9-150x79.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag9-768x404.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag9.png 1126w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n<h2><span class=\"ez-toc-section\" id=\"Step-9-Create-a-Listener-in-OpenLiteSpeed\"><\/span>Step 9. Create a Listener in OpenLiteSpeed<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To create a listener click on &#8220;Listeners&#8221; and on the &#8220;View&#8221; button.<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"346\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag10-1024x346.png?v=1640384660\" alt=\"\" class=\"wp-image-40119\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag10-1024x346.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag10-300x101.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag10-150x51.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag10-768x259.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag10-1320x446.png 1320w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag10.png 1362w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n<p>Once, clicked on the newly opened window, in the &#8220;Virtual Host Mappings&#8221; click on &#8220;Add&#8221;.<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"419\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag11-1024x419.png?v=1640384674\" alt=\"\" class=\"wp-image-40120\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag11-1024x419.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag11-300x123.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag11-150x61.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag11-768x315.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag11-1320x541.png 1320w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag11.png 1338w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n<p>Select your newly created Virtual Host and the domain name. Save the changes and restart the OpenLiteSpeed service.<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"420\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag12-1024x420.png?v=1640384685\" alt=\"\" class=\"wp-image-40121\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag12-1024x420.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag12-300x123.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag12-150x62.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag12-768x315.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag12.png 1121w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n<h2><span class=\"ez-toc-section\" id=\"Step-10-Enable-the-Rewrite-and-Auto-Load-from-htaccess\"><\/span>Step 10. Enable the Rewrite and Auto Load from .htaccess<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>This is a very important step if you want your Magento to load properly. To do this click on the &#8220;Virtual Host&#8221; and from the Virtual Host List click on &#8220;Magento2&#8221;. In the &#8220;Rewrite&#8221; tab enable these options and save the changes as described in the picture below. Then you will need to restart the OpenLiteSpeed service.<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"418\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag13-1024x418.png?v=1640384697\" alt=\"\" class=\"wp-image-40122\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag13-1024x418.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag13-300x123.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag13-150x61.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag13-768x314.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/mag13.png 1126w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n<h2><span class=\"ez-toc-section\" id=\"Step-11-Download-and-Install-Magento-24\"><\/span>Step 11. Download and Install Magento 2.4<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Before we start with the installation process we need to install the Composer responsible for installing all the Magento components.<\/p>\n<pre>curl -sS https:\/\/getcomposer.org\/installer | php -- --install-dir=\/usr\/bin --filename=composer<\/pre>\n<p>Once, composer is installed go into the document root directory of your virtual host.<\/p>\n<pre>cd \/usr\/local\/lsws\/Magento2\/html<\/pre>\n<p>Clone the Magento2.4 from GitHub with the following command:<\/p>\n<pre>git clone https:\/\/github.com\/magento\/magento2.git \/usr\/local\/lsws\/Magento2\/html\/<\/pre>\n<p>Install the dependencies with composer.<\/p>\n<pre>composer install<\/pre>\n<p>Next step is to execute this long command with your previous created database credentials and URL and the Magento2 will be installed in a few seconds:<\/p>\n<pre>bin\/magento setup:install --base-url=http:\/\/<b>yourdomain.com<\/b>\/ --db-host=localhost --db-name=magento --db-user=magento --db-password=1strongPassword --admin-firstname=FirstName --admin-lastname=LastName --admin-email=your@emailaddress.com --admin-user=magentoadmin --admin-password=1strongPassword --language=en_US --currency=USD --timezone=America\/Chicago --use-rewrites=1<\/pre>\n<p>Once, the installation is completed you should receive the Magento Admin URL as output. Please make sure to save it.<\/p>\n<pre>[Progress: 848 \/ 851]\nDisabling Maintenance Mode:\n[Progress: 849 \/ 851]\nPost installation file permissions check...\nFor security, remove write permissions from these directories: '\/usr\/local\/lsws\/Magento2\/html\/app\/etc'\n[Progress: 850 \/ 851]\nWrite installation date...\n[Progress: 851 \/ 851]\n<b>[SUCCESS]: Magento installation complete.<\/b>\n<b>[SUCCESS]: Magento Admin URI: \/admin_19gqwc<\/b>\nNothing to import.\n<\/pre>\n<p>Congratulations you successfully installed Magento2.4 with OpenLiteSpeed webserver on Ubuntu 20.04 OS.<\/p>\n<p>If you find it difficult to install all this stuff, you can order a VPS submit a support ticket and our admins will do the rest. Do not hesitate to contact us anytime you want. We are available 24\/7.<\/p>\n<p>If you liked this post on how to <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\">install Magento2.4 with OpenLiteSpeed on Ubuntu 20.04<\/a>, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>","protected":false},"excerpt":{"rendered":"<p>This blog post is about installing Magento 2.4 with OpenLiteSpeed as a web server on Ubuntu 20.04 OS. Magento is &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Magento 2.4 With OpenLiteSpeed on Ubuntu 20.04\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-with-openlitespeed-on-ubuntu-20-04\/#more-40107\" aria-label=\"Read more about How to Install Magento 2.4 With OpenLiteSpeed on Ubuntu 20.04\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":40244,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,1698],"tags":[983,783,1839],"class_list":["post-40107","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-ubuntu","tag-magento-2","tag-openlitespeed","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.6.1 (Yoast SEO v27.7) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Magento 2.4 With OpenLiteSpeed on Ubuntu 20.04 | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Install Magento 2.4 With OpenLiteSpeed on Ubuntu 20.04 | RoseHosting\" \/>\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-with-openlitespeed-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 With OpenLiteSpeed on Ubuntu 20.04\" \/>\n<meta property=\"og:description\" content=\"How to Install Magento 2.4 With OpenLiteSpeed on Ubuntu 20.04 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-with-openlitespeed-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=\"2022-02-02T18:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:31:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/01\/how-to-install-magento-2.4-with-openlitespeed-on-ubuntu-20.04.jpg?v=1643119627\" \/>\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: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-with-openlitespeed-on-ubuntu-20-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-magento-2-4-with-openlitespeed-on-ubuntu-20-04\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Magento 2.4 With OpenLiteSpeed on Ubuntu 20.04\",\"datePublished\":\"2022-02-02T18:30:00+00:00\",\"dateModified\":\"2022-06-03T08:31:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-magento-2-4-with-openlitespeed-on-ubuntu-20-04\\\/\"},\"wordCount\":974,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-magento-2-4-with-openlitespeed-on-ubuntu-20-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/how-to-install-magento-2.4-with-openlitespeed-on-ubuntu-20.04.jpg\",\"keywords\":[\"magento 2\",\"openlitespeed\",\"Ubuntu 20.04\"],\"articleSection\":[\"Tutorials\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-magento-2-4-with-openlitespeed-on-ubuntu-20-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-magento-2-4-with-openlitespeed-on-ubuntu-20-04\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-magento-2-4-with-openlitespeed-on-ubuntu-20-04\\\/\",\"name\":\"How to Install Magento 2.4 With OpenLiteSpeed 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-with-openlitespeed-on-ubuntu-20-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-magento-2-4-with-openlitespeed-on-ubuntu-20-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/how-to-install-magento-2.4-with-openlitespeed-on-ubuntu-20.04.jpg\",\"datePublished\":\"2022-02-02T18:30:00+00:00\",\"dateModified\":\"2022-06-03T08:31:25+00:00\",\"description\":\"How to Install Magento 2.4 With OpenLiteSpeed on Ubuntu 20.04 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-magento-2-4-with-openlitespeed-on-ubuntu-20-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-magento-2-4-with-openlitespeed-on-ubuntu-20-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-magento-2-4-with-openlitespeed-on-ubuntu-20-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/how-to-install-magento-2.4-with-openlitespeed-on-ubuntu-20.04.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/how-to-install-magento-2.4-with-openlitespeed-on-ubuntu-20.04.jpg\",\"width\":742,\"height\":372,\"caption\":\"how to install magento 2.4 with openlitespeed on ubuntu 20.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-magento-2-4-with-openlitespeed-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 With OpenLiteSpeed 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 With OpenLiteSpeed on Ubuntu 20.04 | RoseHosting","description":"How to Install Magento 2.4 With OpenLiteSpeed on Ubuntu 20.04 | RoseHosting","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-with-openlitespeed-on-ubuntu-20-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Magento 2.4 With OpenLiteSpeed on Ubuntu 20.04","og_description":"How to Install Magento 2.4 With OpenLiteSpeed on Ubuntu 20.04 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-with-openlitespeed-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":"2022-02-02T18:30:00+00:00","article_modified_time":"2022-06-03T08:31:25+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/01\/how-to-install-magento-2.4-with-openlitespeed-on-ubuntu-20.04.jpg?v=1643119627","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","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-with-openlitespeed-on-ubuntu-20-04\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-with-openlitespeed-on-ubuntu-20-04\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Magento 2.4 With OpenLiteSpeed on Ubuntu 20.04","datePublished":"2022-02-02T18:30:00+00:00","dateModified":"2022-06-03T08:31:25+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-with-openlitespeed-on-ubuntu-20-04\/"},"wordCount":974,"commentCount":3,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-with-openlitespeed-on-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/01\/how-to-install-magento-2.4-with-openlitespeed-on-ubuntu-20.04.jpg","keywords":["magento 2","openlitespeed","Ubuntu 20.04"],"articleSection":["Tutorials","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-with-openlitespeed-on-ubuntu-20-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-with-openlitespeed-on-ubuntu-20-04\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-with-openlitespeed-on-ubuntu-20-04\/","name":"How to Install Magento 2.4 With OpenLiteSpeed 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-with-openlitespeed-on-ubuntu-20-04\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-with-openlitespeed-on-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/01\/how-to-install-magento-2.4-with-openlitespeed-on-ubuntu-20.04.jpg","datePublished":"2022-02-02T18:30:00+00:00","dateModified":"2022-06-03T08:31:25+00:00","description":"How to Install Magento 2.4 With OpenLiteSpeed on Ubuntu 20.04 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-with-openlitespeed-on-ubuntu-20-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-with-openlitespeed-on-ubuntu-20-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-with-openlitespeed-on-ubuntu-20-04\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/01\/how-to-install-magento-2.4-with-openlitespeed-on-ubuntu-20.04.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/01\/how-to-install-magento-2.4-with-openlitespeed-on-ubuntu-20.04.jpg","width":742,"height":372,"caption":"how to install magento 2.4 with openlitespeed on ubuntu 20.04"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-with-openlitespeed-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 With OpenLiteSpeed 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\/40107","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=40107"}],"version-history":[{"count":10,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/40107\/revisions"}],"predecessor-version":[{"id":40278,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/40107\/revisions\/40278"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/40244"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=40107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=40107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=40107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}