{"id":42384,"date":"2022-08-10T12:30:39","date_gmt":"2022-08-10T17:30:39","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=42384"},"modified":"2022-10-05T01:22:35","modified_gmt":"2022-10-05T06:22:35","slug":"how-to-install-drupal-on-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-ubuntu-22-04\/","title":{"rendered":"How to Install Drupal on Ubuntu 22.04"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-42746\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/07\/how-to-install-drupal-on-ubuntu-22.04.webp\" alt=\"how to install drupal on ubuntu 22.04\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/07\/how-to-install-drupal-on-ubuntu-22.04.webp 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/07\/how-to-install-drupal-on-ubuntu-22.04-300x150.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/07\/how-to-install-drupal-on-ubuntu-22.04-150x75.webp 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>In this tutorial, we are going to show you in step-by-step detail how to install <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting\/\">Drupal on Ubuntu 22.04 OS<\/a>.<\/p>\n<p>Drupal is a free and open-source CMS(Content Management System) written in PHP. Drupal allows us to customize the webpage easily according to our needs. Drupal is used by millions of people and organizations around the globe to build and maintain their websites. In this installation, we will install Drupal and make the website up and running with the LAMP stack.<\/p>\n<p>For this installation, we will need around 15 minutes. Let&#8217;s get started!<\/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-69e92993ac629\" 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-69e92993ac629\"  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-ubuntu-22-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-drupal-on-ubuntu-22-04\/#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-ubuntu-22-04\/#Step-2-Install-Apache-Web-Server\" >Step 2. Install Apache Web Server<\/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-ubuntu-22-04\/#Step-3-Install-PHP81-with-dependencies\" >Step 3. Install PHP8.1 with dependencies<\/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-ubuntu-22-04\/#Step-4-Install-MariaDB-database-server\" >Step 4. Install MariaDB database 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-drupal-on-ubuntu-22-04\/#Step-5-Create-Drupal-Database-and-User\" >Step 5. Create 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-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-ubuntu-22-04\/#Step-6-Download-and-Install-Drupal\" >Step 6. Download and Install Drupal<\/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-drupal-on-ubuntu-22-04\/#Step-7-Create-Apache-Virtual-Host-File\" >Step 7. 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-9\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-ubuntu-22-04\/#Step-8-Finish-the-installation\" >Step 8. Finish the 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 Ubuntu 22.04 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>Before we start to install the software, we need to update the system packages to the latest versions available.<\/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-Apache-Web-Server\"><\/span>Step 2. Install Apache Web Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To install the Apache Web server execute the following command:<\/p>\n<pre>sudo apt install apache2<\/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@vps:~# sudo systemctl status apache2\r\n\u25cf apache2.service - The Apache HTTP Server\r\n     Loaded: loaded (\/lib\/systemd\/system\/apache2.service; enabled; vendor preset: enabled)\r\n     Active: active (running) since Fri 2022-06-17 16:10:39 UTC; 1 day 3h ago\r\n       Docs: https:\/\/httpd.apache.org\/docs\/2.4\/\r\n   Main PID: 667 (apache2)\r\n      Tasks: 9 (limit: 4579)\r\n     Memory: 22.1M\r\n        CPU: 14.658s\r\n     CGroup: \/system.slice\/apache2.service\r\n             \u251c\u2500  667 \/usr\/sbin\/apache2 -k start\r\n             \u251c\u250024399 \/usr\/sbin\/apache2 -k start\r\n             \u251c\u250024400 \/usr\/sbin\/apache2 -k start\r\n             \u251c\u250024401 \/usr\/sbin\/apache2 -k start\r\n             \u251c\u250024402 \/usr\/sbin\/apache2 -k start\r\n             \u251c\u250024403 \/usr\/sbin\/apache2 -k start\r\n             \u251c\u250024404 \/usr\/sbin\/apache2 -k start\r\n             \u251c\u250024405 \/usr\/sbin\/apache2 -k start\r\n             \u2514\u250024406 \/usr\/sbin\/apache2 -k start\r\n\r\nJun 17 16:10:38 host.test.vps systemd[1]: Starting The Apache HTTP Server...<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-3-Install-PHP81-with-dependencies\"><\/span>Step 3. Install PHP8.1 with dependencies<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To install PHP8.1 with extensions, execute the following commands:<\/p>\n<pre>sudo apt-get install php8.1 php8.1-cli php8.1-common php8.1-imap php8.1-redis php8.1-snmp php8.1-xml php8.1-zip php8.1-mbstring php8.1-curl libapache2-mod-php\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-4-Install-MariaDB-database-server\"><\/span>Step 4. Install MariaDB database server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To install the MariaDB database server, execute the command below.<\/p>\n<pre>sudo apt install mariadb-server<\/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.6.7 database server\r\n     Loaded: loaded (\/lib\/systemd\/system\/mariadb.service; enabled; vendor preset: enabled)\r\n     Active: active (running) since Sat 2022-06-18 19:25:52 UTC; 1min 2s ago\r\n       Docs: man:mariadbd(8)\r\n             https:\/\/mariadb.com\/kb\/en\/library\/systemd\/\r\n   Main PID: 44866 (mariadbd)\r\n     Status: \"Taking your SQL requests now...\"\r\n      Tasks: 9 (limit: 4579)\r\n     Memory: 57.0M\r\n        CPU: 3.498s\r\n     CGroup: \/system.slice\/mariadb.service\r\n             \u2514\u250044866 \/usr\/sbin\/mariadbd\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-5-Create-Drupal-Database-and-User\"><\/span>Step 5. Create Drupal Database and User<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Next, we need to create a Drupal database, a Drupal user, and grant the permissions for that user to the database.<\/p>\n<pre> CREATE USER 'drupal'@'localhost' IDENTIFIED BY 'YourStrongPasswordHere';\r\n CREATE DATABASE drupal;\r\n GRANT ALL PRIVILEGES ON drupal.* TO 'drupal'@'localhost';\r\n FLUSH PRIVILEGES;\r\n EXIT;\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-6-Download-and-Install-Drupal\"><\/span>Step 6. Download and Install Drupal<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Before we install Drupal, first, we need to download it in the default Apache document root:<\/p>\n<pre>cd \/var\/www\/html\r\n\r\nwget https:\/\/ftp.drupal.org\/files\/projects\/drupal-9.3.16.zip\r\n\r\nunzip drupal-9.3.16.zip\r\n\r\nmv drupal-9.3.16\/ drupal\/\r\n\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<h2><span class=\"ez-toc-section\" id=\"Step-7-Create-Apache-Virtual-Host-File\"><\/span>Step 7. 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 the file 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 the module.<\/p>\n<pre>sudo 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, restart the Apache service.<\/p>\n<pre>systemctl reload 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-8-Finish-the-installation\"><\/span>Step 8. Finish the installation<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Access your Drupal website at <b>http:\/\/yourdomain.com<\/b> to finish the installation.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-42385\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal1.jpg\" alt=\"\" width=\"892\" height=\"437\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal1.jpg 892w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal1-300x147.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal1-150x73.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal1-768x376.jpg 768w\" sizes=\"(max-width: 892px) 100vw, 892px\" \/><\/p>\n<p>On the second window, choose the standard installation and click the <b>Save and Continue<\/b> button.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-42386\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal2.jpg\" alt=\"\" width=\"915\" height=\"510\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal2.jpg 915w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal2-300x167.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal2-150x84.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal2-768x428.jpg 768w\" sizes=\"(max-width: 915px) 100vw, 915px\" \/><\/p>\n<p>The next step is to enter the database credentials created in <b>Step 5.<\/b> in this tutorial.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-42387\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal3.jpg\" alt=\"\" width=\"846\" height=\"586\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal3.jpg 846w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal3-300x208.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal3-150x104.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal3-768x532.jpg 768w\" sizes=\"(max-width: 846px) 100vw, 846px\" \/><\/p>\n<p>Once the database setup is done, you need to allow some time for the installation.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-42388\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal4.jpg\" alt=\"\" width=\"915\" height=\"467\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal4.jpg 915w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal4-300x153.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal4-150x77.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal4-768x392.jpg 768w\" sizes=\"(max-width: 915px) 100vw, 915px\" \/><\/p>\n<p>The last step is to configure the website specifications like website name, username, password, contact email and etc.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-42389\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal5.jpg\" alt=\"\" width=\"867\" height=\"514\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal5.jpg 867w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal5-300x178.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal5-150x89.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal5-768x455.jpg 768w\" sizes=\"(max-width: 867px) 100vw, 867px\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-42390\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal6.jpg\" alt=\"\" width=\"819\" height=\"620\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal6.jpg 819w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal6-300x227.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal6-150x114.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal6-768x581.jpg 768w\" sizes=\"(max-width: 819px) 100vw, 819px\" \/><\/p>\n<p>After the creation of the username and password, you will be automatically logged into the Drupal dashboard.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-large wp-image-42391\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal7-1024x455.jpg\" alt=\"\" width=\"1024\" height=\"455\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal7-1024x455.jpg 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal7-300x133.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal7-150x67.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal7-768x341.jpg 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal7-1320x586.jpg 1320w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/06\/drupal7.jpg 1349w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>That was all. You successfully installed and configured Drupal 9 on Ubuntu 22.04 with the LAMP stack.<\/p>\n<p>If you do not want to configure it on your own, you can sign up for one of our <a href=\"https:\/\/www.rosehosting.com\/nvme-hosting\/\">NVMe VPS plans<\/a> and submit a support ticket. Our admins are available 24\/7 and will start work on your request immediately. Always trust our epic support.<\/p>\n<p>If you liked this post on how to install Drupal on Ubuntu 22.04, please share it with your friends on social networks or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we are going to show you in step-by-step detail how to install Drupal on Ubuntu 22.04 OS. &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Drupal on Ubuntu 22.04\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-ubuntu-22-04\/#more-42384\" aria-label=\"Read more about How to Install Drupal on Ubuntu 22.04\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":42746,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,1698],"tags":[160,1603,59],"class_list":["post-42384","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-ubuntu","tag-drupal","tag-how-to-install","tag-ubuntu","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.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Drupal on Ubuntu 22.04 | RoseHosting<\/title>\n<meta name=\"description\" content=\"In this tutorial, we are going to show you in step-by-step detail how to install Drupal on Ubuntu 22.04 OS.\" \/>\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-ubuntu-22-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 Drupal on Ubuntu 22.04\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, we are going to show you in step-by-step detail how to install Drupal on Ubuntu 22.04 OS.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-ubuntu-22-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-08-10T17:30:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-05T06:22:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/07\/how-to-install-drupal-on-ubuntu-22.04.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 Ubuntu 22.04\" \/>\n<meta name=\"twitter:description\" content=\"In this tutorial, we are going to show you in step-by-step detail how to install Drupal on Ubuntu 22.04 OS.\" \/>\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=\"5 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-ubuntu-22-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-drupal-on-ubuntu-22-04\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Drupal on Ubuntu 22.04\",\"datePublished\":\"2022-08-10T17:30:39+00:00\",\"dateModified\":\"2022-10-05T06:22:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-drupal-on-ubuntu-22-04\\\/\"},\"wordCount\":543,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-drupal-on-ubuntu-22-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/how-to-install-drupal-on-ubuntu-22.04.webp\",\"keywords\":[\"drupal\",\"how to install\",\"ubuntu\"],\"articleSection\":[\"Tutorials\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-drupal-on-ubuntu-22-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-drupal-on-ubuntu-22-04\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-drupal-on-ubuntu-22-04\\\/\",\"name\":\"How to Install Drupal on Ubuntu 22.04 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-drupal-on-ubuntu-22-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-drupal-on-ubuntu-22-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/how-to-install-drupal-on-ubuntu-22.04.webp\",\"datePublished\":\"2022-08-10T17:30:39+00:00\",\"dateModified\":\"2022-10-05T06:22:35+00:00\",\"description\":\"In this tutorial, we are going to show you in step-by-step detail how to install Drupal on Ubuntu 22.04 OS.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-drupal-on-ubuntu-22-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-drupal-on-ubuntu-22-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-drupal-on-ubuntu-22-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/how-to-install-drupal-on-ubuntu-22.04.webp\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/how-to-install-drupal-on-ubuntu-22.04.webp\",\"width\":742,\"height\":372,\"caption\":\"how to install drupal on ubuntu 22.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-drupal-on-ubuntu-22-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Drupal on Ubuntu 22.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 Drupal on Ubuntu 22.04 | RoseHosting","description":"In this tutorial, we are going to show you in step-by-step detail how to install Drupal on Ubuntu 22.04 OS.","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-ubuntu-22-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Drupal on Ubuntu 22.04","og_description":"In this tutorial, we are going to show you in step-by-step detail how to install Drupal on Ubuntu 22.04 OS.","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-ubuntu-22-04\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2022-08-10T17:30:39+00:00","article_modified_time":"2022-10-05T06:22:35+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/07\/how-to-install-drupal-on-ubuntu-22.04.webp","type":"image\/webp"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_title":"How to Install Drupal on Ubuntu 22.04","twitter_description":"In this tutorial, we are going to show you in step-by-step detail how to install Drupal on Ubuntu 22.04 OS.","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-ubuntu-22-04\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-ubuntu-22-04\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Drupal on Ubuntu 22.04","datePublished":"2022-08-10T17:30:39+00:00","dateModified":"2022-10-05T06:22:35+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-ubuntu-22-04\/"},"wordCount":543,"commentCount":3,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-ubuntu-22-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/07\/how-to-install-drupal-on-ubuntu-22.04.webp","keywords":["drupal","how to install","ubuntu"],"articleSection":["Tutorials","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-ubuntu-22-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-ubuntu-22-04\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-ubuntu-22-04\/","name":"How to Install Drupal on Ubuntu 22.04 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-ubuntu-22-04\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-ubuntu-22-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/07\/how-to-install-drupal-on-ubuntu-22.04.webp","datePublished":"2022-08-10T17:30:39+00:00","dateModified":"2022-10-05T06:22:35+00:00","description":"In this tutorial, we are going to show you in step-by-step detail how to install Drupal on Ubuntu 22.04 OS.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-ubuntu-22-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-ubuntu-22-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-ubuntu-22-04\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/07\/how-to-install-drupal-on-ubuntu-22.04.webp","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/07\/how-to-install-drupal-on-ubuntu-22.04.webp","width":742,"height":372,"caption":"how to install drupal on ubuntu 22.04"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-drupal-on-ubuntu-22-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Drupal on Ubuntu 22.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\/42384","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=42384"}],"version-history":[{"count":5,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/42384\/revisions"}],"predecessor-version":[{"id":43269,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/42384\/revisions\/43269"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/42746"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=42384"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=42384"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=42384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}