<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Drupal Archives - LinuxTuto</title>
	<atom:link href="https://www.linuxtuto.com/tag/drupal/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.linuxtuto.com/tag/drupal/</link>
	<description>Linux Sysadmin and DevOps blog</description>
	<lastBuildDate>Tue, 06 May 2025 20:23:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.linuxtuto.com/wp-content/uploads/2022/01/cropped-LT_faveicon-32x32.png</url>
	<title>Drupal Archives - LinuxTuto</title>
	<link>https://www.linuxtuto.com/tag/drupal/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">201456972</site>	<item>
		<title>How to Install Drupal on Ubuntu 24.04</title>
		<link>https://www.linuxtuto.com/how-to-install-drupal-on-ubuntu-24-04/</link>
					<comments>https://www.linuxtuto.com/how-to-install-drupal-on-ubuntu-24-04/#respond</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Mon, 05 Aug 2024 13:30:01 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1779</guid>

					<description><![CDATA[<p>Drupal is an open-source content management system (CMS) used for building and managing websites and web applications. It is highly flexible and customizable, making it...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-drupal-on-ubuntu-24-04/">How to Install Drupal on Ubuntu 24.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Drupal is an open-source content management system (CMS) used for building and managing websites and web applications. It is highly flexible and customizable, making it suitable for a wide range of web projects, from simple blogs to complex enterprise websites.</p>
<p>It is used by a wide range of organizations, including educational institutions, non-profits, businesses, and government agencies, to build websites that require robust content management, high security, and flexibility.</p>
<p>In this tutorial, we will show you how to install Drupal on your Ubuntu 24.04 OS.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 1: Update Operating System</span></h2>
<p>Update your <strong>Ubuntu</strong> <strong>24.04</strong> operating system to make sure all existing packages are up to date:</p>
<pre><code># apt update &amp;&amp; apt upgrade -y</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install Nginx webserver</span></h2>
<p>You can install Nginx via <strong>apt</strong> package manager by executing the following command.</p>
<pre><code># apt install nginx</code></pre>
<p>You can start the Nginx service and configure it to run on startup by entering the following commands:</p>
<pre><code># systemctl start nginx
# systemctl enable nginx</code></pre>
<p>Verify the status of the Nginx service using <strong>systemctl status</strong> command:</p>
<pre><code># systemctl status nginx</code></pre>
<p>Output:</p>
<pre><code>● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; preset: enabled)
     Active: active (running)
       Docs: man:nginx(8)
   Main PID: 10412 (nginx)
      Tasks: 2 (limit: 2218)
     Memory: 1.7M (peak: 1.9M)
        CPU: 23ms
     CGroup: /system.slice/nginx.service
             ├─10412 "nginx: master process /usr/sbin/nginx -g daemon on; master_process on;"
             └─10413 "nginx: worker process"</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: Install PHP and PHP extensions for Drupal</span></h2>
<p>By default, Ubuntu 24.04 comes with <a href="https://www.linuxtuto.com/how-to-install-php-8-3-on-ubuntu-22-04/">PHP version 8.3</a>.  You can install PHP and other supporting packages using the following command:</p>
<pre><code># apt install php php-{opcache,gd,curl,mysqlnd,intl,json,ldap,mbstring,mysqlnd,xml,zip}</code></pre>
<p>Verify if PHP is installed.</p>
<pre><code>php -v</code></pre>
<pre><code>Output:
PHP 8.3.6 (cli) (built: Jun 13 2024 15:23:20) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.6, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.6, Copyright (c), by Zend Technologies</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Install MySQL and create a database</span></h2>
<p>You can install the MySQL server with the following command:</p>
<pre><code># apt install mysql-server</code></pre>
<p>Start the database server daemon, and also enable it to start automatically at the next boot with the following commands:</p>
<pre><code># systemctl start mysql
# systemctl enable mysql</code></pre>
<p>Verify the status of the MySQL service using <strong>systemctl status</strong> command:</p>
<pre><code># systemctl status mysql</code></pre>
<p>Output:</p>
<pre><code>● mysql.service - MySQL Community Server
     Loaded: loaded (/usr/lib/systemd/system/mysql.service; enabled; preset: enabled)
     Active: active (running)
    Process: 24565 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
   Main PID: 24574 (mysqld)
     Status: "Server is operational"
      Tasks: 38 (limit: 2218)
     Memory: 362.8M (peak: 379.1M)
        CPU: 1.160s
     CGroup: /system.slice/mysql.service
             └─24574 /usr/sbin/mysqld</code></pre>
<p>By default, MySQL is not hardened. You can secure MySQL using the <code class=" prettyprinted"><span class="pln">mysql_secure_installation</span></code> script.</p>
<pre><code># mysql_secure_installation</code></pre>
<p>Configure it like this:</p>
<pre><code>- Set root password? [Y/n] <strong>Y</strong>
- Remove anonymous users? [Y/n] <strong>Y</strong>
- Disallow root login remotely? [Y/n] <strong>Y</strong>
- Remove test database and access to it? [Y/n] <strong>Y</strong>
- Reload privilege tables now? [Y/n] <strong>Y</strong></code></pre>
<p>Now run the command below to log in to the MySQL shell.</p>
<pre><code># mysql -u root -p</code></pre>
<p>Once you are logged in to your database server you need to create a database for the Drupal installation:</p>
<pre><code>mysql&gt; CREATE DATABASE drupaldb;
mysql&gt; CREATE USER 'drupaluser'@'localhost' IDENTIFIED BY 'Str0ngP@ss';
mysql&gt; GRANT ALL PRIVILEGES ON drupaldb. * TO 'drupaluser'@'localhost';
mysql&gt; FLUSH PRIVILEGES;
mysql&gt; exit;</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Download Drupal</span></h2>
<p>The latest version of Drupal is available to <a href="https://www.drupal.org/project/drupal/releases/11.0.0">download</a> from their website. You can download it with the following command:</p>
<pre><code># wget https://ftp.drupal.org/files/projects/drupal-11.0.0.zip</code></pre>
<p>Extract file into the folder <strong>/var/www/</strong> with the following command:</p>
<pre><code># unzip drupal-11.0.0.zip -d /var/www/</code></pre>
<p>Rename it to make it simpler:</p>
<pre><code># mv /var/www/drupal-11.0.0/ /var/www/drupal</code></pre>
<p>Enable permission for the Nginx webserver user to access the files:</p>
<pre><code># chown -R www-data:www-data /var/www/drupal/</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Configure Nginx for Drupal</span></h2>
<p>Create a new Nginx virtual host configuration file:</p>
<pre><code># nano /etc/nginx/conf.d/drupal.conf</code></pre>
<p>Paste the content as shown below:</p>
<pre><code>server {
  listen 80;
  server_name your-domain.com www.your-domain.com;
  root /var/www/drupal;
  index index.php index.html;
  charset utf-8;
  location / {
    try_files $uri $uri/ /index.php?$args;
  }
  location ~ .php$ {
    fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include fastcgi_params;
  }
}</code></pre>
<p>Remember to replace <strong><code>your-domain.com</code></strong> with the domain name of your server.</p>
<p>Save and exit the configuration file.</p>
<p>To implement the changes, restart Nginx webserver:</p>
<pre><code># systemctl restart nginx</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Access Drupal Web Interface</span></h2>
<p>Open your web browser and type the URL <strong><code>https://your-domain.com</code></strong>. You should see the Drupal installation page.</p>
<p><img fetchpriority="high" decoding="async" class="aligncenter size-large wp-image-1781" src="https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_01-900x392.webp" alt="Drupal Choose Language" width="900" height="392" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_01-900x392.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_01-300x131.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_01-768x334.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_01-1536x668.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_01-1222x532.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_01-897x390.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_01-684x298.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_01.webp 1914w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>Choose your preferred language and hit <strong>Save and continue.</strong> You will get the following screen:</p>
<p><img decoding="async" class="aligncenter wp-image-1783 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_02-900x392.webp" alt="Drupal Choose profile" width="900" height="392" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_02-900x392.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_02-300x131.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_02-768x334.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_02-1536x669.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_02-1222x532.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_02-897x390.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_02-684x298.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_02.webp 1916w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>Choose <strong>Standard </strong>and hit<strong> Save and continue</strong>.</p>
<p><img decoding="async" class="aligncenter wp-image-1784 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_03-900x507.webp" alt="Set up database" width="900" height="507" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_03-900x507.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_03-300x169.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_03-768x433.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_03-1536x865.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_03-1222x688.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_03-897x505.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_03-684x385.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_03.webp 1916w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>Fill in your database settings and hit <strong>Save and continue</strong>.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1785 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_04-900x391.webp" alt="Drupal Install site" width="900" height="391" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_04-900x391.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_04-300x130.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_04-768x334.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_04-1536x668.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_04-1222x532.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_04-897x390.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_04-684x298.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_04.webp 1915w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Then fill in some basic information about your site and then hit <strong><code>Save and continue</code></strong>.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1786" src="https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_05-900x514.webp" alt="" width="900" height="514" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_05-900x514.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_05-300x171.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_05-768x438.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_05-1536x877.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_05-1222x698.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_05-897x512.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_05-684x390.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_05.webp 1890w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>You will get the dashboard in the following screen:</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1787 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_06-900x513.webp" alt="Drupal Dashboard" width="900" height="513" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_06-900x513.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_06-300x171.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_06-768x438.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_06-1536x876.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_06-1222x697.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_06-897x512.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_06-684x390.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_06.webp 1892w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Installation of Drupal has been completed. Now revert the permissions for the <strong>settings.php</strong> file:<span id="ezoic-pub-ad-placeholder-116" class="ezoic-adpicker-ad"></span></p>
<pre><code># chmod 644 /var/www/html/drupal/sites/default/settings.php</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>That’s it. You have successfully installed Drupal on Ubuntu 24.04 OS.</p>
<p>For additional help or useful information, we recommend you to check  <a href="https://www.drupal.org/documentation" target="_blank" rel="noopener">the official Drupal documentation.</a></p>
<p>If you have any questions please leave a comment below.</p>
<div id="bshare-social" class="baby-sideshare share-content after-content icon show">
<div class="share_hide_show content_hide_show"></div>
</div>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-drupal-on-ubuntu-24-04/">How to Install Drupal on Ubuntu 24.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-drupal-on-ubuntu-24-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1779</post-id>	</item>
		<item>
		<title>How to Install Drupal 9 on Ubuntu 22.04</title>
		<link>https://www.linuxtuto.com/how-to-install-drupal-9-on-ubuntu-22-04/</link>
					<comments>https://www.linuxtuto.com/how-to-install-drupal-9-on-ubuntu-22-04/#respond</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Fri, 20 May 2022 20:27:27 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Drupal]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=386</guid>

					<description><![CDATA[<p>Drupal is an open-source and popular content management tool that is the foundation of many websites across the internet. It has great standard features, like...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-drupal-9-on-ubuntu-22-04/">How to Install Drupal 9 on Ubuntu 22.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Drupal is an open-source and popular content management tool that is the foundation of many websites across the internet. It has great standard features, like easy content authoring, reliable performance, and excellent security. Flexibility and modularity are some of the core principles that set it apart from the rest.</p>
<p>In this tutorial, we will show you how to install Drupal 9 on your Ubuntu 22.04 OS.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 1: Update Operating System</span></h2>
<p>Update your <strong>Ubuntu</strong> <strong>22.04</strong> operating system to make sure all existing packages are up to date:</p>
<pre><code>$ sudo apt update &amp;&amp; sudo apt upgrade -y</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install Apache webserver</span></h2>
<p>You can install Apache via <code>apt</code> package manager by executing the following command.</p>
<pre><code>$ sudo apt install apache2</code></pre>
<p>You can start the Apache service and configure it to run on startup by entering the following commands:</p>
<pre><code>$ sudo systemctl start apache2
$ sudo systemctl enable apache2</code></pre>
<p>Verify the status of the <code>Apache</code> service using <code>systemctl status</code> command:</p>
<pre><code>$ sudo systemctl status apache2</code></pre>
<p>Output:</p>
<pre><code>● apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: active (running)
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 3170 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
   Main PID: 3174 (apache2)
      Tasks: 12 (limit: 2200)
     Memory: 246.8M
        CPU: 18.104s
     CGroup: /system.slice/apache2.service
             ├─3174 /usr/sbin/apache2 -k start
             ├─3175 /usr/sbin/apache2 -k start
             ├─3176 /usr/sbin/apache2 -k start</code></pre>
<p>You can test to make sure everything is working correctly by navigating to:</p>
<pre><code>http://your-IP-address</code></pre>
<p>If everything is configured properly, you should be greeted by the default Apache2 Page, as seen below.</p>
<p><img loading="lazy" decoding="async" class="size-large wp-image-367 aligncenter" src="https://i0.wp.com/www.linuxtuto.com/wp-content/uploads/2022/04/Apache2_Ubuntu.jpg?resize=897%2C505&amp;ssl=1" sizes="auto, (max-width: 897px) 100vw, 897px" srcset="https://i0.wp.com/www.linuxtuto.com/wp-content/uploads/2022/04/Apache2_Ubuntu.jpg?resize=1024%2C577&amp;ssl=1 1024w, https://i0.wp.com/www.linuxtuto.com/wp-content/uploads/2022/04/Apache2_Ubuntu.jpg?resize=300%2C169&amp;ssl=1 300w, https://i0.wp.com/www.linuxtuto.com/wp-content/uploads/2022/04/Apache2_Ubuntu.jpg?resize=768%2C432&amp;ssl=1 768w, https://i0.wp.com/www.linuxtuto.com/wp-content/uploads/2022/04/Apache2_Ubuntu.jpg?resize=1536%2C865&amp;ssl=1 1536w, https://i0.wp.com/www.linuxtuto.com/wp-content/uploads/2022/04/Apache2_Ubuntu.jpg?resize=1222%2C688&amp;ssl=1 1222w, https://i0.wp.com/www.linuxtuto.com/wp-content/uploads/2022/04/Apache2_Ubuntu.jpg?resize=897%2C505&amp;ssl=1 897w, https://i0.wp.com/www.linuxtuto.com/wp-content/uploads/2022/04/Apache2_Ubuntu.jpg?resize=684%2C385&amp;ssl=1 684w, https://i0.wp.com/www.linuxtuto.com/wp-content/uploads/2022/04/Apache2_Ubuntu.jpg?w=1918&amp;ssl=1 1918w, https://i0.wp.com/www.linuxtuto.com/wp-content/uploads/2022/04/Apache2_Ubuntu.jpg?w=1794&amp;ssl=1 1794w" alt="Apache2 on Ubuntu 22.04" width="897" height="505" data-recalc-dims="1" /></p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: Install PHP and PHP extensions for Drupal 9</span></h2>
<p>By default, Ubuntu 22.04 comes with <a href="https://www.linuxtuto.com/how-to-install-php-8-1-on-debian-11/">PHP version 8.1</a>.  You can install PHP and other supporting packages using the following command:</p>
<pre><code>$ sudo apt install php libapache2-mod-php php-dev php-bcmath php-intl php-soap php-zip php-curl php-mbstring php-mysql php-gd php-xml</code></pre>
<p>Verify if PHP is installed.</p>
<pre><code>php -v</code></pre>
<pre><code>Output:
PHP 8.1.6 (cli) (built: May 17 2022 16:46:54) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.6, Copyright (c) Zend Technologies
with Zend OPcache v8.1.6, Copyright (c), by Zend Technologies
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Install MySQL and create a database</span></h2>
<p>You can install MySQL with the following command:</p>
<pre><code>$ sudo apt install mysql-server</code></pre>
<p>Start the database server daemon, and also enable it to start automatically at the next boot with the following commands:</p>
<pre><code>$ systemctl start mysql
$ systemctl enable mysql</code></pre>
<p>Verify the status of the <code>MySQL</code> service using <code>systemctl status</code> command:</p>
<pre><code>$ sudo systemctl status mysql</code></pre>
<p>Output:</p>
<pre><code>● mysql.service - MySQL Community Server
     Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
     Active: active (running)
    Process: 832 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
   Main PID: 1235 (mysqld)
     Status: "Server is operational"
      Tasks: 46 (limit: 2200)
     Memory: 582.6M
        CPU: 1min 11.087s
     CGroup: /system.slice/mysql.service
             └─1235 /usr/sbin/mysqld
</code></pre>
<p>Once the database server is installed, log into the MariaDB prompt:</p>
<pre><code>$ sudo  mysql -u root</code></pre>
<p>To create a database, database user, and grant all privileges to the database user run the following commands:</p>
<pre><code>mysql&gt; CREATE DATABASE drupal;
mysql&gt; CREATE USER 'drupal_user'@'localhost' IDENTIFIED BY 'Drupal_Passw0rd!';
mysql&gt; GRANT ALL ON drupal.* TO 'drupal_user'@'localhost';
mysql&gt; FLUSH PRIVILEGES;
mysql&gt; EXIT</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Download Drupal 9</span></h2>
<p>We will now download Drupal 9 from the Drupal Official site.</p>
<p>Use the following command to download Drupal 9:</p>
<pre><code>$ sudo wget https://ftp.drupal.org/files/projects/drupal-9.3.13.zip</code></pre>
<p>Extract file into the folder <strong>/var/www/html/</strong> with the following command:</p>
<pre><code>$ sudo apt -y install unzip 
$ sudo unzip drupal-9.3.13.zip -d /var/www/html/</code></pre>
<p>To make things simpler, rename the extracted directory <code>drupal-9.3.13</code> to just drupal:</p>
<pre><code>$ sudo mv /var/www/html/drupal-9.3.13/ /var/www/html/drupal/</code></pre>
<p>Enable permission for the Apache webserver user to access the files,</p>
<pre><code>$ sudo chown -R www-data:www-data /var/www/html/drupal/</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Configure Apache Web Server for Drupal 9</span></h2>
<p>Navigate to <code>/etc/apache2/sites-available</code> directory and run the following command to create a configuration file for your installation:</p>
<pre><code class="hljs shell"><span class="hljs-meta">$</span><span class="bash"> sudo nano /etc/apache2/sites-available/drupal.conf</span></code></pre>
<p>Add the following content:</p>
<pre><code>&lt;VirtualHost *:80&gt;

ServerAdmin webmaster@your-domain.com

ServerName your-domain.com
ServerAlias www.your-domain.com
DocumentRoot /var/www/html/drupal

&lt;Directory /var/www/html/drupal/&gt;
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
&lt;/Directory&gt;

ErrorLog ${APACHE_LOG_DIR}/your-domain.com_error.log
CustomLog ${APACHE_LOG_DIR}/your-domain.com_access.log combined

&lt;/VirtualHost&gt;
</code></pre>
<p>Save the file and Exit.</p>
<p>Enable the Drupal 9 virtual host:</p>
<pre><code>$ sudo a2ensite drupal.conf</code></pre>
<p>After that, restart the Apache web server.</p>
<pre><code>$ sudo systemctl restart apache2</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Access Drupal 9 Web Installer</span></h2>
<p>Open your browser type your domain e.g <code>http://your-domain.com</code>  and complete the required steps to finish the installation.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-392 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_choose_language-1024x487.jpg" alt="Choose Language" width="1024" height="487" srcset="https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_choose_language-1024x487.jpg 1024w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_choose_language-300x143.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_choose_language-768x365.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_choose_language-1536x731.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_choose_language-1222x581.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_choose_language-897x427.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_choose_language-684x325.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_choose_language.jpg 1917w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Choose your preferred language and hit <strong><code>Save and continue</code></strong>, you will get the following screen:</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-393 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_choose_profile-1024x485.jpg" alt="Select an installation profile" width="1024" height="485" srcset="https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_choose_profile-1024x485.jpg 1024w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_choose_profile-300x142.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_choose_profile-768x364.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_choose_profile-1536x728.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_choose_profile-1222x579.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_choose_profile-897x425.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_choose_profile-684x324.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_choose_profile.jpg 1916w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Choose <strong>Standard </strong>and hit<strong> <code>Save and continue</code></strong>. You will get the following screen:</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-399 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_set_up_database-1024x487.jpg" alt="Database Configuration" width="1024" height="487" srcset="https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_set_up_database-1024x487.jpg 1024w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_set_up_database-300x143.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_set_up_database-768x365.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_set_up_database-1536x730.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_set_up_database-1222x581.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_set_up_database-897x426.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_set_up_database-684x325.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_set_up_database.jpg 1917w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Fill in your database settings and hit <strong><code>Save and continue</code></strong>.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-400 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_configuration_site-1024x720.jpg" alt="Drupal Configuration Site" width="1024" height="720" srcset="https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_configuration_site-1024x720.jpg 1024w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_configuration_site-300x211.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_configuration_site-768x540.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_configuration_site-1222x859.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_configuration_site-897x631.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_configuration_site-684x481.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_configuration_site.jpg 1536w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Fill in some basic information about your site and then hit <strong><code>Save and continue</code></strong>. You will get the dashboard in the following screen:</p>
<p><img loading="lazy" decoding="async" class="size-large wp-image-401 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_dashboard-1024x555.jpg" alt="Drupal Dashboard" width="1024" height="555" srcset="https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_dashboard-1024x555.jpg 1024w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_dashboard-300x163.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_dashboard-768x416.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_dashboard-1536x832.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_dashboard-1222x662.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_dashboard-897x486.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_dashboard-684x371.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2022/05/drupal_dashboard.jpg 1895w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Installation of Drupal has been completed. Now revert the permissions for the <strong>settings.php</strong> file:<span id="ezoic-pub-ad-placeholder-116" class="ezoic-adpicker-ad"></span></p>
<pre><code>$ sudo chmod 644 /var/www/html/drupal/sites/default/settings.php</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>That’s it. You have successfully installed Drupal 9 on Ubuntu 22.04</p>
<p>If you have any questions please leave a comment below.</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-drupal-9-on-ubuntu-22-04/">How to Install Drupal 9 on Ubuntu 22.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-drupal-9-on-ubuntu-22-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">386</post-id>	</item>
	</channel>
</rss>
