{"id":42715,"date":"2022-09-26T12:30:06","date_gmt":"2022-09-26T17:30:06","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=42715"},"modified":"2024-12-09T02:20:45","modified_gmt":"2024-12-09T08:20:45","slug":"how-to-install-magento-2-4-on-debian-11","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-on-debian-11\/","title":{"rendered":"How to Install Magento 2.4 on Debian 11"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-42904\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/how-to-install-magento-2-4-on-debian-11.webp\" alt=\"how to install magento 2.4 on debian 11\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/how-to-install-magento-2-4-on-debian-11.webp 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/how-to-install-magento-2-4-on-debian-11-300x150.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/how-to-install-magento-2-4-on-debian-11-150x75.webp 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>Magento is a very well-known e-commerce platform and highly customizable application. It offers open-source and commercial versions to help developers build eCommerce websites. Magento Commerce, formerly known as the enterprise edition, offers more extensive out-of-the-box features and unlimited scaling. In this tutorial, we will show you how to install Magento Open Source (formerly known as community edition) on Debian 11.<\/p>\n<p><!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69f4ca7387c9a\" 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-69f4ca7387c9a\"  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-on-debian-11\/#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-on-debian-11\/#1-Update-the-System\" >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-on-debian-11\/#2-Install-PHP\" >2. Install PHP<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-on-debian-11\/#3-Install-Nginx\" >3. Install Nginx<\/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-on-debian-11\/#4-Install-MySQL-Server\" >4. Install MySQL Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-on-debian-11\/#5-Install-Elasticsearch\" >5. Install Elasticsearch<\/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-on-debian-11\/#6-Install-Composer\" >6. Install Composer<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-on-debian-11\/#7-Install-Magento\" >7. Install Magento<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-on-debian-11\/#8-Setup-Cron-jobs\" >8. Setup Cron jobs<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-on-debian-11\/#9-Install-an-SSL-Certificate\" >9. Install an SSL Certificate<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>A Debian 11 VPS with 4GB of RAM or higher<\/li>\n<li>SSH access with sudo privileges, or root access<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"1-Update-the-System\"><\/span>1. Update the System<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>First of all, we need to log in to our Debian 11 VPS through SSH:<\/p>\n<pre>ssh master@IP_Address -p Port_number<\/pre>\n<p>Replace &#8220;master&#8221; with a user with sudo privileges or root if necessary. Additionally, replace &#8220;IP_Address&#8221; and &#8220;Port_Number&#8221; with your server&#8217;s respective IP address and SSH port number. Next, let&#8217;s make sure that we&#8217;re on Debian 11. You can do that like this:<\/p>\n<pre>$ lsb_release -a<\/pre>\n<p>You should get an output like this:<\/p>\n<pre>Distributor ID: Debian\r\nDescription: Debian GNU\/Linux 11 (bulleseye)\r\nRelease: 11\r\nCodename: bullseye<\/pre>\n<p>Then, run the following command to make sure that all installed packages on the server are updated to their latest available versions:<\/p>\n<pre>$ sudo apt update &amp;&amp; sudo apt upgrade<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"2-Install-PHP\"><\/span>2. Install PHP<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Magento 2.4.4 introduces support for PHP 8.1. All project libraries and dependencies have been updated for compatibility with PHP 8.1. Since the latest PHP version available in the default Debian 11 repository is version 7.4, we are going to install PHP 8.1 using Sury APT repository.<\/p>\n<pre>$ sudo apt install ca-certificates apt-transport-https software-properties-common gnupg2 unzip -y<\/pre>\n<pre>$ echo \"deb https:\/\/packages.sury.org\/php\/ $(lsb_release -sc) main\" | sudo tee \/etc\/apt\/sources.list.d\/sury.list<\/pre>\n<p>We need to install the signing GPG key, let&#8217;s run this command:<\/p>\n<pre>$ wget -qO - https:\/\/packages.sury.org\/php\/apt.gpg | sudo apt-key add -<\/pre>\n<p>Next, let&#8217;s proceed with the PHP 8.1 installation, do not forget to update the package index.<\/p>\n<pre>$ sudo apt update\r\n$ sudo apt install php8.1-{bcmath,common,curl,fpm,gd,intl,mbstring,mysql,soap,xml,xsl,zip,cli}<\/pre>\n<p>It is time to adjust some PHP variable values.<\/p>\n<pre>$ sudo sed -i \"s\/memory_limit = .*\/memory_limit = 768M\/\" \/etc\/php\/8.1\/fpm\/php.ini\r\n$ sudo sed -i \"s\/upload_max_filesize = .*\/upload_max_filesize = 128M\/\" \/etc\/php\/8.1\/fpm\/php.ini\r\n$ sudo sed -i \"s\/zlib.output_compression = .*\/zlib.output_compression = on\/\" \/etc\/php\/8.1\/fpm\/php.ini\r\n$ sudo sed -i \"s\/max_execution_time = .*\/max_execution_time = 18000\/\" \/etc\/php\/8.1\/fpm\/php.ini<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"3-Install-Nginx\"><\/span>3. Install Nginx<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Magento fully supports Nginx and Apache web servers. In this article, we are going to use Nginx as the webserver.<\/p>\n<pre>$ sudo apt install nginx -y<\/pre>\n<p>In Debian 11, nginx will automatically start upon installation. To verify this, you can invoke this command:<\/p>\n<pre>$ sudo systemctl status nginx<\/pre>\n<p>It should show you an output similar to this one:<\/p>\n<pre>master@debian11:~$ sudo systemctl status nginx \r\n\u25cf nginx.service - A high performance web server and a reverse proxy server\r\nLoaded: loaded (\/lib\/systemd\/system\/nginx.service; enabled; vendor preset: enabled)\r\nActive: active (running) since Wed 2022-07-20 10:24:17 UTC; 1min 13s ago\r\nDocs: man:nginx(8)\r\nProcess: 19522 ExecStartPre=\/usr\/sbin\/nginx -t -q -g daemon on; master_process on; (code=exited, status=0\/SUCCESS)\r\nProcess: 19523 ExecStart=\/usr\/sbin\/nginx -g daemon on; master_process on; (code=exited, status=0\/SUCCESS)\r\nMain PID: 19603 (nginx)\r\nTasks: 2 (limit: 2276)\r\nMemory: 2.5M\r\nCPU: 32ms\r\nCGroup: \/system.slice\/nginx.service\r\n\u251c\u250019603 nginx: master process \/usr\/sbin\/nginx -g daemon on; master_process on;\r\n\u2514\u250019606 nginx: worker process\r\n\r\nJul 20 10:24:17 debian11 systemd[1]: Starting A high performance web server and a reverse proxy server...\r\nJul 20 10:24:17 debian11 systemd[1]: nginx.service: Failed to parse PID from file \/run\/nginx.pid: Invalid argument\r\nJul 20 10:24:17 debian11 systemd[1]: Started A high performance web server and a reverse proxy server.<\/pre>\n<p>It is time to create an nginx server block for our Magento website.<\/p>\n<pre>$ sudo nano \/etc\/nginx\/sites-enabled\/magento.conf<\/pre>\n<p>Insert the following into the file, make sure to modify the domain to match your own domain\/subdomain.<\/p>\n<pre>upstream fastcgi_backend {\r\nserver unix:\/run\/php\/php8.1-fpm.sock;\r\n}\r\n\r\nserver {\r\nserver_name yourdomain.com;\r\nlisten 80;\r\nset $MAGE_ROOT \/opt\/magento2;\r\nset $MAGE_MODE developer; # or production\r\n\r\naccess_log \/var\/log\/nginx\/magento2-access.log;\r\nerror_log \/var\/log\/nginx\/magento2-error.log;\r\n\r\ninclude \/opt\/magento2\/nginx.conf.sample;\r\n}<\/pre>\n<p>Save the file then exit from nano editor.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"4-Install-MySQL-Server\"><\/span>4. Install MySQL Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Magento 2.4.4 requires MySQL 8, MySQL 5.7, and MariaDB-(10.2-10.4), but Debian 11 provide MariaDB 10.5 in the repository which is not supported at the moment. So, we are going to install MySQL 8 for this setup using MySQL APT repository.<\/p>\n<p>Check their page at <a href=\"https:\/\/dev.mysql.com\/downloads\/repo\/apt\/\">https:\/\/dev.mysql.com\/downloads\/repo\/apt\/<\/a> and download their latest release package, then install it.<\/p>\n<pre>$ wget https:\/\/dev.mysql.com\/get\/mysql-apt-config_0.8.22-1_all.deb\r\n$ sudo dpkg -i mysql-apt-config_0.8.22-1_all.deb<\/pre>\n<p>The installation will prompt you some options, choose MySQL 8 and Cluster then press TAB to choose OK and hit ENTER<br \/>\n<img decoding=\"async\" class=\"alignnone wp-image-42905 size-full\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-mysql8-server-and-cluster.webp\" alt=\"\" width=\"1024\" height=\"246\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-mysql8-server-and-cluster.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-mysql8-server-and-cluster-300x72.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-mysql8-server-and-cluster-150x36.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-mysql8-server-and-cluster-768x185.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Then, choose MySQL 8 and OK<br \/>\n<img decoding=\"async\" class=\"alignnone wp-image-42906 size-full\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-mysql8.webp\" alt=\"\" width=\"1024\" height=\"224\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-mysql8.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-mysql8-300x66.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-mysql8-150x33.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-mysql8-768x168.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>You will be brought to the initial window, this time choose OK and OK<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-42907 size-full\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-mysql-ok.webp\" alt=\"\" width=\"1024\" height=\"243\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-mysql-ok.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-mysql-ok-300x71.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-mysql-ok-150x36.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-mysql-ok-768x182.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>We need to update the package index before we can install MySQL server.<\/p>\n<pre>$ sudo apt update\r\n$ sudo apt install mysql-server<\/pre>\n<p>MySQL server will be automatically running, now we need to create a database.<\/p>\n<pre>$ sudo mysql<\/pre>\n<p>Run these MySQL commands, replace m0d1fyt15 with a stronger password:<\/p>\n<pre>mysql&gt; CREATE DATABASE magentodb;\r\nmysql&gt; CREATE USER 'magento'@'localhost' IDENTIFIED BY 'm0d1fyth15';\r\nmysql&gt; GRANT ALL ON magentodb.* TO 'magento'@'localhost';\r\nmysql&gt; FLUSH PRIVILEGES;\r\nmysql&gt; \\q<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"5-Install-Elasticsearch\"><\/span>5. Install Elasticsearch<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Elasticsearch is used as a search engine in a Magento website. Starting Magento 2.4, Elasticsearch is a required component hence we cannot perform Magento installation without Elasticsearch.<\/p>\n<p>Let&#8217;s install the signing GPG Key and add Elastic repository into the source list<\/p>\n<pre>$ curl -fsSL https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch | sudo apt-key add -\r\n$ sudo sh -c 'echo \"deb https:\/\/artifacts.elastic.co\/packages\/7.x\/apt stable main\" &gt; \/etc\/apt\/sources.list.d\/elastic-7.x.list'<\/pre>\n<p>Update the package list then install Elasticsearch with these commands<\/p>\n<pre>$ sudo apt update -y\r\n$ sudo apt install elasticsearch -y<\/pre>\n<p>Elasticsearch has been installed but it&#8217;s not started yet. Let&#8217;s start it on boot and start it now.<\/p>\n<pre>$ sudo systemctl --now enable elasticsearch<\/pre>\n<p>To verify whether Elasticsearch service is running or not we can run this command:<\/p>\n<pre>$ curl -X GET \"localhost:9200\"<\/pre>\n<p>You will see an output like this:<\/p>\n<pre>{\r\n\"name\" : \"debian11\",\r\n\"cluster_name\" : \"elasticsearch\",\r\n\"cluster_uuid\" : \"FZs_Hgu4S3utmrS096Sg2A\",\r\n\"version\" : {\r\n\"number\" : \"7.17.5\",\r\n\"build_flavor\" : \"default\",\r\n\"build_type\" : \"deb\",\r\n\"build_hash\" : \"8d61b4f7ddf931f219e3745f295ed2bbc50c8e84\",\r\n\"build_date\" : \"2022-06-23T21:57:28.736740635Z\",\r\n\"build_snapshot\" : false,\r\n\"lucene_version\" : \"8.11.1\",\r\n\"minimum_wire_compatibility_version\" : \"6.8.0\",\r\n\"minimum_index_compatibility_version\" : \"6.0.0-beta1\"\r\n},\r\n\"tagline\" : \"You Know, for Search\"\r\n}<\/pre>\n<p><img decoding=\"async\" class=\"alignnone wp-image-42908 size-full\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-elasticsearch-curl.webp\" alt=\"\" width=\"526\" height=\"272\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-elasticsearch-curl.webp 526w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-elasticsearch-curl-300x155.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-elasticsearch-curl-150x78.webp 150w\" sizes=\"(max-width: 526px) 100vw, 526px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"6-Install-Composer\"><\/span>6. Install Composer<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To manage Magento components and its dependencies, we use Composer. In Debian 11, the latest version of Composer in the default repository is version 2.0.9. We are going to install Composer from getcomposer.org website to get the latest stable version.<\/p>\n<pre>$ curl -sS https:\/\/getcomposer.org\/installer -o composer-setup.php\r\n$ sudo php composer-setup.php --install-dir=\/usr\/local\/bin --filename=composer<\/pre>\n<p>To check the Composer version you can run the following command:<\/p>\n<pre>$ composer -V<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"7-Install-Magento\"><\/span>7. Install Magento<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To install Magento 2 using composer, you need to have an account at https:\/\/marketplace.magento.com\/. We would need to create an access key and use it to install Magento through the command line. In the link above, you can navigate to My profile &gt; Marketplace &gt; My products &gt; Access Keys to see\/create an access key.<\/p>\n<pre>$ sudo composer create-project --repository-url=https:\/\/repo.magento.com\/ magento\/project-community-edition=2.4.4 \/opt\/magento2<\/pre>\n<p>The command above will prompt you for a username and password. The username would be your public key, and the password is the private key you created earlier.<\/p>\n<p>Magento core files are downloaded to \/opt\/magento2 directory, let&#8217;s go in to the directory then proceed with the installation.<\/p>\n<pre>$ cd \/opt\/magento2<\/pre>\n<p>We need to run the command below in the Magento directory, make sure the database details match with the credentials we created earlier. Also, create a stronger password than the one in the command.<\/p>\n<pre>sudo bin\/magento setup:install \\\r\n--base-url=http:\/\/yourdomain.com \\\r\n--db-host=localhost \\\r\n--db-name=magentodb \\\r\n--db-user=magento \\\r\n--db-password=m0d1fyth15 \\\r\n--admin-firstname=admin \\\r\n--admin-lastname=admin \\\r\n--admin-email=admin@admin.com \\\r\n--admin-user=admin \\\r\n--admin-password=m0d1fyth15one \\\r\n--language=en_US \\\r\n--currency=USD \\\r\n--timezone=America\/Chicago \\\r\n--use-rewrites=1<\/pre>\n<p>Wait for a few minutes until the installation is completed.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-42909 size-full\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-installation-completed.webp\" alt=\"\" width=\"768\" height=\"333\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-installation-completed.webp 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-installation-completed-300x130.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-installation-completed-150x65.webp 150w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/p>\n<p>Then, let&#8217;s give the directory the correct permission.<\/p>\n<pre>chown -R www-data: \/opt\/magento2<\/pre>\n<p>In the previous step we created an nginx server block for our Magento website, it is time to check the configuration and restart nginx.<\/p>\n<pre>$ sudo nginx -t\r\n$ sudo systemctl restart nginx<\/pre>\n<p>By default, two-factor authentication is enabled in the new Magento installation. If you want to disable it, you can run the command below.<\/p>\n<pre>$ sudo -u www-data bin\/magento module:disable Magento_TwoFactorAuth\r\n$ sudo -u www-data bin\/magento cache:flush<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"8-Setup-Cron-jobs\"><\/span>8. Setup Cron jobs<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Magento needs to run its cronjobs to automate its important system functions. Run the command below to create Magento cronjobs under user www-data.<\/p>\n<pre>$ sudo -u www-data bin\/magento cron:install<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"9-Install-an-SSL-Certificate\"><\/span>9. Install an SSL Certificate<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>It is important to run a website in HTTPS mode. In this step, we will show you how to install an SSL certificate for your Magento website using the free one from Let&#8217;s Encrypt.<\/p>\n<pre>$ sudo apt install python3-certbot-nginx\r\n$ certbot --nginx -d yourdomain.com<\/pre>\n<p>The command will prompt you for your email address and the agreement. Once the installation is completed, it will update your Magento nginx server block file to redirect all HTTP traffic to HTTPS.<\/p>\n<pre>root@debian11:\/opt\/magento2# certbot --nginx -d yourdomain.com\r\n\r\nSaving debug log to \/var\/log\/letsencrypt\/letsencrypt.log\r\nPlugins selected: Authenticator nginx, Installer nginx\r\nEnter email address (used for urgent renewal and security notices)\r\n(Enter 'c' to cancel): you@yourdomain.com\r\n\r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\nPlease read the Terms of Service at\r\nhttps:\/\/letsencrypt.org\/documents\/LE-SA-v1.2-November-15-2017.pdf. You must\r\nagree in order to register with the ACME server. Do you agree?\r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\n(Y)es\/(N)o: y\r\n\r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\nWould you be willing, once your first certificate is successfully issued, to\r\nshare your email address with the Electronic Frontier Foundation, a founding\r\npartner of the Let's Encrypt project and the non-profit organization that\r\ndevelops Certbot? We'd like to send you email about our work encrypting the web,\r\nEFF news, campaigns, and ways to support digital freedom.\r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\n(Y)es\/(N)o: n\r\nAccount registered.\r\nRequesting a certificate for yourdomain.com\r\nPerforming the following challenges:\r\nhttp-01 challenge for yourdomain.com\r\nWaiting for verification...\r\nCleaning up challenges\r\nDeploying Certificate to VirtualHost \/etc\/nginx\/sites-enabled\/magento.conf\r\nRedirecting all traffic on port 80 to ssl in \/etc\/nginx\/sites-enabled\/magento.conf\r\n\r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\nCongratulations! You have successfully enabled https:\/\/yourdomain.com\r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\n\r\nIMPORTANT NOTES:\r\n- Congratulations! Your certificate and chain have been saved at:\r\n\/etc\/letsencrypt\/live\/yourdomain.com\/fullchain.pem\r\nYour key file has been saved at:\r\n\/etc\/letsencrypt\/live\/yourdomain.com\/privkey.pem\r\nYour certificate will expire on 2022-10-18. To obtain a new or\r\ntweaked version of this certificate in the future, simply run\r\ncertbot again with the \"certonly\" option. To non-interactively\r\nrenew *all* of your certificates, run \"certbot renew\"\r\n- If you like Certbot, please consider supporting our work by:\r\n\r\nDonating to ISRG \/ Let's Encrypt: https:\/\/letsencrypt.org\/donate\r\nDonating to EFF: https:\/\/eff.org\/donate-le<\/pre>\n<p>Use the following Magento 2 CLI commands to update the Magento URL values in the database, replace yourdomain.com with your actual domain or subdomain name.<\/p>\n<pre>$ cd \/opt\/magento2\/\r\n$ sudo -u www-data bin\/magento setup:store-config:set --base-url=\"https:\/\/yourdomain.com\/\"\r\n$ sudo -u www-data bin\/magento setup:store-config:set --base-url-secure=\"https:\/\/yourdomain.com\/\"<\/pre>\n<p>Congratulation! You can now access Magento backend at https:\/\/yourdomain.com\/admin_180q2i\/. Please remember that your Magento Admin URI is provided during the installation, or you can also check it in app\/etc\/env.php file.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-42910 size-full\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-dashboard.webp\" alt=\"\" width=\"1024\" height=\"542\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-dashboard.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-dashboard-300x159.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-dashboard-150x79.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/magento-dashboard-768x407.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><br \/>\nIf you are one of our web hosting clients and use our managed <a href=\"https:\/\/www.rosehosting.com\/debian-hosting\/\">Debian Hosting<\/a>, you don\u2019t have to follow this tutorial and install Magento 2.4.4 on your Debian 11 server yourself, you can simply ask our expert Linux hosting admins to set all of this up for you, quickly and easily. We can also help you with the more complex setup, like adding Varnish and RabbitMQ. They are available 24\u00d77 and will respond to your request immediately.<\/p>\n<p>PS. If you liked this post, please share it with your friends on the social networks using the buttons below, or simply leave a comment down in the comments section. Thank you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Magento is a very well-known e-commerce platform and highly customizable application. It offers open-source and commercial versions to help developers &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Magento 2.4 on Debian 11\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-on-debian-11\/#more-42715\" aria-label=\"Read more about How to Install Magento 2.4 on Debian 11\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":42904,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1700,1711,13],"tags":[1962,216],"class_list":["post-42715","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","category-e-commerce","category-tutorials","tag-debian-11","tag-magento","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.5 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Magento 2.4 on Debian 11 | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Install Magento 2.4 on Debian 11 | 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-on-debian-11\/\" \/>\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 on Debian 11\" \/>\n<meta property=\"og:description\" content=\"How to Install Magento 2.4 on Debian 11 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-on-debian-11\/\" \/>\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-09-26T17:30:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-09T08:20:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/how-to-install-magento-2-4-on-debian-11.webp\" \/>\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\/webp\" \/>\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=\"12 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-on-debian-11\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-magento-2-4-on-debian-11\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Magento 2.4 on Debian 11\",\"datePublished\":\"2022-09-26T17:30:06+00:00\",\"dateModified\":\"2024-12-09T08:20:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-magento-2-4-on-debian-11\\\/\"},\"wordCount\":1101,\"commentCount\":6,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-magento-2-4-on-debian-11\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/how-to-install-magento-2-4-on-debian-11.webp\",\"keywords\":[\"debian 11\",\"magento\"],\"articleSection\":[\"Debian\",\"E-Commerce\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-magento-2-4-on-debian-11\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-magento-2-4-on-debian-11\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-magento-2-4-on-debian-11\\\/\",\"name\":\"How to Install Magento 2.4 on Debian 11 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-magento-2-4-on-debian-11\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-magento-2-4-on-debian-11\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/how-to-install-magento-2-4-on-debian-11.webp\",\"datePublished\":\"2022-09-26T17:30:06+00:00\",\"dateModified\":\"2024-12-09T08:20:45+00:00\",\"description\":\"How to Install Magento 2.4 on Debian 11 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-magento-2-4-on-debian-11\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-magento-2-4-on-debian-11\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-magento-2-4-on-debian-11\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/how-to-install-magento-2-4-on-debian-11.webp\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/how-to-install-magento-2-4-on-debian-11.webp\",\"width\":742,\"height\":372,\"caption\":\"how to install magento 2.4 on debian 11\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-magento-2-4-on-debian-11\\\/#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 on Debian 11\"}]},{\"@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 on Debian 11 | RoseHosting","description":"How to Install Magento 2.4 on Debian 11 | 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-on-debian-11\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Magento 2.4 on Debian 11","og_description":"How to Install Magento 2.4 on Debian 11 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-on-debian-11\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2022-09-26T17:30:06+00:00","article_modified_time":"2024-12-09T08:20:45+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/how-to-install-magento-2-4-on-debian-11.webp","type":"image\/webp"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-on-debian-11\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-on-debian-11\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Magento 2.4 on Debian 11","datePublished":"2022-09-26T17:30:06+00:00","dateModified":"2024-12-09T08:20:45+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-on-debian-11\/"},"wordCount":1101,"commentCount":6,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-on-debian-11\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/how-to-install-magento-2-4-on-debian-11.webp","keywords":["debian 11","magento"],"articleSection":["Debian","E-Commerce","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-on-debian-11\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-on-debian-11\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-on-debian-11\/","name":"How to Install Magento 2.4 on Debian 11 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-on-debian-11\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-on-debian-11\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/how-to-install-magento-2-4-on-debian-11.webp","datePublished":"2022-09-26T17:30:06+00:00","dateModified":"2024-12-09T08:20:45+00:00","description":"How to Install Magento 2.4 on Debian 11 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-on-debian-11\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-on-debian-11\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-on-debian-11\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/how-to-install-magento-2-4-on-debian-11.webp","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/08\/how-to-install-magento-2-4-on-debian-11.webp","width":742,"height":372,"caption":"how to install magento 2.4 on debian 11"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-4-on-debian-11\/#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 on Debian 11"}]},{"@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\/42715","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=42715"}],"version-history":[{"count":4,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/42715\/revisions"}],"predecessor-version":[{"id":43702,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/42715\/revisions\/43702"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/42904"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=42715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=42715"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=42715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}