<?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 &#8211; Hostry Help Center</title>
	<atom:link href="https://help.hostry.com/article-tags/drupal/feed/" rel="self" type="application/rss+xml" />
	<link>https://help.hostry.com</link>
	<description>Full information on how to use HOSTRY, provided by 24/7 community based support</description>
	<lastBuildDate>Tue, 03 Aug 2021 10:24:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.13</generator>

<image>
	<url>https://help.hostry.com/wp-content/uploads/cache/2021/01/cropped-apple-icon-180x180-1/836712163.png</url>
	<title>Drupal &#8211; Hostry Help Center</title>
	<link>https://help.hostry.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How To Install Drupal CMS using Nginx on Ubuntu 20.04</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-drupal-cms-using-nginx-on-ubuntu-20-04/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-drupal-cms-using-nginx-on-ubuntu-20-04/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Tue, 03 Aug 2021 09:39:19 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=4090</guid>

					<description><![CDATA[Drupal is a dedicated CMS platform. It is written in PHP and is open source. This CMS is very popular and has many free templates and plugins. In this article, you will learn how to install Drupal 9 with Nginx on Ubuntu 20.04. On the Hostry website, in the services [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong><a href="https://www.drupal.org/">Drupal</a></strong> is a dedicated CMS platform. It is written in PHP and is open source. This CMS is very popular and has many free templates and plugins. In this article, you will learn how to install Drupal 9 with Nginx on <strong>Ubuntu 20.04</strong>.</p>



<blockquote class="wp-block-quote"><p><strong>On the Hostry website, in the services section, you can select a server with LAMP already installed, you will not need to additionally install it.</strong></p></blockquote>



<figure class="wp-block-image size-large is-resized"><img src="https://help.hostry.com/wp-content/uploads/2021/08/Снимок-экрана-от-2021-08-03-09-55-11-1024x599.png" alt="" class="wp-image-4095" width="831" height="486" srcset="https://help.hostry.com/wp-content/uploads/2021/08/Снимок-экрана-от-2021-08-03-09-55-11-1024x599.png 1024w, https://help.hostry.com/wp-content/uploads/2021/08/Снимок-экрана-от-2021-08-03-09-55-11-300x175.png 300w, https://help.hostry.com/wp-content/uploads/2021/08/Снимок-экрана-от-2021-08-03-09-55-11-768x449.png 768w, https://help.hostry.com/wp-content/uploads/2021/08/Снимок-экрана-от-2021-08-03-09-55-11-50x29.png 50w, https://help.hostry.com/wp-content/uploads/2021/08/Снимок-экрана-от-2021-08-03-09-55-11-920x538.png 920w, https://help.hostry.com/wp-content/uploads/2021/08/Снимок-экрана-от-2021-08-03-09-55-11-600x351.png 600w, https://help.hostry.com/wp-content/uploads/2021/08/Снимок-экрана-от-2021-08-03-09-55-11-320x187.png 320w, https://help.hostry.com/wp-content/uploads/2021/08/Снимок-экрана-от-2021-08-03-09-55-11.png 1083w" sizes="(max-width: 831px) 100vw, 831px" /></figure>



<p>Once you have selected this option, you will need to configure a few things to get Drupal up and running.</p>



<h2 id="configuring-nginx-for-this-cms" >Configuring Nginx for this CMS</h2>



<p>The first step is to make changes to your default Nginx server configuration block to use the PHP processor. This is because we will be using the IP address to access the portal:</p>



<pre class="wp-block-code"><code>nano /etc/nginx/sites-available/default</code></pre>



<p>You need to replace the entire contents of the file with the text shown below. Then change the IP address of the example (192.1.3.4) to the IP address of your server.</p>



<pre class="wp-block-code"><code>server {
    listen 80 default_server;
    listen &#91;::]:80 default_server;

    root /var/www/html/drupal;

    index index.html index.htm index.nginx-debian.html index.php;

    server_name 192.1.3.4;

    location / {
        try_files $uri $uri/ /index.php$is_args$args;
    }

    location = /favicon.ico { log_not_found off; access_log off; }
    location = /robots.txt { log_not_found off; access_log off; allow all; }
    location ~* \.(css|gif|ico|jpeg|jpg|js|png)$ {
        expires max;
        log_not_found off;
    }

    location ~ \.php$ {
        try_files $uri =404;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }
}</code></pre>



<p>Then, after a successful change, you can try testing:</p>



<pre class="wp-block-code"><code>nginx -t</code></pre>



<p><strong>Restart</strong> your <strong>Nginx</strong> so that all changes are successfully updated</p>



<pre class="wp-block-code"><code>systemctl restart nginx</code></pre>



<h2 id="configuring-mariadb-for-drupal" >Configuring MariaDB for Drupal</h2>



<p>First you need to log into <strong>MariaDB</strong></p>



<pre class="wp-block-code"><code>mariadb</code></pre>



<p>Create a database named </p>



<pre class="wp-block-code"><code>CREATE DATABASE drupal;</code></pre>



<p>Then you need to grant privileges to the <strong>drupal</strong> database</p>



<pre class="wp-block-code"><code>GRANT ALL ON drupal.* TO 'drupal'@'localhost' IDENTIFIED BY 'StrongPassword';</code></pre>



<p>Then you need to update for the changes to take effect:</p>



<pre class="wp-block-code"><code>FLUSH PRIVILEGES;</code></pre>



<p>The last step is to log out of <strong>MariaDB</strong></p>



<pre class="wp-block-code"><code>\q</code></pre>



<h2 id="installing-drupal" >Installing Drupal</h2>



<p>If you don&#8217;t have unzip installed yet, you can install it as follows:</p>



<pre class="wp-block-code"><code>apt install unzip</code></pre>



<p>Download the latest version of Drupal from the Drupal download page</p>



<p><a href="https://www.drupal.org/download">https://www.drupal.org/download</a></p>



<p>Extract the compressed file and browse to it.</p>



<pre class="wp-block-code"><code>unzip drupal-9.1.4.zip
cd drupal-9.1.4</code></pre>



<p>Create directory <strong>/var/www/html/drupal</strong></p>



<pre class="wp-block-code"><code>mkdir /var/www/html/drupal</code></pre>



<p>Move all files in the current directory to <strong>/var/www/html/drupal</strong> directory</p>



<pre class="wp-block-code"><code>mv * /var/www/html/drupal</code></pre>



<p>Go to <strong>var/www/html/drupal/sites/default </strong>directory and copy the default.settings.php config file to settings.php</p>



<pre class="wp-block-code"><code>cd /var/www/html/drupal/sites/default
cp default.settings.php settings.php</code></pre>



<p>Set the ownership of the <strong>drupal</strong> directory for the current user and group</p>



<pre class="wp-block-code"><code>chown -R www-data:www-data /var/www/html/drupal/
chmod -R 755 /var/www/html/drupal/</code></pre>



<p>Access the Drupal page through a browser using your IP address. For example:</p>



<p><a href="http://192.1.3.4">http://192.1.3.4</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-drupal-cms-using-nginx-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>393</slash:comments>
		
		
			</item>
	</channel>
</rss>
