<?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>Nginx Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/nginx/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 19 Jul 2021 22:48:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to enable HTTP/2 on Nginx web server</title>
		<link>https://www.osradar.com/enable-http-2-nginx-web-server/</link>
					<comments>https://www.osradar.com/enable-http-2-nginx-web-server/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 26 Jul 2021 00:46:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[web]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=31305</guid>

					<description><![CDATA[<p>Hello friends. Learning how to enable HTTP/2 on Nginx is a very good way to improve the security of your website. In addition to this, it also allows for better system loading. As is well known to many HTTP is the protocol that allows the transfer of information over the web. This protocol was improved [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/enable-http-2-nginx-web-server/">How to enable HTTP/2 on Nginx web server</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="has-line-data">Hello friends. Learning how to enable HTTP/2 on Nginx is a very good way to improve the security of your website. In addition to this, it also allows for better system loading.</p>



<p class="has-line-data">As is well known to many <strong>HTTP is the protocol that allows the transfer of information over the web</strong>. This protocol was improved and evolved little by little until it reached version 2 which incorporates many advantages in security and performance.</p>



<p class="has-line-data"><strong>HTTP/2 is a binary protocol that retains the same semantics as the HTTP1.X protocol</strong>, which means that all verbs, headers, etc. continue to work unchanged. This means that there is no need to rewrite the way connections are made in the server. With this new version, transfer speed is improved and connection security is added.</p>



<p class="has-line-data">Some advantages of using this protocol instead of HTTP 1.x are:</p>



<ul><li class="has-line-data" data-line-start="8" data-line-end="9">Faster loading speed</li><li class="has-line-data" data-line-start="9" data-line-end="10">Improved web positioning, thanks to the fact that Google values sites with better loading times.</li><li class="has-line-data" data-line-start="10" data-line-end="11">Less bandwidth consumption</li><li class="has-line-data" data-line-start="11" data-line-end="13">Immediate presentation of the results.</li></ul>



<p class="has-line-data">So if you have a website then you should enable HTTP/2 at the server level and you will learn how to do it today.</p>



<h2 class="code-line"><a id="Enabling_HTTP2_on_Nginx_15"></a>Enabling HTTP/2 on Nginx</h2>



<p class="has-line-data">In this case, I have used a clean install of Ubuntu 20.04. So, connect to it, and update it.</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p class="has-line-data">Proceed now, to install Nginx from the official Ubuntu repositories.</p>



<pre class="wp-block-preformatted">sudo apt install nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  fontconfig-config fonts-dejavu-core libfontconfig1 libgd3 libjbig0 libjpeg-turbo8 libjpeg8 libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter
  libnginx-mod-mail libnginx-mod-stream libtiff5 libwebp6 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxpm4 libxslt1.1 nginx-common nginx-core
Suggested packages:
  libgd-tools fcgiwrap nginx-doc ssl-cert
The following NEW packages will be installed:
  fontconfig-config fonts-dejavu-core libfontconfig1 libgd3 libjbig0 libjpeg-turbo8 libjpeg8 libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter
  libnginx-mod-mail libnginx-mod-stream libtiff5 libwebp6 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxpm4 libxslt1.1 nginx nginx-common nginx-core
0 upgraded, 23 newly installed, 0 to remove and 3 not upgraded.
Need to get 3,334 kB of archives.
After this operation, 11.6 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<p class="has-line-data">At the end of the installation, it is convenient to check the status of the service.</p>



<pre class="wp-block-preformatted">sudo systemctl status nginx
● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2021-07-19 18:30:45 CEST; 58s ago
       Docs: man:nginx(8)
   Main PID: 1649 (nginx)
      Tasks: 2 (limit: 2286)
     Memory: 4.1M
     CGroup: /system.slice/nginx.service
             ├─1649 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
             └─1650 nginx: worker process

Jul 19 18:30:45 osradar systemd[1]: Starting A high performance web server and a reverse proxy server...
Jul 19 18:30:45 osradar systemd[1]: Started A high performance web server and a reverse proxy server.</pre>



<p class="has-line-data">Now, it is necessary to obtain a new TLS certificate to enable HTTPS which is a previous step. This can be done quickly and easily using <code>certbot</code> and its nginx plugin.</p>



<p class="has-line-data">To install them, run this command</p>



<pre class="wp-block-preformatted">sudo apt install certbot python3-certbot-nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  python3-acme python3-certbot python3-configargparse python3-future python3-josepy python3-mock python3-openssl python3-parsedatetime python3-pbr python3-pyparsing
  python3-requests-toolbelt python3-rfc3339 python3-tz python3-zope.component python3-zope.event python3-zope.hookable python3-zope.interface
Suggested packages:
  python3-certbot-apache python-certbot-doc python-acme-doc python-certbot-nginx-doc python-future-doc python-mock-doc python-openssl-doc python3-openssl-dbg
  python-pyparsing-doc
Recommended packages:
  python3-icu
The following NEW packages will be installed:
  certbot python3-acme python3-certbot python3-certbot-nginx python3-configargparse python3-future python3-josepy python3-mock python3-openssl python3-parsedatetime
  python3-pbr python3-pyparsing python3-requests-toolbelt python3-rfc3339 python3-tz python3-zope.component python3-zope.event python3-zope.hookable
  python3-zope.interface
0 upgraded, 19 newly installed, 0 to remove and 3 not upgraded.
Need to get 1,143 kB of archives.
After this operation, 6,405 kB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<p class="has-line-data">Get the certificate for Nginx and your domain like this</p>



<pre class="wp-block-preformatted">sudo certbot --nginx -d [your-domain] -d www.[your-domain]</pre>



<p class="has-line-data">Now to complete the HTTP/2 enablement you need to modify the ServerBlock file of your website.</p>



<pre class="wp-block-preformatted">sudo nano /etc/nginx/sites-available/your-domain.conf </pre>



<p>And add the following lines before the `http` section </p>



<pre class="wp-block-preformatted">listen [::]:443 ssl http2 ipv6only=on;
listen 443 ssl http2;
ssl_protocols TLSv1.2;</pre>



<p class="has-line-data">In it, we indicate which is the protocol listening order that Nginx will use for the site configuration.</p>



<p class="has-line-data">For more information on how to create a server block for a website, we have <a href="https://www.osradar.com/create-nginx-server-block-centos-rhel-oracle-linux-8/" target="_blank" rel="noreferrer noopener">this post</a> and the official <a href="http://nginx.org/en/docs/" target="_blank" rel="noreferrer noopener">Nginx documentation</a>.</p>



<p class="has-line-data">Save your changes and close the text editor.</p>



<p class="has-line-data">In the end, restart Nginx to apply the changes.</p>



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



<p class="has-line-data">And with this, HTTP/2 on Nginx will be enabled.</p>



<p class="has-line-data">So, enjoy it.</p>



<h2 class="code-line"><a id="Conclusion_62"></a>Conclusion</h2>



<p class="has-line-data">In this post, you have learned something fundamental to improve the loading and speed of your web pages. This protocol change is an advantage that you can use to your advantage. As you can see the process is not strange at all and it is usable.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/enable-http-2-nginx-web-server/">How to enable HTTP/2 on Nginx web server</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/enable-http-2-nginx-web-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to enable the Brotli compression on Nginx and Ubuntu 20.04</title>
		<link>https://www.osradar.com/brotli-compression-nginx-ubuntu/</link>
					<comments>https://www.osradar.com/brotli-compression-nginx-ubuntu/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 22 Jul 2021 23:26:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[webserver]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=31294</guid>

					<description><![CDATA[<p>Hello, friends. On a website, the speed and size of the files are vital to avoid possible crashes on the server. So today in this post, you will learn how to enable Brotli compression on Nginx on Ubuntu 20.04. Why do it? The algorithm that Brotli uses is more efficient at compressing files than other [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/brotli-compression-nginx-ubuntu/">How to enable the Brotli compression on Nginx and Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="has-line-data">Hello, friends. On a website, the speed and size of the files are vital to avoid possible crashes on the server. So today in this post, you will learn how to enable Brotli compression on Nginx on Ubuntu 20.04.</p>



<h2 class="code-line"><a id="Why_do_it_2"></a>Why do it?</h2>



<p class="has-line-data">The algorithm that Brotli uses is more efficient at compressing files than other compression methods. Therefore we will be able to notice how the files on our server will weigh less and this will influence the load of the files.</p>



<p class="has-line-data">In general, you can expect files to be 15% to 25% smaller. So it is always a good idea to do it even if GZIP is the most popular among them. For a while, Brotli lacked the browser support that would allow it to be used in the same way as GZIP, but that changed and nowadays they are all supported.</p>



<p class="has-line-data">So, in this post, you will learn how to enable it in Nginx using Ubuntu 20.04 as an example.</p>



<h2 class="code-line"><a id="Enabling_Brotlin_compression_on_Nginx_on_Ubuntu_2004_10"></a>Enabling Brotlin compression on Nginx on Ubuntu 20.04</h2>



<p class="has-line-data">The first thing we have to do is to connect to the server to update it.</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p class="has-line-data">After that, we have to install Nginx from the source code because by default the module is not enabled.</p>



<p class="has-line-data">To do this, install the necessary packages:</p>



<pre class="wp-block-preformatted">sudo apt install dpkg-dev build-essential gnupg2 git gcc cmake libpcre3 libpcre3-dev zlib1g zlib1g-dev openssl libssl-dev curl unzip</pre>



<p class="has-line-data">The best way to get the Nginx code is to add the official repository. This ensures that we have the latest stable version and that the system meets the requirements.</p>



<p class="has-line-data">So, add the GPG key.</p>



<pre class="wp-block-preformatted">curl -L https://nginx.org/keys/nginx_signing.key | sudo apt-key add -
OK</pre>



<p class="has-line-data">Create a new file to add the Nginx repository.</p>



<pre class="wp-block-preformatted">sudo nano /etc/apt/sources.list.d/nginx.list</pre>



<p class="has-line-data">And add the following content</p>



<pre class="wp-block-preformatted">deb http://nginx.org/packages/ubuntu/ focal nginx
deb-src http://nginx.org/packages/ubuntu/ focal nginx</pre>



<p class="has-line-data">Save the changes and close the editor</p>



<p class="has-line-data">Refresh APT</p>



<pre class="wp-block-preformatted">sudo apt update</pre>



<p class="has-line-data">from location <code>/usr/local/src/</code> download the Nginx source code</p>



<pre class="wp-block-preformatted">cd /usr/local/src/` cd /usr/local/src
sudo apt source nginx</pre>



<p class="has-line-data">Thanks to APT we will be able to automatically download all Nginx dependencies. To do this, run the following command:</p>



<pre class="wp-block-preformatted">sudo apt build-dep nginx</pre>



<p class="has-line-data">This will start installing the dependencies required by nginx.</p>



<h3 class="code-line"><a id="Installing_the_latest_version_of_Brotli_56"></a>Installing the latest version of Brotli</h3>



<p class="has-line-data">To install the latest version of Brotli you have to clone the Brotli repository.</p>



<pre class="wp-block-preformatted">sudo git clone --recursive https://github.com/google/ngx_brotli.git</pre>



<h3 class="code-line"><a id="Installing_and_enabling_the_Brotli_compression_on_Nginx_62"></a>Installing and enabling the Brotli compression on Nginx</h3>



<p class="has-line-data">Before compiling Nginx you need to modify some rules by editing the <code>debian/rules</code> file.</p>



<pre class="wp-block-preformatted">cd /usr/local/src/nginx-*/
sudo nano debian/rules</pre>



<p class="has-line-data">Now locate the <code>config.env.nginx</code> and <code>config.env.nginx_debug</code> sections and add the following after <code>./configure</code>.</p>



<pre class="wp-block-preformatted">--add-module=/usr/local/src/ngx_brotli</pre>



<p class="has-line-data">Just like in the image.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="121" src="https://www.osradar.com/wp-content/uploads/2021/07/1-8-1024x121.png" alt="1.- Enabling the Brotli compression on Nginx and Ubuntu 20.04" class="wp-image-31299" srcset="https://www.osradar.com/wp-content/uploads/2021/07/1-8-1024x121.png 1024w, https://www.osradar.com/wp-content/uploads/2021/07/1-8-300x36.png 300w, https://www.osradar.com/wp-content/uploads/2021/07/1-8-768x91.png 768w, https://www.osradar.com/wp-content/uploads/2021/07/1-8-696x83.png 696w, https://www.osradar.com/wp-content/uploads/2021/07/1-8-1068x127.png 1068w, https://www.osradar.com/wp-content/uploads/2021/07/1-8.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Enabling the Brotli compression on Nginx and Ubuntu 20.04</figcaption></figure>



<p class="has-line-data">Save the changes and close the editor.</p>



<p class="has-line-data">Now, create the Nginx package</p>



<pre class="wp-block-preformatted">cd ..
sudo dpkg-buildpackage -b -uc -us</pre>



<p class="has-line-data">At the end of the process, you can see the packages with the following command.</p>



<pre class="wp-block-preformatted">ls /usr/local/src/*.deb
/usr/local/src/nginx_1.20.1-1~focal_amd64.deb /usr/local/src/nginx-dbg_1.20.1-1~focal_amd64.deb</pre>



<p class="has-line-data">And now proceed to install it, without any problems by running</p>



<pre class="wp-block-preformatted">sudo dpkg -i /usr/local/src/*.deb</pre>



<p class="has-line-data">With Nginx installed correctly, what you have to do is create a new virtual host or Server Block as it is called in Nginx, and under the <code>http</code> section add the following</p>



<pre class="wp-block-preformatted">brotli on;
brotli_comp_level 6;
brotli_static on;
brotli_types text/plain text/css application/javascript application/x-javascript text/xml 
application/xml application/xml+rss text/javascript image/x-icon image/vnd.microsoft.icon image/bmp image/svg+xml;</pre>



<p class="has-line-data">Save your changes and start Nginx if it is stopped or restart it if it is already running.</p>



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



<p class="has-line-data">This is enough.</p>



<p class="has-line-data">This is enough, but if you want to verify the process, you have to run the following command:</p>



<pre class="wp-block-preformatted">curl -I -H 'Accept-Encoding: br' [your-domain]</pre>



<p class="has-line-data">If on the output screen the value of Content-Encoding is similar to <code>Content-Encoding: br</code>, then the whole process has been successful.</p>



<p class="has-line-data">Enjoy it</p>



<h2 class="code-line"><a id="Conclusion_113"></a>Conclusion</h2>



<p class="has-line-data">In a web server, web server enhancement tools are essential for everything to work. The compression Brotlin helps a lot in this task and with Nginx, it can be useful.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/brotli-compression-nginx-ubuntu/">How to enable the Brotli compression on Nginx and Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/brotli-compression-nginx-ubuntu/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install Nginx on Fedora 34</title>
		<link>https://www.osradar.com/install-nginx-fedora-34/</link>
					<comments>https://www.osradar.com/install-nginx-fedora-34/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 08 Jun 2021 23:11:00 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[Fedora 30]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[web server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=12189</guid>

					<description><![CDATA[<p>Nginx is one of the most popular web servers in the world. Even on a par with Apache. We already know that it stands out for its speed and ability to handle large requests. Now, I&#8217;ll show you how to install Nginx on Fedora 34. Fedora 34 is a distribution sponsored by RHEL which makes [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nginx-fedora-34/">Install Nginx on Fedora 34</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Nginx is one of the most popular web servers in the world. Even on a par with Apache. We already know that it stands out for its speed and ability to handle large requests. Now, I&#8217;ll show you how to install Nginx on Fedora 34.</p>
<p>Fedora 34 is a distribution sponsored by <a href="https://www.osradar.com/rhel-8-is-available/" target="_blank" rel="noopener noreferrer">RHEL</a> which makes it inherit several of its security policies. Of course Fedora 34 is oriented to the average Linux user, so no major security policies are required. However, it is one of the most secure Linux distributions out there. So it is very common to see that there are Linux developers who choose it for their web projects. This is where Nginx becomes almost indispensable.</p>
<p>About Nginx we have talked a lot on <a href="https://www.osradar.com/tag/nginx/" target="_blank" rel="noopener noreferrer">our website</a>, however, I will briefly explain that it is an open source web server. Its main advantage over Apache is that it is <a href="https://www.nginx.com/blog/testing-the-performance-of-nginx-and-nginx-plus-web-servers/" target="_blank" rel="noopener noreferrer">very lightweight</a> and response times to large requests are very low. That is, it is ideal if you are going to handle a lot of simulated connections. Or yes, the web application is complex and requires many requests to the server. In any case, we are in the presence of a fantastic web server. So, let us get Nginx on Fedora 34.</p>
<h2>Install Nginx on Fedora 34</h2>
<p>First of all, you need to know the name of the particular package. To do this, we&#8217;ll use dnf to get it. So, open a terminal and run:</p>
<pre>:~$ sudo dnf search nginx</pre>
<figure id="attachment_30501" aria-describedby="caption-attachment-30501" style="width: 1279px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-30501" src="https://www.osradar.com/wp-content/uploads/2019/05/1_11.png" alt="1.- Searching for Nginx on Fedora 34" width="1279" height="587" srcset="https://www.osradar.com/wp-content/uploads/2019/05/1_11.png 1279w, https://www.osradar.com/wp-content/uploads/2019/05/1_11-300x138.png 300w, https://www.osradar.com/wp-content/uploads/2019/05/1_11-1024x470.png 1024w, https://www.osradar.com/wp-content/uploads/2019/05/1_11-768x352.png 768w, https://www.osradar.com/wp-content/uploads/2019/05/1_11-696x319.png 696w, https://www.osradar.com/wp-content/uploads/2019/05/1_11-1068x490.png 1068w" sizes="(max-width: 1279px) 100vw, 1279px" /><figcaption id="caption-attachment-30501" class="wp-caption-text">1.- Searching for Nginx on Fedora 34</figcaption></figure>
<p>As you can see in the image, there are several packages related to <code>nginx</code> in the Fedora 34 repositories. However, we need to install the <code>nginx</code> package.</p>
<pre>:~$ sudo dnf install nginx</pre>
<figure id="attachment_30502" aria-describedby="caption-attachment-30502" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-30502" src="https://www.osradar.com/wp-content/uploads/2019/05/2_222.png" alt="2.- Install Nginx on Fedora 34" width="1365" height="611" srcset="https://www.osradar.com/wp-content/uploads/2019/05/2_222.png 1365w, https://www.osradar.com/wp-content/uploads/2019/05/2_222-300x134.png 300w, https://www.osradar.com/wp-content/uploads/2019/05/2_222-1024x458.png 1024w, https://www.osradar.com/wp-content/uploads/2019/05/2_222-768x344.png 768w, https://www.osradar.com/wp-content/uploads/2019/05/2_222-696x312.png 696w, https://www.osradar.com/wp-content/uploads/2019/05/2_222-1068x478.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-30502" class="wp-caption-text">2.- Install Nginx on Fedora 34</figcaption></figure>
<p>After confirm the process, the download and installation will begin.</p>
<p>Then, when the installation is finished, we must start the Nginx service in order for it to work. To do this, type the following command:</p>
<pre>:~$ sudo systemctl start nginx</pre>
<p>Also, if you want nginx to start with the system, run this command:</p>
<pre>:~$ sudo systemctl enable nginx</pre>
<p>Next, open your favorite web browser and go to http://localhost and you will see this.</p>
<figure id="attachment_30503" aria-describedby="caption-attachment-30503" style="width: 1354px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-30503 size-full" src="https://www.osradar.com/wp-content/uploads/2019/05/d.png" alt="3.- Nginx working on Fedora 34" width="1354" height="669" srcset="https://www.osradar.com/wp-content/uploads/2019/05/d.png 1354w, https://www.osradar.com/wp-content/uploads/2019/05/d-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2019/05/d-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2019/05/d-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2019/05/d-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2019/05/d-1068x528.png 1068w" sizes="(max-width: 1354px) 100vw, 1354px" /><figcaption id="caption-attachment-30503" class="wp-caption-text">3.- Nginx working on Fedora 34</figcaption></figure>
<p>So, that is it.</p>
<h2>Conclusion</h2>
<p>Installing Nginx is very simple but it is good to keep it in mind especially if you are new to this Linux distribution. Nginx is very powerful and makes many websites agile to the many requests made to it.</p>
<p>Tell us, do you like Nginx? did you find the post useful?</p>
<p>Please share this post with your friends.</p>


<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nginx-fedora-34/">Install Nginx on Fedora 34</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-nginx-fedora-34/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Nextcloud (LEMP) on Ubuntu 20.04</title>
		<link>https://www.osradar.com/install-nextcloud-lemp-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-nextcloud-lemp-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 16 Jan 2021 01:10:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[mariadb]]></category>
		<category><![CDATA[Nextcloud]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=27674</guid>

					<description><![CDATA[<p>Having a private cloud may, at first sight, be unnecessary, but when you are in a company and decide that it is best to take care of your files yourself, then the matter changes. That’s why, in this post, I’ll show you how to install Nextcloud on Ubuntu 20.04 with Nginx. A private Cloud with [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nextcloud-lemp-on-ubuntu-20-04/">How to install Nextcloud (LEMP) on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Having a private cloud may, at first sight, be unnecessary, but when you are in a company and decide that it is best to take care of your files yourself, then the matter changes. That’s why, in this post, I’ll show you how to install Nextcloud on Ubuntu 20.04 with Nginx.</p>



<h2>A private Cloud with Nextcloud</h2>



<p>There are many data storage services in clouds. Technological giants like Apple, Google, and Microsoft have them. However, there are people or companies that want to have absolute control over their own data. Nextcloud is there for that.</p>



<p><a href="https://nextcloud.com/">Nextcloud</a>&nbsp;is an open-source web application that allows us to create our own private cloud. It was created with the primary objective that it is the user who has absolute control of the files.</p>



<p>Many companies install Nextcloud on their servers to create their private clouds. This way they can rely on their own data management. It is even of great help in educational or personal projects.</p>



<h2>Install Nextcloud (LEMP) on Ubuntu</h2>



<h3>1.- Install LEMP on Ubuntu 20.04</h3>



<p>Apache is a fantastic web server and nobody can deny that. However, Nginx is well known for its great performance in high traffic situations. That&#8217;s why it&#8217;s a favorite of many sysadmins that require a lightweight and efficient server.</p>



<p>So, open a terminal or connect to your server and update the distribution</p>



<pre class="wp-block-preformatted">sudo apt update<br>sudo apt upgrade</pre>



<p>Now install Nginx, along with all the PHP modules, MariaDB and some extra packages we&#8217;ll need to run:</p>



<pre class="wp-block-preformatted">sudo apt install nginx php7.4-common php7.4-mysql php7.4-fpm php7.4-gd php7.4-json php7.4-curl php7.4-zip php7.4-xml php7.4-mbstring php7.4-bz2 php7.4-intl php7.4-bcmath php7.4-gmp php-imagick mariadb-server unzip</pre>



<p>Then start the php-fpm service</p>



<pre class="wp-block-preformatted">sudo systemctl start php7.4-fpm</pre>



<p>And then it increases the maximum size of the uploaded files:</p>



<pre class="wp-block-preformatted">sudo nano /etc/php/7.4/fpm/php.ini</pre>



<p>And it changes the value</p>



<pre class="wp-block-preformatted">upload_max_filesize = 2M</pre>



<p>Set the value that you prefer, in this example, I will place <code>512M</code></p>



<pre class="wp-block-preformatted">upload_max_filesize = 512M</pre>



<p>Save the changes and close the editor.</p>



<p>Now configure MariaDB with the <code>mysql_secure_installation</code> script</p>



<pre class="wp-block-preformatted">sudo mysql_secure_installation</pre>



<p>And there you can define the root password and secure the installation of MariaDB</p>



<pre class="wp-block-preformatted">Remove anonymous users? [Y/n]<br>Disallow root login remotely? [Y/n]<br>Remove test database and access to it? [Y/n]<br>Reload privilege tables now? [Y/n]</pre>



<p>Now create the database as well as the user who will use Nextcloud:</p>



<pre class="wp-block-preformatted">sudo mysql -u root -p</pre>



<pre class="wp-block-preformatted">CREATE DATABASE nextcloud;<br>GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextclouduser'@'localhost' IDENTIFIED BY 'nextcloudpss';<br>FLUSH PRIVILEGES;<br>exit;</pre>



<p>Now we can start the installation.</p>



<h3>2.- Download Nextcloud</h3>



<p>Now if you can download Nextcloud, you can use the <a href="https://www.osradar.com/the-wget-command/" target="_blank" rel="noreferrer noopener">wget command</a></p>



<pre class="wp-block-preformatted">cd /tmp/
wget -c https://download.nextcloud.com/server/releases/nextcloud-20.0.4.zip
--2021-01-11 16:11:32--  https://download.nextcloud.com/server/releases/nextcloud-20.0.4.zip
 Resolving download.nextcloud.com (download.nextcloud.com)… 2a01:4f9:2a:3119::181, 95.217.64.181
 Connecting to download.nextcloud.com (download.nextcloud.com)|2a01:4f9:2a:3119::181|:443… connected.
 HTTP request sent, awaiting response… 200 OK
 Length: 142325595 (136M) [application/zip]
 Saving to: ‘nextcloud-20.0.4.zip’
 nextcloud-20.0.4.zip                       100%[=====================================================================================&gt;] 135.73M  57.8MB/s    in 2.4s    
 2021-01-11 16:11:35 (57.8 MB/s) - ‘nextcloud-20.0.4.zip’ saved [142325595/142325595]</pre>



<p>After that, unzip it in the Nginx root directory:</p>



<pre class="wp-block-preformatted">sudo unzip nextcloud-20.0.4.zip -d /var/www/html/</pre>



<p>Change the owner of the folder:</p>



<pre class="wp-block-preformatted">sudo chown -R www-data:www-data /var/www/html/</pre>



<p>Now create a new ServerBlock with the following guidelines that will facilitate the documentation of Nextcloud:</p>



<pre class="wp-block-preformatted">server {
     listen 80;
     listen [::]:80;
     server_name angtest.ga;
     client_max_body_size 512M;
     fastcgi_buffers 64 4K;
     gzip on;
     gzip_vary on;
     gzip_comp_level 4;
     gzip_min_length 256;
     gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
     gzip_types application/atom+xml application/javascript application/json application/ld+json     application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;

     add_header Referrer-Policy                      "no-referrer"   always;
     add_header X-Content-Type-Options               "nosniff"   always;
     add_header X-Download-Options                   "noopen"   always;
     add_header X-Frame-Options                      "SAMEORIGIN"    always;
     add_header X-Permitted-Cross-Domain-Policies    "none"  always;
     add_header X-Robots-Tag                         "none"           always;
     add_header X-XSS-Protection                     "1; mode=block" always;
     
     fastcgi_hide_header X-Powered-By;
     root /var/www/html/nextcloud;
     index index.php index.html /index.php$request_uri; 
     expires 1m;
     location = / {
              if ( $http_user_agent ~ ^DavClnt ) { 
                            return 302 /remote.php/webdav/$is_args$args;
                  } 
                  } 
     location = /robots.txt {     
              allow all;
              log_not_found off;
              access_log off;
              } 
     location ^~ /.well-known {     
               # The following 6 rules are borrowed from `.htaccess`
              rewrite ^/\.well-known/host-meta\.json  /public.php?service=host-meta-json  last;
              rewrite ^/\.well-known/host-meta        /public.php?service=host-meta       last;
              rewrite ^/\.well-known/webfinger        /public.php?service=webfinger       last;     
              rewrite ^/\.well-known/nodeinfo         /public.php?service=nodeinfo        last;     

              location = /.well-known/carddav     { return 301 /remote.php/dav/; }
              location = /.well-known/caldav      { return 301 /remote.php/dav/; }     

              try_files $uri $uri/ =404; 
            } 

location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)(?:$|/)  { return 404; } 
location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console){ return 404; } 

location ~ \.php(?:$|/) {
             fastcgi_split_path_info ^(.+?\.php)(/.*)$;
             set $path_info $fastcgi_path_info;
             try_files $fastcgi_script_name =404;
             include fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $path_info;
             fastcgi_param HTTPS on;
             fastcgi_param modHeadersAvailable true; 
             fastcgi_param front_controller_active true;
             fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
             fastcgi_intercept_errors on;
             fastcgi_request_buffering off;

            } 

   location ~ \.(?:css|js|svg|gif)$ {
             try_files $uri /index.php$request_uri;
             expires 6M;
             access_log off;
             } 
   location ~ \.woff2?$ {
             try_files $uri /index.php$request_uri;
             expires 7d;
             access_log off;
            } 
   location / {
             try_files $uri $uri/ /index.php$request_uri; 
     }
 }</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="536" src="https://www.osradar.com/wp-content/uploads/2021/01/1-5-1024x536.png" alt="1.- Configuring Nginx" class="wp-image-27679" srcset="https://www.osradar.com/wp-content/uploads/2021/01/1-5-1024x536.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/1-5-300x157.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/1-5-768x402.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/1-5-696x365.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/1-5-1068x559.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/1-5.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Configuring Nginx</figcaption></figure>



<p>Remember to change the ServerName values to your own. Save the changes and close the editor</p>



<p>Check the Nginx configuration to make sure everything is fine:</p>



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



<p>Output:</p>



<pre class="wp-block-preformatted">nginx: the configuration file /etc/nginx/nginx.conf syntax is ok<br>nginx: configuration file /etc/nginx/nginx.conf test is successful</pre>



<p>And now you have to get a certificate for your domain. This is quite simple thanks to Certbot.</p>



<pre class="wp-block-preformatted">sudo apt install certbot python3-certbot-nginx</pre>



<p>Then you can start the process:</p>



<pre class="wp-block-preformatted">sudo certbot --nginx --agree-tos --redirect --hsts --staple-ocsp --email you@example.com -d angtest.ga</pre>



<p>Replace the email and domain values with your own.</p>



<p>At the end of the process, apply the changes by restarting nginx.</p>



<pre class="wp-block-preformatted">sudo systemctl reload nginx</pre>



<h3>3.- Install Nextcloud </h3>



<p>Now open your web browser and go to <code>https://your-domain</code> and you will see the following screen</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2021/01/2-7-1024x506.png" alt="2.- Nextcloud on Ubuntu" class="wp-image-27677" srcset="https://www.osradar.com/wp-content/uploads/2021/01/2-7-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/2-7-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/2-7-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/2-7-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/2-7-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/2-7.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Nextcloud on Ubuntu</figcaption></figure>



<p>There you will have to create the administrator user and configure the database parameters below.</p>



<p>You can also change the path where the data is stored, but you have to create the folder on your server.</p>



<p>When you are ready, Nextcloud will be ready for you.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="504" src="https://www.osradar.com/wp-content/uploads/2021/01/3-6-1024x504.png" alt="3.- Nextcloud running" class="wp-image-27678" srcset="https://www.osradar.com/wp-content/uploads/2021/01/3-6-1024x504.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/3-6-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/3-6-768x378.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/3-6-696x342.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/3-6-1068x525.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/3-6.png 1360w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Nextcloud running</figcaption></figure>



<p>So, enjoy it.</p>



<h2>Conclusion</h2>



<p>Nextcloud is a very useful tool for small and medium businesses that want to create a private cloud quickly and secure.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nextcloud-lemp-on-ubuntu-20-04/">How to install Nextcloud (LEMP) on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-nextcloud-lemp-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Nginx and PHP on FreeBSD?</title>
		<link>https://www.osradar.com/install-nginx-php-freebsd/</link>
					<comments>https://www.osradar.com/install-nginx-php-freebsd/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 28 Nov 2020 00:33:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Nginx]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=25836</guid>

					<description><![CDATA[<p>Hello, friends. FreeBSD is a secure system even more than Linux, that&#8217;s why it&#8217;s used as the main server. And a server has to be able to be web too, so in this post, you will learn how to install Nginx and PHP on FreeBSD 12. Nginx and PHP is a very strong combination for [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nginx-php-freebsd/">How to install Nginx and PHP on FreeBSD?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. FreeBSD is a secure system even more than Linux, that&#8217;s why it&#8217;s used as the main server. And a server has to be able to be web too, so in this post, you will learn how to install Nginx and PHP on <a href="https://www.freebsd.org/" target="_blank" rel="noreferrer noopener">FreeBSD</a> 12.</p>



<p>Nginx and PHP is a very strong combination for a web server. If we add FreeBSD to them then it&#8217;s a safe bet that will give us a lot of satisfaction.</p>



<p>To complete this post, you need a root user or one who has <a href="https://www.osradar.com/enable-sudo-on-freebsd-12/" target="_blank" rel="noreferrer noopener">sudo access</a>.</p>



<p>So, let&#8217;s get started.</p>



<h2>Install Nginx and PHP on FreeBSD 12</h2>



<h3>1.- Install Nginx on FreeBSD 12</h3>



<p>We have to start with the webserver. So open a terminal or start an SSH session on your server and update the whole system:</p>



<pre class="wp-block-preformatted">sudo pkg update<br>sudo pkg upgrade</pre>



<p>Afterward, install some packages needed to continue the tutorial:</p>



<pre class="wp-block-preformatted">sudo pkg install nano bash curl</pre>



<p>Then, install Nginx from the official Nginx repositories. This is the most secure and stable way to proceed.</p>



<pre class="wp-block-preformatted">sudo pkg install nginx
Updating FreeBSD repository catalogue…
FreeBSD repository is up to date.
All repositories are up to date.
The following 2 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
nginx: 1.18.0_25,2
pcre: 8.44
Number of packages to be installed: 2
The process will require 8 MiB more space.
2 MiB to be downloaded.
Proceed with this action? [y/N]:</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="804" height="301" src="https://www.osradar.com/wp-content/uploads/2020/11/1-13.png" alt="1.- Install Nginx on FreeBSD" class="wp-image-25906" srcset="https://www.osradar.com/wp-content/uploads/2020/11/1-13.png 804w, https://www.osradar.com/wp-content/uploads/2020/11/1-13-300x112.png 300w, https://www.osradar.com/wp-content/uploads/2020/11/1-13-768x288.png 768w, https://www.osradar.com/wp-content/uploads/2020/11/1-13-696x261.png 696w" sizes="(max-width: 804px) 100vw, 804px" /><figcaption>1.- Install Nginx on FreeBSD</figcaption></figure>



<p>After that, enable the Nginx service:</p>



<pre class="wp-block-preformatted">sudo sysrc nginx_enable=yes
nginx_enable: -> yes</pre>



<p>Start it:</p>



<pre class="wp-block-preformatted">sudo service nginx start</pre>



<p>And check the status of the service to verify that everything is going well:</p>



<pre class="wp-block-preformatted">sudo service nginx status
nginx is running as pid 882.</pre>



<p>Also, you can check the installed version:</p>



<pre class="wp-block-preformatted">nginx -v
nginx version: nginx/1.18.0</pre>



<h3>2.- Install PHP on FreeBSD</h3>



<p>It is now time to install PHP which is available from the official FreeBSD repositories.</p>



<p>So, the whole installation is summarized by running the following command:</p>



<pre class="wp-block-preformatted">sudo pkg install php74
Updating FreeBSD repository catalogue…
FreeBSD repository is up to date.
All repositories are up to date.
The following 4 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
libargon2: 20190702
libxml2: 2.9.10_1
pcre2: 10.35
php74: 7.4.12
Number of packages to be installed: 4
The process will require 40 MiB more space.
6 MiB to be downloaded.
Proceed with this action? [y/N]:</pre>



<p>Also, you can install other modules that are required by web applications. One way to know which modules are available is to run them:</p>



<pre class="wp-block-preformatted">sudo pkg search ^php74-*</pre>



<p>And there you can choose which ones to install or not.</p>



<h3>3.- Configuring PHP to work with Nginx</h3>



<p>Now we have to make some arrangements to make PHP work with Nginx.</p>



<p>First, copy the example configuration file and rename it to the real one.</p>



<pre class="wp-block-preformatted">sudo cp /usr/local/etc/php.ini-production /usr/local/etc/php.ini</pre>



<p>Edit this file with nano:</p>



<pre class="wp-block-preformatted">sudo nano /usr/local/etc/php.ini</pre>



<p>And it leaves the parameter of the following form:</p>



<pre class="wp-block-preformatted">cgi.fix_pathinfo=0</pre>



<p>You can use<strong> CTRL + W</strong> to search within the archive and save time.</p>



<p>Save the changes and close the editor</p>



<p>Now edit the file <code>/usr/local/etc/php-fpm.d/www.conf</code></p>



<pre class="wp-block-preformatted">sudo nano /usr/local/etc/php-fpm.d/www.conf</pre>



<p>And uncomment the following lines:</p>



<pre class="wp-block-preformatted">listen.owner = www<br>listen.group = www<br>listen.mode = 0660</pre>



<p>And it replaces:</p>



<pre class="wp-block-preformatted">;listen = 127.0.0.1:9000</pre>



<p>To:</p>



<pre class="wp-block-preformatted">listen = /var/run/php-fpm.sock;</pre>



<p>Again, save the changes and close the file.</p>



<p>Now enable and start <code>php_fpm</code> service</p>



<h3>4.- Configuring Nginx</h3>



<p>Now it is necessary to edit the default server block configuration file:</p>



<pre class="wp-block-preformatted">sudo nano /usr/local/etc/nginx/example.conf</pre>



<p>And add the following</p>



<pre class="wp-block-preformatted">server {
listen 80;
server_name your-server;
root /usr/local/www/nginx-dist;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ =404;
}
location ~ .php$ {
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="974" height="359" src="https://www.osradar.com/wp-content/uploads/2020/11/2-10.png" alt="2.- Creating a new Serverblock on Nginx" class="wp-image-25909" srcset="https://www.osradar.com/wp-content/uploads/2020/11/2-10.png 974w, https://www.osradar.com/wp-content/uploads/2020/11/2-10-300x111.png 300w, https://www.osradar.com/wp-content/uploads/2020/11/2-10-768x283.png 768w, https://www.osradar.com/wp-content/uploads/2020/11/2-10-696x257.png 696w" sizes="(max-width: 974px) 100vw, 974px" /><figcaption>2.- Creating a new Serverblock on Nginx</figcaption></figure>



<p>Remember to change <code>server_name</code> to yours</p>



<p>Save the changes and close the file.</p>



<p>Then, in the main configuration file of Nginx, you have to add the previous file:</p>



<pre class="wp-block-preformatted">sudo nano /usr/local/etc/nginx/nginx.conf</pre>



<p>and within the http section add the following:</p>



<pre class="wp-block-preformatted">include example.conf;</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="809" height="240" src="https://www.osradar.com/wp-content/uploads/2020/11/3-9.png" alt="3.- Configuring Nginx and PHP on FreeBSD" class="wp-image-25910" srcset="https://www.osradar.com/wp-content/uploads/2020/11/3-9.png 809w, https://www.osradar.com/wp-content/uploads/2020/11/3-9-300x89.png 300w, https://www.osradar.com/wp-content/uploads/2020/11/3-9-768x228.png 768w, https://www.osradar.com/wp-content/uploads/2020/11/3-9-696x206.png 696w" sizes="(max-width: 809px) 100vw, 809px" /><figcaption>3.- Configuring Nginx and PHP on FreeBSD</figcaption></figure>



<p>Save the changes and close the file</p>



<p>Then check the syntax of Nginx</p>



<pre class="wp-block-preformatted">sudo nginx -t
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful</pre>



<p>Then restart Nginx</p>



<pre class="wp-block-preformatted">sudo service nginx reload</pre>



<h3>5.- Testing Nginx and PHP on FreeBSD</h3>



<p>To check the results, just create a PHP file with some code in the</p>



<pre class="wp-block-preformatted">sudo nano /usr/local/www/nginx-dist/info.php</pre>



<p>For example, the <code>phpinfo</code> method</p>



<pre class="wp-block-preformatted">&lt;?php
phpinfo();
?></pre>



<p>Save the changes and close the editor.</p>



<p>Now open it from a web browser.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/11/4-8-1024x506.png" alt="4.- PHP working with Nginx" class="wp-image-25911" srcset="https://www.osradar.com/wp-content/uploads/2020/11/4-8-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/11/4-8-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/11/4-8-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/11/4-8-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/11/4-8-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/11/4-8.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>4.- PHP working with Nginx</figcaption></figure>



<p>So, Nginx and PHP are working on FreeBSD</p>



<h2>Conclusion</h2>



<p>In this post, you learned how to install Nginx on PHP on FreeBSD quickly and easily. This combination is a guarantee of speed, efficiency, and stability.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nginx-php-freebsd/">How to install Nginx and PHP on FreeBSD?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-nginx-php-freebsd/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Nginx on OpenSUSE 15. 2 / 15.1?</title>
		<link>https://www.osradar.com/how-to-install-nginx-on-opensuse-suse-15/</link>
					<comments>https://www.osradar.com/how-to-install-nginx-on-opensuse-suse-15/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 02 Oct 2020 22:22:00 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[SUSE]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[web server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=11487</guid>

					<description><![CDATA[<p>OpenSUSE is one of the most outstanding operating systems in the world of Linux for being very stable. Its stability and popularity come from being the community distribution of SUSE that is so well positioned. This company collaborates and sponsors many projects related to open source providing professional support. So, I could say that it [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-nginx-on-opensuse-suse-15/">How to install Nginx on OpenSUSE 15. 2 / 15.1?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>OpenSUSE is one of the most outstanding operating systems in the world of Linux for being very stable. Its stability and popularity come from being the community distribution of SUSE that is so well positioned. This company collaborates and sponsors many projects related to open source providing professional support. So, I could say that it competes with RHEL or Canonical but with new technologies. Therefore, it is not surprising that it is chosen by many sysadmins as a system where to deploy their applications. In this post, you will learn <strong>how to install Nginx on OpenSUSE 15.2</strong></p>
<p><a href="https://www.nginx.com/" rel="noopener noreferrer">Nginx</a> is one of the most popular Open Source services in the world. It is a web server that stands out for being high-performance and providing an ability to handle many requests on one server. In addition, Nginx has recently <a href="https://www.osradar.com/f5-networks-buys-nginx/" rel="noopener noreferrer">been purchased by F5 Networks</a> to continue a growth process.</p>
<p>All in all, it is easy to deduce that OpenSUSE or SUSE are privileged options for running network services. So today I will show you how to install Nginx on OpenSUSE 15.2 or SUSE 15. This way you can enjoy a great web server in a great Linux distribution.</p>
<h2>1. Upgrade the system</h2>
<p>As always we recommend doing a general update to the system. With this, you will be more stable and ready to start the process.</p>
<pre>:~$ sudo zypper up</pre>
<p><figure id="attachment_11489" aria-describedby="caption-attachment-11489" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11489" src="https://www.osradar.com/wp-content/uploads/2019/03/1-11.png" alt="1.- Upgrade the system" width="1365" height="369" srcset="https://www.osradar.com/wp-content/uploads/2019/03/1-11.png 1365w, https://www.osradar.com/wp-content/uploads/2019/03/1-11-300x81.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/1-11-768x208.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/1-11-1024x277.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/1-11-696x188.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/1-11-1068x289.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-11489" class="wp-caption-text">1.- Upgrade the system</figcaption></figure></p>
<p>The result will be that your system will have the latest security patches installed. So it will be safer and more protected against cybercrime.</p>
<h2>2. Install Nginx on OpenSUSE 15.2</h2>
<p>Nginx is available in the OpenSUSE and SUSE repositories. This is a great advantage to increase the ease of installation. On the other hand, we will not always have the latest versions.</p>
<p>So, first, search for Nginx using Zypper.</p>
<pre>:~$ sudo zypper search nginx</pre>
<p><figure id="attachment_11490" aria-describedby="caption-attachment-11490" style="width: 943px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11490" src="https://www.osradar.com/wp-content/uploads/2019/03/2-11.png" alt="2.- Nginx related package" width="943" height="355" srcset="https://www.osradar.com/wp-content/uploads/2019/03/2-11.png 943w, https://www.osradar.com/wp-content/uploads/2019/03/2-11-300x113.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/2-11-768x289.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/2-11-696x262.png 696w" sizes="(max-width: 943px) 100vw, 943px" /><figcaption id="caption-attachment-11490" class="wp-caption-text">2.- Nginx related package</figcaption></figure></p>
<p>As you can see, there are several packages related to Nginx within the official repositories of the distribution. However, the nginx package is the one you need to<strong> install the web server.</strong></p>
<pre>:~$ sudo zypper in nginx</pre>
<p><figure id="attachment_11491" aria-describedby="caption-attachment-11491" style="width: 922px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11491" src="https://www.osradar.com/wp-content/uploads/2019/03/3-10.png" alt="3.- Install Nginx on OpenSUSE / SUSE" width="922" height="323" srcset="https://www.osradar.com/wp-content/uploads/2019/03/3-10.png 922w, https://www.osradar.com/wp-content/uploads/2019/03/3-10-300x105.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/3-10-768x269.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/3-10-696x244.png 696w" sizes="(max-width: 922px) 100vw, 922px" /><figcaption id="caption-attachment-11491" class="wp-caption-text">3.- Install Nginx on OpenSUSE / SUSE</figcaption></figure></p>
<p>Then, it is a good idea to enable the Nginx service to run as soon as the system starts.</p>
<pre>:~$ sudo systemctl enable nginx</pre>
<p>After that, start the service.</p>
<pre>:~$ sudo systemctl start nginx</pre>
<p>If you want to see the <strong>status of the Nginx service</strong>, you can use the following command:</p>
<pre>:~$ sudo sytemctl status nginx</pre>
<p><figure id="attachment_11492" aria-describedby="caption-attachment-11492" style="width: 947px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11492" src="https://www.osradar.com/wp-content/uploads/2019/03/4-7.png" alt="4.- The Nginx service" width="947" height="388" srcset="https://www.osradar.com/wp-content/uploads/2019/03/4-7.png 947w, https://www.osradar.com/wp-content/uploads/2019/03/4-7-300x123.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/4-7-768x315.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/4-7-696x285.png 696w" sizes="(max-width: 947px) 100vw, 947px" /><figcaption id="caption-attachment-11492" class="wp-caption-text">4.- The Nginx service</figcaption></figure></p>
<p>Now, it is time to test it.</p>
<h2>3. Test Nginx on OpenSUSE</h2>
<p>The next step is to check that Nginx is running correctly. To do this, you need to make an HTML file and place it in the root directory of Nginx in OpenSUSE / SUSE.</p>
<p>So, use nano to do it.</p>
<pre>:~$ sudo nano /srv/www/htdocs/index.html</pre>
<p>Add the following:</p>
<pre>&lt;html&gt;
&lt;body&gt;
&lt;h1&gt;Welcome to osradar &lt;/h1&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p><figure id="attachment_11493" aria-describedby="caption-attachment-11493" style="width: 809px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11493" src="https://www.osradar.com/wp-content/uploads/2019/03/5-5.png" alt="5.- Test nginx" width="809" height="209" srcset="https://www.osradar.com/wp-content/uploads/2019/03/5-5.png 809w, https://www.osradar.com/wp-content/uploads/2019/03/5-5-300x78.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/5-5-768x198.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/5-5-696x180.png 696w" sizes="(max-width: 809px) 100vw, 809px" /><figcaption id="caption-attachment-11493" class="wp-caption-text">5.- Test nginx</figcaption></figure></p>
<p>Save the file and close it.</p>
<p>Then, make some changes to the firewall settings to allow the HTTP service:</p>
<pre>:~$ sudo firewall-cmd --add-port=80/tcp --permanent
:~$ sudo firewall-cmd --reload</pre>
<p><figure id="attachment_11494" aria-describedby="caption-attachment-11494" style="width: 830px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11494" src="https://www.osradar.com/wp-content/uploads/2019/03/6-2.png" alt="6.- Firewall settings" width="830" height="146" srcset="https://www.osradar.com/wp-content/uploads/2019/03/6-2.png 830w, https://www.osradar.com/wp-content/uploads/2019/03/6-2-300x53.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/6-2-768x135.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/6-2-696x122.png 696w" sizes="(max-width: 830px) 100vw, 830px" /><figcaption id="caption-attachment-11494" class="wp-caption-text">6.- Firewall settings</figcaption></figure></p>
<p>Now, open your favorite web browser like Firefox or Chrome and go to http://SERVER_IP/ and you will see this.</p>
<p><figure id="attachment_11495" aria-describedby="caption-attachment-11495" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11495" src="https://www.osradar.com/wp-content/uploads/2019/03/7-3.png" alt="7.- Welcome to osradar" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/03/7-3.png 1366w, https://www.osradar.com/wp-content/uploads/2019/03/7-3-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/7-3-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/7-3-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/7-3-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/03/7-3-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/7-3-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/7-3-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-11495" class="wp-caption-text">7.- Welcome to osradar</figcaption></figure></p>
<p>So, Nginx is working.</p>
<h2>Conclusion</h2>
<p>OpenSUSE and SUSE have been characterized by fairly professional distributions that behave excellently on a server. However, they do this without sacrificing the power and robustness that Linux offers.</p>
<p>In this tutorial, you have learned how to install Nginx on OpenSUSE 15.2 / SUSE 15 and it is the gateway to great things with this distribution.</p>
<p>Please, share this post with your friends.</p>
<p>You can also read:</p>
<p class="entry-title"><a href="https://www.osradar.com/opensuse-15-1-is-available/" target="_blank" rel="noopener noreferrer">OpenSUSE 15.1 is available!!</a></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-nginx-on-opensuse-suse-15/">How to install Nginx on OpenSUSE 15. 2 / 15.1?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-nginx-on-opensuse-suse-15/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install WordPress with Nginx on Ubuntu 20.04?</title>
		<link>https://www.osradar.com/install-wordpress-with-nginx-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-wordpress-with-nginx-ubuntu-20-04/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sun, 24 May 2020 23:11:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=20541</guid>

					<description><![CDATA[<p>Hi, folks. In this post, we will help you install WordPress with Nginx on Ubuntu 20.04. It&#8217;s a lot easier than you think. So let&#8217;s go for it. What is WordPress? WordPress is a CMS (content manager system) that is to say it is an application that allows you to create a blog of information. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-wordpress-with-nginx-ubuntu-20-04/">How to install WordPress with Nginx on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hi, folks. In this post, we will help you install WordPress with Nginx on Ubuntu 20.04. It&#8217;s a lot easier than you think. So let&#8217;s go for it.</p>



<h2>What is WordPress?</h2>



<p><a href="http://wordpress.com/">WordPress</a> is a CMS (content manager system) that is to say it is an application that allows you to create a blog of information. However, over time has evolved and not only provides services to create blogs but corporate websites or what you can imagine.</p>



<p>Thanks to WordPress and <a href="https://www.osradar.com/tag/cms/">CMS</a>, publish news and entries, do not require knowledge of HTML or <a href="https://www.osradar.com/tag/php/">PHP</a>, but everything is visual.</p>



<p>So, if you want to have a personal blog or for educational purposes, WordPress is a pretty good solution.</p>



<h2>Install WordPress with Nginx on Ubuntu 20.04</h2>



<h3>1.- Install LEMP on Ubuntu 20.04</h3>



<p>WordPress is an application created with PHP. That is, we need a server like <a href="https://www.osradar.com/how-to-install-wordpress-ubuntu-20-04/" target="_blank" rel="noreferrer noopener">Apache</a> or Nginx. In this post, we will choose the last one.</p>



<p>So, installing LEMP is the first step to do. You can read about it.</p>



<p><a href="https://www.osradar.com/install-lemp-on-ubuntu-20-04/" target="_blank" rel="noreferrer noopener">How to install LEMP on Ubuntu 20.04?</a></p>



<p>It is also important that you install these PHP modules:</p>



<pre class="wp-block-preformatted">php7.4-common php7.4-mbstring php7.4-xmlrpc php7.4-soap php7.4-gd php7.4-xml php7.4-intl php7.4-mysql php7.4-cli php7.4-ldap php7.4-zip php7.4-curl php-fpm</pre>



<p>And now you can continue.</p>



<h3>2.- Configuring MariaDB</h3>



<p>WordPress requires a relational database manager like MariaDB. So the most convenient thing is to create a new database for WordPress.</p>



<p>So, access the MariaDB shell:</p>



<pre class="wp-block-preformatted">:~$ sudo mysql -u root -p</pre>



<p>Now create the new database:</p>



<pre class="wp-block-preformatted">&gt; CREATE DATABASE wordpress;</pre>



<p>Then create and assign permissions to a new user dedicated to WordPress. This will avoid working with the root user.</p>



<pre class="wp-block-preformatted">&gt; GRANT ALL PRIVILEGES on wordpress.* TO 'wordpress_user'@'localhost' IDENTIFIED BY 'wordpress_pss123';
&gt; FLUSH PRIVILEGES;</pre>



<p>Finally get out of MariaDB&#8217;s console.</p>



<pre class="wp-block-preformatted">&gt; exit;</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="364" src="https://www.osradar.com/wp-content/uploads/2020/05/1-16-1024x364.png" alt="1.-  Creating a new Database for WordPress" class="wp-image-20543" srcset="https://www.osradar.com/wp-content/uploads/2020/05/1-16-1024x364.png 1024w, https://www.osradar.com/wp-content/uploads/2020/05/1-16-300x107.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/1-16-768x273.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/1-16-696x247.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/1-16-1068x380.png 1068w, https://www.osradar.com/wp-content/uploads/2020/05/1-16.png 1111w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.-  Creating a new Database for WordPress</figcaption></figure>



<p>Now let&#8217;s continue.</p>



<h3>3.- Downloading WordPress</h3>



<p>Now we can get started with the WordPress download. To do this, we will do it from the <code>/tmp/</code> folder and using the <a href="https://www.osradar.com/the-wget-command/" target="_blank" rel="noreferrer noopener">wget</a> command.</p>



<pre class="wp-block-preformatted">:~$ cd /tmp/
:~$ wget -c https://wordpress.org/latest.tar.gz
--2020-04-30 15:41:25-- https://wordpress.org/latest.tar.gz
Resolving wordpress.org (wordpress.org)… 198.143.164.252
Connecting to wordpress.org (wordpress.org)|198.143.164.252|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 12234700 (12M) [application/octet-stream]
Saving to: ‘latest.tar.gz’
latest.tar.gz 100%[=====================================================================================&gt;] 11.67M 77.0KB/s in 67s
2020-04-30 15:42:34 (178 KB/s) - ‘latest.tar.gz’ saved [12234700/12234700]</pre>



<p>Once you have downloaded the file. Decompress it.</p>



<pre class="wp-block-preformatted">:~$ tar -xvzf latest.tar.gz</pre>



<p>Then, move it to Nginx&#8217;s root directory, assign the correct permissions to the folder and make Nginx the owner of it.</p>



<pre class="wp-block-preformatted">:~$ sudo mv wordpress/ /var/www/html/<br>:~$ sudo chown -R www-data:www-data /var/www/html/wordpress/<br>:~$ sudo chmod 755 -R /var/www/html/wordpress/</pre>



<p>Next, we need to make a new Nginx Server Block for WordPress. To do this, create a new file in <code>/etc/nginx/sites-available/</code> called <code>wordpress.conf</code></p>



<pre class="wp-block-preformatted">:~$ sudo nano /etc/nginx/sites-available/wordpress.conf</pre>



<p>And add the following content:</p>



<pre class="wp-block-preformatted">server {
listen 80;
server_name blog.osradar.test;
root /var/www/html/wordpress;
index index.php;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ .php$ {
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_param SERVER_NAME $host;
}
location ~ /files{
deny all;
}
}</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="973" height="387" src="https://www.osradar.com/wp-content/uploads/2020/05/2-20.png" alt="2.- Nginx server block for WordPress" class="wp-image-20546" srcset="https://www.osradar.com/wp-content/uploads/2020/05/2-20.png 973w, https://www.osradar.com/wp-content/uploads/2020/05/2-20-300x119.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/2-20-768x305.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/2-20-696x277.png 696w" sizes="(max-width: 973px) 100vw, 973px" /><figcaption>2.- Nginx server block for WordPress</figcaption></figure>



<p>Of course, replace “your-domain” with yours. Save the changes and close the file.</p>



<p>Next, restart Nginx to enable the new server Block.</p>



<pre class="wp-block-preformatted">:~$ sudo systemctl restart nginx</pre>



<p>So, you need to complete the installation using the web interface.</p>



<h3>4.- Install WordPress with Nginx on Ubuntu 20.04</h3>



<p>Now it is necessary to complete the installation of WordPress and for that there is the installation wizard.</p>



<p>So, open a web browser and go to <code>http://your-server</code> and you will see the following screen.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/05/3-17-1024x506.png" alt="3.- Installing WordPress with Nginx on Ubuntu 20.04" class="wp-image-20547" srcset="https://www.osradar.com/wp-content/uploads/2020/05/3-17-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/05/3-17-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/3-17-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/3-17-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/3-17-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/05/3-17.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Installing WordPress with Nginx on Ubuntu 20.04</figcaption></figure>



<p>Once you have chosen the language of your preference. Continue the installation.</p>



<p>On the next screen, you will be informed that some information is needed from your database.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2020/05/4-14-1024x502.png" alt="4.- WordPress installation" class="wp-image-20548" srcset="https://www.osradar.com/wp-content/uploads/2020/05/4-14-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2020/05/4-14-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/4-14-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/4-14-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/4-14-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2020/05/4-14.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>4.- WordPress installation</figcaption></figure>



<p>Then, enter the credentials from the database we created earlier.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="458" src="https://www.osradar.com/wp-content/uploads/2020/05/5-9-1024x458.png" alt="5.- WordPress database credentials" class="wp-image-20549" srcset="https://www.osradar.com/wp-content/uploads/2020/05/5-9-1024x458.png 1024w, https://www.osradar.com/wp-content/uploads/2020/05/5-9-300x134.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/5-9-768x343.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/5-9-696x311.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/5-9-1068x478.png 1068w, https://www.osradar.com/wp-content/uploads/2020/05/5-9.png 1326w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>5.- WordPress database credentials</figcaption></figure>



<p>Then, start the installation.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2020/05/6-8-1024x502.png" alt="6.- Make the installation" class="wp-image-20557" srcset="https://www.osradar.com/wp-content/uploads/2020/05/6-8-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2020/05/6-8-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/6-8-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/6-8-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/6-8-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2020/05/6-8.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>6.- Make the installation</figcaption></figure>



<p>If everything went well, you will have to enter the information of the website you are creating. As well as the creation of the administrator account.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/05/7-7-1024x506.png" alt="7.- Site information and admin account" class="wp-image-20558" srcset="https://www.osradar.com/wp-content/uploads/2020/05/7-7-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/05/7-7-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/7-7-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/7-7-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/7-7-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/05/7-7.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>7.- Site information and admin account</figcaption></figure>



<p>In the end, you will see that everything has been a success and you can log in.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2020/05/8-4-1024x502.png" alt="8.- WordPress with Nginx installed" class="wp-image-20552" srcset="https://www.osradar.com/wp-content/uploads/2020/05/8-4-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2020/05/8-4-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/8-4-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/8-4-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/8-4-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2020/05/8-4.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>8.- WordPress with Nginx installed</figcaption></figure>



<p>Then, you will see the Log in screen.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2020/05/9-4-1024x502.png" alt="9.- WordPress login screen" class="wp-image-20553" srcset="https://www.osradar.com/wp-content/uploads/2020/05/9-4-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2020/05/9-4-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/9-4-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/9-4-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/9-4-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2020/05/9-4.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>9.- WordPress login screen</figcaption></figure>



<p>When you log in you will see the dashboard. </p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/05/10-2-1024x506.png" alt="10.- WordPress with Nginx on Ubuntu 20.04" class="wp-image-20554" srcset="https://www.osradar.com/wp-content/uploads/2020/05/10-2-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/05/10-2-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/10-2-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/10-2-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/10-2-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/05/10-2.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>10.- WordPress with Nginx on Ubuntu 20.04</figcaption></figure>



<p>And that&#8217;s it. WordPress is installed correctly.</p>



<h2>Conclusion</h2>



<p>WordPress is a fairly popular CMS. Thanks to this application, you can create your website in a short time and without great knowledge of HTML. Also, in this post, you have seen that installing it is not too complicated for the great advantages it provides.</p>



<p>Please share this post with your friends and join <a href="http://t.me/osradar">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-wordpress-with-nginx-ubuntu-20-04/">How to install WordPress with Nginx on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-wordpress-with-nginx-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Nginx from the source code on Debian 10 / Ubuntu 18.04 / Ubuntu 19.04?</title>
		<link>https://www.osradar.com/install-nginx-from-the-source-code-debian-ubuntu/</link>
					<comments>https://www.osradar.com/install-nginx-from-the-source-code-debian-ubuntu/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 09 Dec 2019 00:00:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[web server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=8847</guid>

					<description><![CDATA[<p>There are many system administrators who prefer to install programs from their source code. Although it may seem strange to you, it is a very good practice, so you have total control of the program. That&#8217;s why today I&#8217;ll show you how to install Nginx from the source code on Debian 10 / Ubuntu 18.04 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nginx-from-the-source-code-debian-ubuntu/">How to install Nginx from the source code on Debian 10 / Ubuntu 18.04 / Ubuntu 19.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>There are many system administrators who prefer to install programs from their source code. Although it may seem strange to you, it is a very good practice, so you have total control of the program. That&#8217;s why today I&#8217;ll show you how to install Nginx from the source code on Debian 10 / Ubuntu 18.04 / Ubuntu 19.04.</p>
<p>A web server can be cataloged as an essential element of the network. Therefore, you must have a program that is the best and that is Nginx. <a href="http://ngnix.com" rel="noopener">Nginx</a> is a lightweight, open source and widely popular web server that bases its success on performance when processing websites. Along with <a href="https://www.osradar.com/how-to-install-apache-gui-on-debian-9/" rel="noopener">Apache web server</a> are the two references within Linux for that purpose.</p>
<p>So, let&#8217;s start.</p>
<h2>1. Upgrade the system</h2>
<p>The first step in this process is to keep your system up to date. Therefore, connect to your server and run.</p>
<pre class="">:~$ sudo apt update &amp;&amp; sudo apt upgrade</pre>
<p><figure id="attachment_8972" aria-describedby="caption-attachment-8972" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8972" src="https://www.osradar.com/wp-content/uploads/2019/01/1-4.png" alt="1.- Upgrade the system" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/01/1-4.png 1366w, https://www.osradar.com/wp-content/uploads/2019/01/1-4-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/1-4-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/1-4-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/1-4-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/1-4-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8972" class="wp-caption-text">1.- Upgrade the system</figcaption></figure></p>
<p>With this, you will have a more stable system, robust and ready to start the installation.</p>
<h2>2. Install required packages</h2>
<p>To compile the Nginx source code, it is necessary to install some previous packages.</p>
<pre class="">:~$ sudo apt install build-essential libpcre3-dev zlib1g-dev libssl-dev libatomic-ops-dev libxml2-dev libxslt1-dev libgeoip1 libgeoip-dev libgd-dev google-perftools libgoogle-perftools-dev libperl-dev</pre>
<p><figure id="attachment_8973" aria-describedby="caption-attachment-8973" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8973" src="https://www.osradar.com/wp-content/uploads/2019/01/2-4.png" alt="2.- Install required packages for the installation" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/01/2-4.png 1366w, https://www.osradar.com/wp-content/uploads/2019/01/2-4-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/2-4-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/2-4-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/2-4-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/2-4-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8973" class="wp-caption-text">2.- Install required packages for the installation</figcaption></figure></p>
<p>So, as you can see in the image, many packages related to compilation and package construction are installed.</p>
<h2>3. Download and install Nginx</h2>
<p>Now proceed to download the latest stable version of Ngnix from your website. Use the following command to do it</p>
<pre class="">:~$ wget -c http://nginx.org/download/nginx-1.15.8.tar.gz</pre>
<p><figure id="attachment_8974" aria-describedby="caption-attachment-8974" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8974" src="https://www.osradar.com/wp-content/uploads/2019/01/3-4.png" alt="3.- Downloading Nginx source code" width="1365" height="309" srcset="https://www.osradar.com/wp-content/uploads/2019/01/3-4.png 1365w, https://www.osradar.com/wp-content/uploads/2019/01/3-4-300x68.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/3-4-768x174.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/3-4-1024x232.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/3-4-1068x242.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-8974" class="wp-caption-text">3.- Downloading Nginx source code</figcaption></figure></p>
<p><em>Note: At the time of writing this post the latest stable version of Ngnix is 1.15.8. First, find out which version you want to download and modify the previous command. It also work with Nginx 1.17.6.<br />
</em></p>
<p>Now, decompress the file.</p>
<pre class="">:~$ tar -xvzf nginx-1.15.8.tar.gz</pre>
<p><figure id="attachment_8975" aria-describedby="caption-attachment-8975" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8975" src="https://www.osradar.com/wp-content/uploads/2019/01/4-4.png" alt="4.- Decompressing the file" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/01/4-4.png 1366w, https://www.osradar.com/wp-content/uploads/2019/01/4-4-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/4-4-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/4-4-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/4-4-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/4-4-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8975" class="wp-caption-text">4.- Decompressing the file</figcaption></figure></p>
<p>Now, create a new user for Nginx.</p>
<pre class="">:~$ sudo useradd -s /sbin/nologin nginx</pre>
<p>Next, enter the created directory and start the configuration.</p>
<pre class="">:~$ cd nginx-1.15.8/
:~$ sudo ./configure --user=nginx --group=nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --with-select_module --with-poll_module --with-threads --with-file-aio --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_xslt_module=dynamic --with-http_image_filter_module --with-http_image_filter_module=dynamic --with-http_geoip_module --with-http_geoip_module=dynamic --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_auth_request_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_slice_module --with-http_stub_status_module --with-http_perl_module --with-http_perl_module=dynamic --with-mail --with-mail=dynamic --with-mail_ssl_module --with-stream --with-stream=dynamic --with-stream_ssl_module --with-stream_realip_module --with-stream_geoip_module --with-stream_geoip_module=dynamic --with-stream_ssl_preread_module --with-google_perftools_module --with-cpp_test_module --with-compat --with-pcre --with-pcre-jit  --with-zlib-asm=CPU --with-libatomic --with-debug --with-ld-opt="-Wl,-E"</pre>
<p><figure id="attachment_8976" aria-describedby="caption-attachment-8976" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8976" src="https://www.osradar.com/wp-content/uploads/2019/01/5-4.png" alt="5.- Configuring the package" width="1365" height="264" srcset="https://www.osradar.com/wp-content/uploads/2019/01/5-4.png 1365w, https://www.osradar.com/wp-content/uploads/2019/01/5-4-300x58.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/5-4-768x149.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/5-4-1024x198.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/5-4-1068x207.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-8976" class="wp-caption-text">5.- Configuring the package</figcaption></figure></p>
<p>As you can see, the command is quite extensive because it requires that you indicate which modules or options will be enabled.</p>
<p>When you finish the configuration, you should see something like this.</p>
<p><figure id="attachment_8977" aria-describedby="caption-attachment-8977" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8977" src="https://www.osradar.com/wp-content/uploads/2019/01/6-3.png" alt="6.- End of the configure command" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/01/6-3.png 1366w, https://www.osradar.com/wp-content/uploads/2019/01/6-3-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/6-3-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/6-3-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/6-3-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/6-3-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8977" class="wp-caption-text">6.- End of the configure command</figcaption></figure></p>
<p>So, install it.</p>
<pre class="">:~$ sudo make &amp;&amp; sudo make install</pre>
<p><figure id="attachment_8978" aria-describedby="caption-attachment-8978" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8978" src="https://www.osradar.com/wp-content/uploads/2019/01/7-3.png" alt="7.- Install Ngnix from the source code" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/01/7-3.png 1366w, https://www.osradar.com/wp-content/uploads/2019/01/7-3-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/7-3-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/7-3-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/7-3-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/7-3-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8978" class="wp-caption-text">7.- Install Ngnix from the source code</figcaption></figure></p>
<p>And that&#8217;s it.</p>
<h2>4. Create a systemd service file for Nginx</h2>
<p>To better manage Ngnix, create a file to make it a systemd service.</p>
<pre class="">:~$ sudo nano /lib/systemd/system/nginx.service</pre>
<p>And add the following:</p>
<pre class="">[Unit]
Description=The Nginx 1.15.8 service
After=syslog.target network.target remote-fs.target nss-lookup.target

[Service]
Type=forking
PIDFile=/usr/local/nginx/logs/nginx.pid
ExecStartPre=/usr/sbin/nginx -t
ExecStart=/usr/sbin/nginx
ExecReload=/usr/sbin/nginx -s reload
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true

[Install]
WantedBy=multi-user.target
</pre>
<p><figure id="attachment_8980" aria-describedby="caption-attachment-8980" style="width: 863px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8980" src="https://www.osradar.com/wp-content/uploads/2019/01/8-2.png" alt="8.- Creating the systemd file for Ngnix" width="863" height="390" srcset="https://www.osradar.com/wp-content/uploads/2019/01/8-2.png 863w, https://www.osradar.com/wp-content/uploads/2019/01/8-2-300x136.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/8-2-768x347.png 768w" sizes="(max-width: 863px) 100vw, 863px" /><figcaption id="caption-attachment-8980" class="wp-caption-text">8.- Creating the systemd file for Ngnix</figcaption></figure></p>
<p>For these changes to take effect, it is necessary to reload the systemd configuration.</p>
<pre class="">:~$ sudo systemctl daemon-reload</pre>
<p>Now, start Ngnix.</p>
<pre class="">:~$ sudo systemctl start nginx</pre>
<p><figure id="attachment_8981" aria-describedby="caption-attachment-8981" style="width: 840px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8981" src="https://www.osradar.com/wp-content/uploads/2019/01/9-2.png" alt="9.- Start Nginx service" width="840" height="152" srcset="https://www.osradar.com/wp-content/uploads/2019/01/9-2.png 840w, https://www.osradar.com/wp-content/uploads/2019/01/9-2-300x54.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/9-2-768x139.png 768w" sizes="(max-width: 840px) 100vw, 840px" /><figcaption id="caption-attachment-8981" class="wp-caption-text">9.- Start Nginx service</figcaption></figure></p>
<p>Finally, open your web browser and go to <code>http://IP_SERVER</code>. You should see this.</p>
<p><figure id="attachment_8982" aria-describedby="caption-attachment-8982" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8982" src="https://www.osradar.com/wp-content/uploads/2019/01/10-2.png" alt="10. Nginx welcome page" width="1366" height="671" srcset="https://www.osradar.com/wp-content/uploads/2019/01/10-2.png 1366w, https://www.osradar.com/wp-content/uploads/2019/01/10-2-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/10-2-768x377.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/10-2-1024x503.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/10-2-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2019/01/10-2-1068x525.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/10-2-855x420.png 855w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8982" class="wp-caption-text">10. Nginx welcome page</figcaption></figure></p>
<p>And that&#8217;s it.</p>
<h2>Conclusion</h2>
<p>Nginx is a great application to set up a web server. The installation from the source code brings the advantage of being lighter. This is useful if you want to have total control over its operation.</p>
<p>Please share this article with your friends.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nginx-from-the-source-code-debian-ubuntu/">How to install Nginx from the source code on Debian 10 / Ubuntu 18.04 / Ubuntu 19.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-nginx-from-the-source-code-debian-ubuntu/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install Varnish cache 6 for Apache/Nginx on Centos / RHEL 8</title>
		<link>https://www.osradar.com/how-to-install-varnish-cache-6-for-apache-nginx-on-centos-rhel-8/</link>
					<comments>https://www.osradar.com/how-to-install-varnish-cache-6-for-apache-nginx-on-centos-rhel-8/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Fri, 15 Nov 2019 08:33:21 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[Install Varnish]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[Varnish Cache on CentOS 8]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=15600</guid>

					<description><![CDATA[<p>What is Varnish Cache? As you know about Cache, it enhances the loading speed by saving web pages, cookies and other data. It saves into memory the requested data and provide faster results. Because of its faster response, it is also used in Linux like Centos to provide faster results. It is also called caching [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-varnish-cache-6-for-apache-nginx-on-centos-rhel-8/">How to Install Varnish cache 6 for Apache/Nginx on Centos / RHEL 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3><strong>What is Varnish Cache?</strong></h3>



<p>As you know about Cache, it enhances the loading speed by saving web pages, cookies and other data. It saves into memory the requested data and provide faster results. Because of its faster response, it is also used in Linux like Centos to provide faster results. It is also called <strong>caching HTTP reverse proxy</strong> which is a leading web application accelerator, capturing the visits and boost upon delivery on again request. It saves the web servers time by providing them the same data as saved earlier. Hence, in this tutorial we are going to learn how you can install and configure Varnish Cache 6 on CentOS 8 / RHEL 8.</p>



<h3><strong>Step 1: Update System</strong></h3>



<p>Make sure your system is up-to-date.</p>



<pre class="wp-block-verse">sudo dnf -y update</pre>



<h3><strong>Step 2: Install Varnish Cache 6 on CentOS 8 / RHEL 8</strong></h3>



<p>You can use the following command to install varnish cache on CentOS / RHEL 8.</p>



<pre class="wp-block-verse">sudo dnf install @varnish</pre>



<p>Allow to continue with the installation process by pressing y key.</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="734" height="499" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/varnish-install-alert.png" alt="" class="wp-image-15601" srcset="https://www.osradar.com/wp-content/uploads/2019/11/varnish-install-alert.png 734w, https://www.osradar.com/wp-content/uploads/2019/11/varnish-install-alert-300x204.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/varnish-install-alert-696x473.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/varnish-install-alert-618x420.png 618w" sizes="(max-width: 734px) 100vw, 734px" /></figure></div>



<p>If you want to see more information on installed package you can type the following command.</p>



<pre class="wp-block-verse">rpm -qi varnish</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="732" height="501" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/rpm-qi-varnish.png" alt="" class="wp-image-15602" srcset="https://www.osradar.com/wp-content/uploads/2019/11/rpm-qi-varnish.png 732w, https://www.osradar.com/wp-content/uploads/2019/11/rpm-qi-varnish-300x205.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/rpm-qi-varnish-218x150.png 218w, https://www.osradar.com/wp-content/uploads/2019/11/rpm-qi-varnish-696x476.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/rpm-qi-varnish-614x420.png 614w" sizes="(max-width: 732px) 100vw, 732px" /></figure></div>



<p><strong>Important things to Remember:</strong></p>



<ul><li>Main configuration file of Varnish can be found in <strong>/etc/varnish/default.vcl</strong></li><li>Secret file of Varnish is in<strong> /etc/varnish/secret</strong></li><li>Cashe executable binary is found in<strong> /usr/sbin/varnishd</strong></li><li>Systemd unit file is in <strong>/lib/systemd/system/varnish.service</strong></li></ul>



<h3><strong>Step 3: Start and Enable Varnish Cache Services</strong></h3>



<p>Use the following command to start &amp; enable Varnish Cache services.</p>



<pre class="wp-block-verse">sudo systemctl enable --now varnish</pre>



<p>Make sure status is working properly</p>



<pre class="wp-block-verse">systemctl status varnish</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="735" height="493" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/varnish-status.png" alt="" class="wp-image-15603" srcset="https://www.osradar.com/wp-content/uploads/2019/11/varnish-status.png 735w, https://www.osradar.com/wp-content/uploads/2019/11/varnish-status-300x201.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/varnish-status-696x467.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/varnish-status-626x420.png 626w" sizes="(max-width: 735px) 100vw, 735px" /></figure></div>



<h3><strong>Step 4: Configure Varnish Cache for Nginx/Apache Web Server</strong></h3>



<p>As Varnish sits in front of a web server as a caching HTTP Reverse Proxy, so it speeds up web servers.<br>
In this tutorial we are using Nginx/Apache HTTPD server but you can use your favourite one.</p>



<p>For Apache</p>



<pre class="wp-block-verse">sudo dnf -y install @httpd</pre>



<p>For Nginx</p>



<pre class="wp-block-preformatted">sudo dnf -y install @nginx</pre>



<h5>1. <strong>Configure Nginx with Varnish</strong></h5>



<p>By default, TCP port 80 is being used by Nginx, change it to listen to 8080 port because Varnish Cache will use port 80.</p>



<pre class="wp-block-verse">sudo vi /etc/nginx/nginx.conf</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="675" height="122" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/listen-port-nginx.png" alt="" class="wp-image-15605" srcset="https://www.osradar.com/wp-content/uploads/2019/11/listen-port-nginx.png 675w, https://www.osradar.com/wp-content/uploads/2019/11/listen-port-nginx-300x54.png 300w" sizes="(max-width: 675px) 100vw, 675px" /></figure></div>



<p>For Virtual Hosting feature, edit the relevant confiuguration file,</p>



<pre class="wp-block-verse">sudo vi /etc/nginx/conf.d/mysite.conf</pre>



<p>After it, restart Nginx</p>



<p>sudo systemctl restart nginx</p>



<p>Double-check your settings</p>



<pre class="wp-block-verse">ss -tunelp | grep 8080</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="725" height="216" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/settings-nginx.png" alt="" class="wp-image-15606" srcset="https://www.osradar.com/wp-content/uploads/2019/11/settings-nginx.png 725w, https://www.osradar.com/wp-content/uploads/2019/11/settings-nginx-300x89.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/settings-nginx-696x207.png 696w" sizes="(max-width: 725px) 100vw, 725px" /></figure></div>



<h5>2.<strong> Configure Apache with Varnish</strong></h5>



<p>For Apache web server, make sure to set listen port to 8080.</p>



<pre class="wp-block-verse">sudo vi /etc/httpd/conf/httpd.conf</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="724" height="511" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/apache-listen-port.png" alt="" class="wp-image-15608" srcset="https://www.osradar.com/wp-content/uploads/2019/11/apache-listen-port.png 724w, https://www.osradar.com/wp-content/uploads/2019/11/apache-listen-port-300x212.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/apache-listen-port-100x70.png 100w, https://www.osradar.com/wp-content/uploads/2019/11/apache-listen-port-696x491.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/apache-listen-port-595x420.png 595w" sizes="(max-width: 724px) 100vw, 724px" /></figure></div>



<p>After it, restart Apache.</p>



<pre class="wp-block-verse">sudo systemctl restart httpd</pre>



<h5>3. <strong>Configure Varnish Cache Server</strong></h5>



<p>Set Listen port for Varnish Cache to 80.</p>



<pre class="wp-block-verse">sudo vi /etc/systemd/system/multi-user.target.wants/varnish.service</pre>



<p>Edit the line starting with <strong>ExecStar</strong>t, and change from:</p>



<pre class="wp-block-verse">ExectStart=/usr/sbin/varnishd -a :6081 -f /etc/varnish/default.vcl -s malloc,256m</pre>



<p>To:</p>



<pre class="wp-block-verse">ExectStart=/usr/sbin/varnishd -a :80 -f /etc/varnish/default.vcl -s malloc,256m</pre>



<p>Now, restart Varnish systemd services.</p>



<pre class="wp-block-verse">sudo systemctl daemon-reload<br>sudo systemctl restart varnish</pre>



<p>Make sure that Varnish is listening the correct port.</p>



<pre class="wp-block-verse">sudo systemctl status varnish</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="733" height="499" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/varnish-staus-after-restart.png" alt="" class="wp-image-15609" srcset="https://www.osradar.com/wp-content/uploads/2019/11/varnish-staus-after-restart.png 733w, https://www.osradar.com/wp-content/uploads/2019/11/varnish-staus-after-restart-300x204.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/varnish-staus-after-restart-696x474.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/varnish-staus-after-restart-617x420.png 617w" sizes="(max-width: 733px) 100vw, 733px" /></figure></div>



<p>Also make sure that Nginx/Apache server is configured as a back-end server for Varnish proxy.</p>



<pre class="wp-block-verse">sudo vi /etc/varnish/default.vcl</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="653" height="122" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/default-backend-server.png" alt="" class="wp-image-15610" srcset="https://www.osradar.com/wp-content/uploads/2019/11/default-backend-server.png 653w, https://www.osradar.com/wp-content/uploads/2019/11/default-backend-server-300x56.png 300w" sizes="(max-width: 653px) 100vw, 653px" /></figure></div>



<p>Look port<strong> 8080</strong> is configured on Apache/Nginx web server.</p>



<p>Your configuration will look like this for multiple back-ends,</p>



<pre class="wp-block-verse">backend default {<br>     .host = "127.0.0.1";<br>     .port = "8080";<br> }<br>backend java {<br>     .host = "127.0.0.1";<br>     .port = "8000";<br> } </pre>



<p>But we&#8217;ll need to tell Varnish to where send the difference URL using vcl_recv. For example our java application should handle URL beginning with <strong>/java/</strong></p>



<pre class="wp-block-verse">sub vcl_recv {<br>     if (req.url ~ "^/java/") {<br>         set req.backend_hint = java;<br>     } else {<br>         set req.backend_hint = default;<br>     }<br> }</pre>



<p>You can see more ones on using<a rel="noreferrer noopener" aria-label="You can see more ones on using Multiple backends. (opens in a new tab)" href="https://varnish-cache.org/docs/trunk/users-guide/vcl-backends.html" target="_blank"> Multiple backends.</a></p>



<h3><strong>Step 5: Testing Varnish Cache on Nginx/Apache</strong></h3>



<p>After all, verify Varnish Cache working by testing it with Apache/Nginx service with the curl command:</p>



<pre class="wp-block-verse">curl -I http://localhost</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="734" height="353" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/Curl-localhost.png" alt="" class="wp-image-15612" srcset="https://www.osradar.com/wp-content/uploads/2019/11/Curl-localhost.png 734w, https://www.osradar.com/wp-content/uploads/2019/11/Curl-localhost-300x144.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/Curl-localhost-696x335.png 696w" sizes="(max-width: 734px) 100vw, 734px" /></figure></div>



<p>It will provide you HTTP header information.</p>



<p>If you run this command again, it will show you that <strong>Varnish Cached Response</strong> (Note that <strong>Age</strong> header):</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="653" height="248" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/curl-again.png" alt="" class="wp-image-15613" srcset="https://www.osradar.com/wp-content/uploads/2019/11/curl-again.png 653w, https://www.osradar.com/wp-content/uploads/2019/11/curl-again-300x114.png 300w" sizes="(max-width: 653px) 100vw, 653px" /></figure></div>



<p>This will work same for other valid domain names with DNS record set.</p>



<pre class="wp-block-verse">curl -I https://osradar.com</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="526" height="115" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/osradar.com_.png" alt="" class="wp-image-15614" srcset="https://www.osradar.com/wp-content/uploads/2019/11/osradar.com_.png 526w, https://www.osradar.com/wp-content/uploads/2019/11/osradar.com_-300x66.png 300w" sizes="(max-width: 526px) 100vw, 526px" /></figure></div>



<p>We&#8217;ve installed &amp; configured Varnish Cache on CentOS 8 / RHEL 8 for Nginx and Apache Web Server.</p>



<p>Visit the <a href="https://www.varnish-software.com/wiki/start/index.html">Varnish Getting Started </a>and <a href="https://varnish-cache.org/docs/trunk/users-guide/index.html#users-guide-index">The Varnish Users Guide</a> pages to learn more about configuring &amp; optimizing Varnish.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-varnish-cache-6-for-apache-nginx-on-centos-rhel-8/">How to Install Varnish cache 6 for Apache/Nginx on Centos / RHEL 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-varnish-cache-6-for-apache-nginx-on-centos-rhel-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install GLPI on CentOS 8 / RHEL 8 / Oracle Linux 8 ?</title>
		<link>https://www.osradar.com/install-glpi-centos-rhel-oracle-linux/</link>
					<comments>https://www.osradar.com/install-glpi-centos-rhel-oracle-linux/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 09 Sep 2019 23:00:42 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[GLPI]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[oracle linux 8]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[serverblock]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13318</guid>

					<description><![CDATA[<p>As we already know, the Linux family of operating systems based on Network Hat Enterprise Linux is quite popular on servers. In this sense, there are numerous applications that facilitate the administration of companies or organizations. One of them is the GLPI that allows to control all the flow of equipment technological. In addition, it [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-glpi-centos-rhel-oracle-linux/">How to install GLPI on CentOS 8 / RHEL 8 / Oracle Linux 8 ?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>As we already know, the Linux family of operating systems based on Network Hat Enterprise Linux is quite popular on servers. In this sense, there are numerous applications that facilitate the administration of companies or organizations. One of them is the GLPI that allows to control all the flow of equipment technological. In addition, it incorporates a ticket system to report incidence. That is to say, is an application that improves workflow. In this post, you will learn how to install GLPI on CentOS 8 / RHEL 8 / Oracle Linux 8.</p>
<h2>GLPI in a few words</h2>
<p>The GLPI is an application of French origin that provides an integral management of the<br />
an organization&#8217;s computer inventory. But not only is it limited to this, but also<br />
also includes an incidence ticket system.</p>
<p>As expected is open source and is developed with PHP. Therefore, what is required is a web server with Apache or nginx as processors. In addition, to store the data, you need MySQL or MariaDB. As you can see, these are requirements of a server.</p>
<h2>Install CentOS 8 / RHEL 8 / Oracle Linux 8</h2>
<p>As it is an application built for web environments, it is necessary to have a fully functional server. To do this, I will choose Nginx as my HTTP server along with with PHP and MariaDB. That is to say a LEMP server.</p>
<p>Then, the first step is to install a LEMP server on CentOS 8 / RHEL 8 / Oracle. So I invite you to read our about this where we explain you step by step how to do it.</p>
<p>Read <a href="https://www.osradar.com/how-to-install-lemp-on-oracle-linux-8-rhel-8-centos-8/" target="_blank" rel="noopener noreferrer">How to install LEMP on CentOS 8 / RHEL 8 / Oracle Linux 8?</a></p>
<h2>Prepare MariaDB to work with GLPI</h2>
<p>Now that we have the LEMP server running, it is necessary to create a New user and database for GLPI. This is quite simple but we must enter as root user to the MariaDB console.</p>
<pre>:~# mysql –u root –p
&gt; CREATE DATABASE glpidb;
&gt; GRANT ALL PRIVILEGES ON glpidb.* TO 'glpiuser'@'localhost' IDENTIFIED BY 'glpipss';
&gt; FLUSH PRIVILEGES;
&gt; Exit;</pre>
<p><figure id="attachment_13469" aria-describedby="caption-attachment-13469" style="width: 860px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13469" src="https://www.osradar.com/wp-content/uploads/2019/09/1-2.jpeg" alt="1.- Creating the new database for GLPI on CentOS 8 / RHEL 8 / Oracle Linux 8" width="860" height="363" srcset="https://www.osradar.com/wp-content/uploads/2019/09/1-2.jpeg 860w, https://www.osradar.com/wp-content/uploads/2019/09/1-2-300x127.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/09/1-2-768x324.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/09/1-2-696x294.jpeg 696w" sizes="(max-width: 860px) 100vw, 860px" /><figcaption id="caption-attachment-13469" class="wp-caption-text">1.- Creating the new database for GLPI on CentOS 8 / RHEL 8 / Oracle Linux 8</figcaption></figure></p>
<p>Creating a user dedicated to GLPI other than root is a security measure important.</p>
<h2>Download and Install GLPI on CentOS 8 / RHEL 8 / Oracle Linux</h2>
<p>Now we can download and install the GLPI. To do this, just download it using wget. If you don&#8217;t have it installed, you can do it with the following command:</p>
<pre>:~# dnf install wget</pre>
<p>Then navigate to the tmp folder and download it.</p>
<pre>:~# cd /tmp/
:~# wget -c https://github.com/glpi-project/glpi/releases/download/9.4.3/glpi-9.4.3.tgz</pre>
<p>Next, decompress it and move to the nginx document root:</p>
<pre>:~# tar xvf glpi-9.4.3.tgz 
:~# mv glpi /usr/share/nginx/html/</pre>
<p>After that, change the permissions on the folder so that it can be runned correctly:</p>
<pre>:~# chmod 755 -R /usr/share/nginx/html/
:~# chown nginx:nginx -R /usr/share/nginx/html/</pre>
<h2>Create a new server block to GLPI on CentOS 8 / RHEL 8 / Oracle Linux 8 (Optional)</h2>
<p>Now it is necessary to create a new server block for Glpi. In this case, also we have a tutorial for it.</p>
<p>Read, <a href="https://www.osradar.com/create-nginx-server-block-centos-rhel-oracle-linux-8/" target="_blank" rel="noopener noreferrer">How to create an Nginx server block on CentOS 8 / RHEL 8 / Oracle Linux 8?</a></p>
<p>Then, we will be able to complete the installation.</p>
<h2>Install GLPI on CentOS / RHEL / Oracle Linux 8 using the web interface</h2>
<p>Now all that&#8217;s left is to complete the installation using the web interface. To do this, go to<br />
to your server and you will see the following image:</p>
<p><figure id="attachment_13470" aria-describedby="caption-attachment-13470" style="width: 840px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13470" src="https://www.osradar.com/wp-content/uploads/2019/09/3-3.png" alt="3.- GLPI on CentOS 8 / RHEL 8 / Oracle Linux 8" width="840" height="288" srcset="https://www.osradar.com/wp-content/uploads/2019/09/3-3.png 840w, https://www.osradar.com/wp-content/uploads/2019/09/3-3-300x103.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/3-3-768x263.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/3-3-696x239.png 696w" sizes="(max-width: 840px) 100vw, 840px" /><figcaption id="caption-attachment-13470" class="wp-caption-text">3.- GLPI on CentOS 8 / RHEL 8 / Oracle Linux 8</figcaption></figure></p>
<p>Then, choose the language of the installation and accept the license terms.</p>
<p><figure id="attachment_13471" aria-describedby="caption-attachment-13471" style="width: 1350px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13471" src="https://www.osradar.com/wp-content/uploads/2019/09/4-3.png" alt="4.- License terms" width="1350" height="604" srcset="https://www.osradar.com/wp-content/uploads/2019/09/4-3.png 1350w, https://www.osradar.com/wp-content/uploads/2019/09/4-3-300x134.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/4-3-768x344.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/4-3-1024x458.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/4-3-696x311.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/4-3-1068x478.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/4-3-939x420.png 939w" sizes="(max-width: 1350px) 100vw, 1350px" /><figcaption id="caption-attachment-13471" class="wp-caption-text">4.- License terms</figcaption></figure></p>
<p>Then, you can either update a previous installation or start a clean one. Choose the install option.</p>
<p><figure id="attachment_13472" aria-describedby="caption-attachment-13472" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13472" src="https://www.osradar.com/wp-content/uploads/2019/09/5-3.png" alt="5.- Install GLPI on CentOS 8 / RHEL / Oracle Linux" width="1366" height="386" srcset="https://www.osradar.com/wp-content/uploads/2019/09/5-3.png 1366w, https://www.osradar.com/wp-content/uploads/2019/09/5-3-300x85.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/5-3-768x217.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/5-3-1024x289.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/5-3-696x197.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/5-3-1068x302.png 1068w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13472" class="wp-caption-text">5.- Install GLPI on CentOS 8 / RHEL / Oracle Linux</figcaption></figure></p>
<p>Then, the installer will check the server for any problems.</p>
<p>&nbsp;</p>
<p><figure id="attachment_13474" aria-describedby="caption-attachment-13474" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13474" src="https://www.osradar.com/wp-content/uploads/2019/09/6-5.png" alt="6.- GLPI requisites" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/09/6-5.png 1366w, https://www.osradar.com/wp-content/uploads/2019/09/6-5-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/6-5-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/6-5-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/6-5-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/6-5-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/6-5-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13474" class="wp-caption-text">6.- GLPI requisites</figcaption></figure></p>
<p>Now, you will have to write the MariaDB credentials. Click on the Next option.</p>
<p>&nbsp;</p>
<p><figure id="attachment_13475" aria-describedby="caption-attachment-13475" style="width: 1350px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13475" src="https://www.osradar.com/wp-content/uploads/2019/09/7-5.png" alt="7.- MariaDB credentials" width="1350" height="503" srcset="https://www.osradar.com/wp-content/uploads/2019/09/7-5.png 1350w, https://www.osradar.com/wp-content/uploads/2019/09/7-5-300x112.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/7-5-768x286.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/7-5-1024x382.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/7-5-696x259.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/7-5-1068x398.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/7-5-1127x420.png 1127w" sizes="(max-width: 1350px) 100vw, 1350px" /><figcaption id="caption-attachment-13475" class="wp-caption-text">7.- MariaDB credentials</figcaption></figure></p>
<p>Then, if the connection to the database has been successful, you will see the following:</p>
<p><figure id="attachment_13477" aria-describedby="caption-attachment-13477" style="width: 816px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13477" src="https://www.osradar.com/wp-content/uploads/2019/09/8-4.png" alt="8.- Database initialized" width="816" height="332" srcset="https://www.osradar.com/wp-content/uploads/2019/09/8-4.png 816w, https://www.osradar.com/wp-content/uploads/2019/09/8-4-300x122.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/8-4-768x312.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/8-4-696x283.png 696w" sizes="(max-width: 816px) 100vw, 816px" /><figcaption id="caption-attachment-13477" class="wp-caption-text">8.- Database initialized</figcaption></figure></p>
<p>Finally, if everything went well, you will see a message like this:</p>
<p><figure id="attachment_13478" aria-describedby="caption-attachment-13478" style="width: 840px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13478" src="https://www.osradar.com/wp-content/uploads/2019/09/9-4.png" alt="9.- GLPI is correctly installed" width="840" height="401" srcset="https://www.osradar.com/wp-content/uploads/2019/09/9-4.png 840w, https://www.osradar.com/wp-content/uploads/2019/09/9-4-300x143.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/9-4-768x367.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/9-4-696x332.png 696w" sizes="(max-width: 840px) 100vw, 840px" /><figcaption id="caption-attachment-13478" class="wp-caption-text">9.- GLPI is correctly installed</figcaption></figure></p>
<p>To enter the GLPI dashboard use glpi as user and glpi password.</p>
<p><figure id="attachment_13479" aria-describedby="caption-attachment-13479" style="width: 561px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13479" src="https://www.osradar.com/wp-content/uploads/2019/09/10-4.png" alt="10.- GLPI log in" width="561" height="464" srcset="https://www.osradar.com/wp-content/uploads/2019/09/10-4.png 561w, https://www.osradar.com/wp-content/uploads/2019/09/10-4-300x248.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/10-4-508x420.png 508w" sizes="(max-width: 561px) 100vw, 561px" /><figcaption id="caption-attachment-13479" class="wp-caption-text">10.- GLPI log in</figcaption></figure></p>
<p>This is the main screen of the application.</p>
<p><figure id="attachment_13480" aria-describedby="caption-attachment-13480" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13480" src="https://www.osradar.com/wp-content/uploads/2019/09/11-3.png" alt="11.- GLPI dashboard" width="1366" height="665" srcset="https://www.osradar.com/wp-content/uploads/2019/09/11-3.png 1366w, https://www.osradar.com/wp-content/uploads/2019/09/11-3-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/11-3-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/11-3-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/11-3-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/11-3-1068x520.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/11-3-863x420.png 863w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13480" class="wp-caption-text">11.- GLPI dashboard</figcaption></figure></p>
<h2>Conclusion</h2>
<p>The Glpi is one of those necessary applications in an organization that wants to have everything a competent computer inventory. In addition to incorporating a reporting system of Incidents, ensures prompt attention to users of systems and equipment of the<br />
company.</p>
<p>Please share this post and join <a href="https://t.me/osradar" target="_blank" rel="noopener noreferrer">our Telegram Channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-glpi-centos-rhel-oracle-linux/">How to install GLPI on CentOS 8 / RHEL 8 / Oracle Linux 8 ?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-glpi-centos-rhel-oracle-linux/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
