{"id":44560,"date":"2023-02-01T12:30:50","date_gmt":"2023-02-01T18:30:50","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=44560"},"modified":"2023-01-31T06:19:14","modified_gmt":"2023-01-31T12:19:14","slug":"how-to-install-drupal-on-debian-11","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-debian-11\/","title":{"rendered":"How to Install Drupal on Debian 11"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"size-full wp-image-44840 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/how-to-install-drupal-on-debian-11.webp\" alt=\"how to install drupal on debian 11\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/how-to-install-drupal-on-debian-11.webp 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/how-to-install-drupal-on-debian-11-300x150.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/how-to-install-drupal-on-debian-11-150x75.webp 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>In this tutorial, we will install Drupal CMS on Debian 11 OS.<\/p>\n<p>Drupal is a free, open-source content management system written in PHP. It offers a variety of modules, themes, localization in 100 different languages, auto-update notifications, etc. The Drupal community is getting bigger daily, reaching 1.4 million members, including actively contributing users. The advantage of using Drupal is that it is compatible with any system that has PHP and a database for storing Drupal data.<\/p>\n<p>In this blog post, we will install Drupal on Debian 11 with the <a href=\"https:\/\/www.rosehosting.com\/lamp-hosting\/\">LAMP stack<\/a>, which may take up to 20 minutes. Let&#8217;s get things working!<\/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-69ce3f431e539\" 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-69ce3f431e539\"  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-drupal-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-drupal-on-debian-11\/#Step-1-Update-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-drupal-on-debian-11\/#Step-2-Install-LAMP-Stack\" >Step 2. Install LAMP Stack<\/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-drupal-on-debian-11\/#Step-3-Create-a-Drupal-Database-and-User\" >Step 3. Create a Drupal Database and User<\/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-drupal-on-debian-11\/#Step-4-Download-Drupal\" >Step 4. Download Drupal<\/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-drupal-on-debian-11\/#Step-5-Create-Apache-Virtual-Host-File\" >Step 5. Create Apache Virtual Host File<\/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-drupal-on-debian-11\/#Step-6-Finish-Drupal-Installation\" >Step 6. Finish Drupal Installation<\/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 server with Debian 11 as OS<\/li>\n<li>User privileges: root or non-root user with sudo privileges<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Step-1-Update-the-System\"><\/span>Step 1. Update the System<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Update the system packages to the latest versions available. Execute the following command:<\/p>\n<pre>sudo apt-get update -y &amp;&amp; sudo apt-get upgrade -y<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-2-Install-LAMP-Stack\"><\/span>Step 2. Install LAMP Stack<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>First, we will install the <b>Apache Web server<\/b>. Execute the following command:<\/p>\n<pre>sudo apt-get install apache2 -y<\/pre>\n<p>Once installed, start and enable the service.<\/p>\n<pre>sudo systemctl enable apache2 &amp;&amp; sudo systemctl start apache2<\/pre>\n<p>Check if the service is up and running:<\/p>\n<pre>sudo systemctl status apache2<\/pre>\n<p>You should receive the following output:<\/p>\n<pre>root@host:~# sudo systemctl status apache2\r\n\u25cf apache2.service - The Apache HTTP Server\r\nLoaded: loaded (\/lib\/systemd\/system\/apache2.service; enabled; vendor preset: enabled)\r\nActive: active (running) since Tue 2022-12-27 06:38:17 CST; 36min ago\r\nDocs: https:\/\/httpd.apache.org\/docs\/2.4\/\r\nMain PID: 423 (apache2)\r\nTasks: 55 (limit: 4675)\r\nMemory: 18.2M\r\nCPU: 510ms\r\nCGroup: \/system.slice\/apache2.service\r\n\u251c\u2500423 \/usr\/sbin\/apache2 -k start\r\n\u251c\u2500445 \/usr\/sbin\/apache2 -k start\r\n\u2514\u2500446 \/usr\/sbin\/apache2 -k start\r\n\r\nDec 27 06:38:17 host.test.vps systemd[1]: Starting The Apache HTTP Server...\r\nDec 27 06:38:17 host.test.vps systemd[1]: Started The Apache HTTP Server.\r\n<\/pre>\n<p>Next, we will install PHP along with its extensions. To do that, first, add the GPG key and the repo with the following commands:<\/p>\n<pre>apt -y install lsb-release apt-transport-https ca-certificates\r\n\r\nwget -O \/etc\/apt\/trusted.gpg.d\/php.gpg https:\/\/packages.sury.org\/php\/apt.gpg\r\n\r\necho \"deb https:\/\/packages.sury.org\/php\/ $(lsb_release -sc) main\" | tee \/etc\/apt\/sources.list.d\/php.list\r\n\r\nsudo apt-get update -y<\/pre>\n<p>Once the PHP key and repo are added, you can install the PHP with extensions using this long command:<\/p>\n<pre>sudo apt-get install php8.2 php8.2-common php8.2-curl libapache2-mod-php php8.2-imap php8.2-redis php8.2-cli php8.2-snmp php8.2-xml php8.2-zip php8.2-mbstring php-gd php-xml php-mysql php-mbstring -y<\/pre>\n<p>After successful installation, you can check the PHP version with the following command:<\/p>\n<pre>php -v<\/pre>\n<p>You should get the following output:<\/p>\n<pre>root@host:~# php -v\r\nPHP 8.1.13 (cli) (built: Nov 26 2022 14:27:02) (NTS)\r\nCopyright (c) The PHP Group\r\nZend Engine v4.1.13, Copyright (c) Zend Technologies\r\nwith Zend OPcache v8.1.13, Copyright (c), by Zend Technologies\r\n<\/pre>\n<p>The last of the LAMP stack is the <b>MariaDB<\/b> database service. To install it execute the following command:<\/p>\n<pre>sudo apt-get install mariadb-server -y<\/pre>\n<p>Start and enable the mariadb.service with the following commands:<\/p>\n<pre>sudo systemctl start mariadb &amp;&amp; sudo systemctl enable mariadb<\/pre>\n<p>Check the status of the mariadb.service<\/p>\n<pre>sudo systemctl status mariadb<\/pre>\n<p>You should receive the following output:<\/p>\n<pre>root@host:~# sudo systemctl status mariadb\r\n\u25cf mariadb.service - MariaDB 10.5.18 database server\r\nLoaded: loaded (\/lib\/systemd\/system\/mariadb.service; enabled; vendor preset: enabled)\r\nActive: active (running) since Tue 2022-12-27 07:45:16 CST; 5min ago\r\nDocs: man:mariadbd(8)\r\nhttps:\/\/mariadb.com\/kb\/en\/library\/systemd\/\r\nMain PID: 43791 (mariadbd)\r\nStatus: \"Taking your SQL requests now...\"\r\nTasks: 8 (limit: 4675)\r\nMemory: 78.0M\r\nCPU: 606ms\r\nCGroup: \/system.slice\/mariadb.service\r\n\u2514\u250043791 \/usr\/sbin\/mariadbd\r\n<\/pre>\n<p>Now, when the <b>LAMP<\/b> stack is installed, we are ready to proceed with database creation and Drupal installation.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-3-Create-a-Drupal-Database-and-User\"><\/span>Step 3. Create a Drupal Database and User<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To create a Drupal database, the Drupal user and grant the permissions for that user to the database first log in to MySQL command line with the <b>mysql<\/b> command and execute the following lines of code one by one:<\/p>\n<pre>CREATE USER 'drupal'@'localhost' IDENTIFIED BY 'YourStrongPasswordHere';\r\nCREATE DATABASE drupal;\r\nGRANT ALL PRIVILEGES ON drupal.* TO 'drupal'@'localhost';\r\nFLUSH PRIVILEGES;\r\nEXIT;\r\n<\/pre>\n<p>Now, the database and user with the name <b>drupal<\/b> have been added with proper permissions. We are ready to download the Drupal installation and set the file and folder permissions.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-4-Download-Drupal\"><\/span>Step 4. Download Drupal<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>First, go into the Document root of the Apache web server:<\/p>\n<pre>cd \/var\/www\/html<\/pre>\n<p>To download the latest stable release of <b>Drupal 10<\/b>, execute the following command:<\/p>\n<pre>wget https:\/\/ftp.drupal.org\/files\/projects\/drupal-10.0.0.zip\r\n\r\nunzip drupal-10.0.0.zip\r\n\r\nmv drupal-10.0.0\/ drupal\/\r\n\r\nrm drupal-10.0.0.zip\r\n<\/pre>\n<p>Set the right permissions to files and folders.<\/p>\n<pre>chown -R www-data:www-data drupal\/\r\n\r\nfind . -type d -exec chmod 755 {} \\;\r\n\r\nfind . -type f -exec chmod 644 {} \\;\r\n<\/pre>\n<p>In the next step, we will configure the Apache Virtual Host file.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-5-Create-Apache-Virtual-Host-File\"><\/span>Step 5. Create Apache Virtual Host File<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Go into the Apache directory and create a configuration file for the Drupal CMS.<\/p>\n<pre>cd \/etc\/apache2\/sites-available\/\r\n\r\ntouch drupal.conf\r\n<\/pre>\n<p>Open the file, paste the following lines of code, save it, and close it.<\/p>\n<pre>&lt;VirtualHost *:80&gt;\r\nServerName <b>yourdomain.com<\/b>\r\nDocumentRoot \/var\/www\/html\/drupal\r\n\r\n&lt;Directory \/var\/www\/html\/drupal&gt;\r\nAllowOverride All\r\n&lt;\/Directory&gt;\r\n\r\nErrorLog ${APACHE_LOG_DIR}\/error.log\r\nCustomLog ${APACHE_LOG_DIR}\/access.log combined\r\n\r\n&lt;\/VirtualHost&gt;\r\n\r\n<\/pre>\n<p>Enable the Apache configuration for Drupal and rewrite module.<\/p>\n<pre>a2dissite 000-default.conf\r\n\r\nsudo a2enmod rewrite\r\n\r\nsudo a2ensite drupal.conf\r\n<\/pre>\n<p>Check the syntax:<\/p>\n<pre>apachectl -t<\/pre>\n<p>You should receive the following output:<\/p>\n<pre>root@vps:~# apachectl -t\r\nSyntax OK\r\n<\/pre>\n<p>If the syntax is OK, restartd the Apache service.<\/p>\n<pre>systemctl restart apache2\r\n<\/pre>\n<p>Once the Apache service is restarted, you can finish the Drupal installation at <b>http:\/\/yourdomain.com<\/b><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-6-Finish-Drupal-Installation\"><\/span>Step 6. Finish Drupal Installation<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The installation can be finished at <b>http:\/\/yourdomain.com<\/b>. You should see the following screen:<\/p>\n<p><img decoding=\"async\" class=\"wp-image-44792 size-full alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-finished-installation.webp\" alt=\"drupal finished installation\" width=\"1024\" height=\"527\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-finished-installation.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-finished-installation-300x154.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-finished-installation-150x77.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-finished-installation-768x395.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>On the next window, leave the <b>standard<\/b> installation setup and click on <b>Save and continue<\/b>.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-44793 size-full alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-select-installation-profile.webp\" alt=\"drupal select installation profile\" width=\"1024\" height=\"541\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-select-installation-profile.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-select-installation-profile-300x158.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-select-installation-profile-150x79.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-select-installation-profile-768x406.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Since we installed all required dependencies, the third section will be skipped, and the user will be redirected to the database section. In this section, enter the Drupal database, user, and password you set in Step 3.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-44794 size-full alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-database-configuration.webp\" alt=\"drupal database configuration\" width=\"907\" height=\"615\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-database-configuration.webp 907w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-database-configuration-300x203.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-database-configuration-150x102.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-database-configuration-768x521.webp 768w\" sizes=\"(max-width: 907px) 100vw, 907px\" \/><\/p>\n<p>Once the database setup is completed, the installation will start:<\/p>\n<p><img decoding=\"async\" class=\"wp-image-44795 size-full alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-installing.webp\" alt=\"drupal installing\" width=\"1025\" height=\"536\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-installing.webp 1025w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-installing-300x157.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-installing-150x78.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-installing-768x402.webp 768w\" sizes=\"(max-width: 1025px) 100vw, 1025px\" \/><\/p>\n<p>After successful installation, we need to add the website name, email, admin user, and password.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-44796 size-full alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-configure-site.webp\" alt=\"drupal configure site\" width=\"858\" height=\"615\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-configure-site.webp 858w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-configure-site-300x215.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-configure-site-150x108.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-configure-site-768x550.webp 768w\" sizes=\"(max-width: 858px) 100vw, 858px\" \/><\/p>\n<p>Once this is done, click on <b>Save and continue<\/b>.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-44797 size-full alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-site-configuration-done.webp\" alt=\"drupal site configuration done\" width=\"795\" height=\"549\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-site-configuration-done.webp 795w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-site-configuration-done-300x207.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-site-configuration-done-150x104.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-site-configuration-done-768x530.webp 768w\" sizes=\"(max-width: 795px) 100vw, 795px\" \/><\/p>\n<p>Drupal will automatically sign you into the admin dashboard.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-44798 size-full alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-admin-dashboard.webp\" alt=\"drupal admin dashboard\" width=\"1024\" height=\"466\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-admin-dashboard.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-admin-dashboard-300x137.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-admin-dashboard-150x68.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/drupal-admin-dashboard-768x350.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>That&#8217;s it. You successfully installed and configured the latest version of Drupal 10 on Debian 11 OS. If you find this setup difficult, please <a href=\"https:\/\/www.rosehosting.com\/support\/\">get in touch with our technical support<\/a>. We are available 24\/7 and will help you with your Drupal configuration. You just need to sign up for one of our NVMe VPS plans and submit a support ticket. We are waiting for you!<\/p>\n<p>If you liked this post about installing Drupal on Debian 11, please share it with your friends on social networks or simply leave a reply below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will install Drupal CMS on Debian 11 OS. Drupal is a free, open-source content management system &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Drupal on Debian 11\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-debian-11\/#more-44560\" aria-label=\"Read more about How to Install Drupal on Debian 11\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":44840,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1710,1700,13],"tags":[1962,160,1603],"class_list":["post-44560","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cms-crm-erp","category-debian","category-tutorials","tag-debian-11","tag-drupal","tag-how-to-install","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Drupal on Debian 11 | RoseHosting<\/title>\n<meta name=\"description\" content=\"Wondering how to install Drupal on Debian 11? Let&#039;s find out! Read our tutorial to learn more about this topic.\" \/>\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-drupal-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 Drupal on Debian 11\" \/>\n<meta property=\"og:description\" content=\"Wondering how to install Drupal on Debian 11? Let&#039;s find out! Read our tutorial to learn more about this topic.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-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=\"2023-02-01T18:30:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/how-to-install-drupal-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:title\" content=\"How to Install Drupal on Debian 11\" \/>\n<meta name=\"twitter:description\" content=\"Wondering how to install Drupal on Debian 11? Let&#039;s find out! Read our tutorial to learn more about this topic.\" \/>\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=\"6 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-drupal-on-debian-11\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-drupal-on-debian-11\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Drupal on Debian 11\",\"datePublished\":\"2023-02-01T18:30:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-drupal-on-debian-11\\\/\"},\"wordCount\":696,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-drupal-on-debian-11\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/how-to-install-drupal-on-debian-11.webp\",\"keywords\":[\"debian 11\",\"drupal\",\"how to install\"],\"articleSection\":[\"CMS, CRM, ERP\",\"Debian\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-drupal-on-debian-11\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-drupal-on-debian-11\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-drupal-on-debian-11\\\/\",\"name\":\"How to Install Drupal on Debian 11 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-drupal-on-debian-11\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-drupal-on-debian-11\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/how-to-install-drupal-on-debian-11.webp\",\"datePublished\":\"2023-02-01T18:30:50+00:00\",\"description\":\"Wondering how to install Drupal on Debian 11? Let's find out! Read our tutorial to learn more about this topic.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-drupal-on-debian-11\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-drupal-on-debian-11\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-drupal-on-debian-11\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/how-to-install-drupal-on-debian-11.webp\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/how-to-install-drupal-on-debian-11.webp\",\"width\":742,\"height\":372,\"caption\":\"how to install drupal on debian 11\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-drupal-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 Drupal 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 Drupal on Debian 11 | RoseHosting","description":"Wondering how to install Drupal on Debian 11? Let's find out! Read our tutorial to learn more about this topic.","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-drupal-on-debian-11\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Drupal on Debian 11","og_description":"Wondering how to install Drupal on Debian 11? Let's find out! Read our tutorial to learn more about this topic.","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-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":"2023-02-01T18:30:50+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/how-to-install-drupal-on-debian-11.webp","type":"image\/webp"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_title":"How to Install Drupal on Debian 11","twitter_description":"Wondering how to install Drupal on Debian 11? Let's find out! Read our tutorial to learn more about this topic.","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-debian-11\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-debian-11\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Drupal on Debian 11","datePublished":"2023-02-01T18:30:50+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-debian-11\/"},"wordCount":696,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-debian-11\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/how-to-install-drupal-on-debian-11.webp","keywords":["debian 11","drupal","how to install"],"articleSection":["CMS, CRM, ERP","Debian","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-debian-11\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-debian-11\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-debian-11\/","name":"How to Install Drupal on Debian 11 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-debian-11\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-debian-11\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/how-to-install-drupal-on-debian-11.webp","datePublished":"2023-02-01T18:30:50+00:00","description":"Wondering how to install Drupal on Debian 11? Let's find out! Read our tutorial to learn more about this topic.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-debian-11\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-debian-11\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-debian-11\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/how-to-install-drupal-on-debian-11.webp","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/01\/how-to-install-drupal-on-debian-11.webp","width":742,"height":372,"caption":"how to install drupal on debian 11"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-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 Drupal 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\/44560","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=44560"}],"version-history":[{"count":8,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/44560\/revisions"}],"predecessor-version":[{"id":45917,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/44560\/revisions\/45917"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/44840"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=44560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=44560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=44560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}