<?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>web hosting Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/web-hosting/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 23 Mar 2023 13:22:29 +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>The best open source frameworks to create a website.</title>
		<link>https://www.osradar.com/the-best-open-source-frameworks-to-create-a-website/</link>
					<comments>https://www.osradar.com/the-best-open-source-frameworks-to-create-a-website/#respond</comments>
		
		<dc:creator><![CDATA[roger]]></dc:creator>
		<pubDate>Fri, 19 Mar 2021 22:45:00 +0000</pubDate>
				<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[backend]]></category>
		<category><![CDATA[frontend]]></category>
		<category><![CDATA[opensource framework]]></category>
		<category><![CDATA[web hosting]]></category>
		<category><![CDATA[website]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=29105</guid>

					<description><![CDATA[<p>Hi! There are a couple of essential elements when creating a new website. On the one hand there is the frontend. That is, everything that runs on the visitor&#8217;s computer. In addition, it is in charge of all the design and the elements with which the user interacts. On the other hand, there is the [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/the-best-open-source-frameworks-to-create-a-website/">The best open source frameworks to create a website.</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! There are a couple of essential elements when creating a new website. On the one hand there is the frontend. That is, everything that runs on the visitor&#8217;s computer. In addition, it is in charge of all the design and the elements with which the user interacts. On the other hand, there is the backend. That is, the elements that run on the server. Some of its functions are to process the databases and the information entered by the user from the frontend. Additionally, the frontend is usually programmed using languages such as HTML, CSS and JavaScript. However, for backend design there are numerous languages, libraries, APIs and frameworks. Similarly, some are proprietary and others are open. In today&#8217;s post we will look at the best open source frameworks to create a website.</p>



<h2>Laravel: API-based for all types of backends</h2>



<p>We are talking about one of the most known and used <a href="https://www.osradar.com/install-laravel-ubuntu-2004/" target="_blank" rel="noreferrer noopener">frameworks</a> to create backends. In addition, it works with PHP language, which is very well known. <a href="https://github.com/laravel/laravel" target="_blank" rel="noreferrer noopener">Laravel</a> offers an extensive API with excellent features. Which allows you to create web pages quickly with stable performance and easy to maintain. Some of its main features are:</p>



<ul><li>Allows you to add a secure and robust authentication system in a very simple way.</li><li>Makes web pages much faster thanks to its internal cache.</li><li>Allows controlling vulnerabilities and other bugs in a much easier way than with other alternatives.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="384" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/03/frame-1024x384.png" alt="" class="wp-image-29106" srcset="https://www.osradar.com/wp-content/uploads/2021/03/frame-1024x384.png 1024w, https://www.osradar.com/wp-content/uploads/2021/03/frame-300x113.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/frame-768x288.png 768w, https://www.osradar.com/wp-content/uploads/2021/03/frame-696x261.png 696w, https://www.osradar.com/wp-content/uploads/2021/03/frame-1068x401.png 1068w, https://www.osradar.com/wp-content/uploads/2021/03/frame.png 1140w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>Spring Web MVC: uses Java to query databases</h2>



<p><a href="https://spring.io/" target="_blank" rel="noreferrer noopener">Spring </a>is based on the Servlet API. Therefore, it is based on Java. Moreover, it is specially designed to send requests to a database or to other servers. In addition, it allows you to configure the view resolution and take care of controlling the regional configuration of the web. Finally, it manages the theme and the file upload from the frontend. Among its main characteristics are:</p>



<ul><li>Each of the framework functions is properly separated and isolated from everything else. Thus, the controller, validator, modeler, etc. do not interfere in the operation of the others. This is possible thanks to DispatcherServlet</li><li>It offers great configuration possibilities.</li><li>Advanced filters that allow sending requests via GET, POST, PUT, PATCH and DELETE.</li><li>It has a system of simulations to check that everything works correctly.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="692" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/03/frame2-1024x692.png" alt="" class="wp-image-29107" srcset="https://www.osradar.com/wp-content/uploads/2021/03/frame2-1024x692.png 1024w, https://www.osradar.com/wp-content/uploads/2021/03/frame2-300x203.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/frame2-768x519.png 768w, https://www.osradar.com/wp-content/uploads/2021/03/frame2-696x470.png 696w, https://www.osradar.com/wp-content/uploads/2021/03/frame2-1068x721.png 1068w, https://www.osradar.com/wp-content/uploads/2021/03/frame2.png 1279w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>Ruby on Rails: a fast, simple and powerful framework</h2>



<p><a href="https://rubyonrails.org/" target="_blank" rel="noreferrer noopener">Ruby on Rails </a>is another of the most popular and widely used web development frameworks. As its name suggests, it is programmed in <a href="https://www.osradar.com/easily-install-ruby-on-windows-10-with-rubyinstaller/" target="_blank" rel="noreferrer noopener">Ruby</a>, so it is organized in objects. Additionally, it has a very clear and light structure. You can <a href="https://doit.software/blog/hire-ruby-on-rails-developers">hire Ruby on Rails developers</a> to increase the adaptability of the program for all types of infrastructures. Some of its main features are:</p>



<ul><li>Web applications are supported by the MVC pattern.</li><li>It requires less code than other frameworks, which allows us to create web applications in 30% to 40% less time.</li><li>It avoids code repetition and, therefore, reduces the information inside the system and the probability of errors. This is made possible by Don&#8217;t Repeat Yourself.</li><li>The code is fully scalable, so we can adjust it according to our needs.</li><li>It has very secure life cycles.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="698" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/03/frame3-1024x698.png" alt="" class="wp-image-29108" srcset="https://www.osradar.com/wp-content/uploads/2021/03/frame3-1024x698.png 1024w, https://www.osradar.com/wp-content/uploads/2021/03/frame3-300x204.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/frame3-768x523.png 768w, https://www.osradar.com/wp-content/uploads/2021/03/frame3-218x150.png 218w, https://www.osradar.com/wp-content/uploads/2021/03/frame3-696x474.png 696w, https://www.osradar.com/wp-content/uploads/2021/03/frame3-1068x728.png 1068w, https://www.osradar.com/wp-content/uploads/2021/03/frame3.png 1272w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>ASP.NET: Microsoft&#8217;s technology for everyone.</h2>



<p>When using <a href="https://dotnet.microsoft.com/apps/aspnet" target="_blank" rel="noreferrer noopener">.NET</a> we are logically talking about Microsoft. This is a free, multiplatform and open source framework. Its main function is to create all kinds of web applications and services in .NET and C#. In addition, it is able to run on Windows, macOS and Linux. When running on Windows, it uses Windows Forms, WPF and UWP for creating web applications. Here are some of its main features:</p>



<ul><li>Allows programming from almost any operating system.</li><li>Improved performance.</li><li>Use of several versions in parallel.</li></ul>



<p>In the following lines, we will continue to explore the best open source frameworks to create a website.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="696" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/03/frame4-1024x696.png" alt="" class="wp-image-29109" srcset="https://www.osradar.com/wp-content/uploads/2021/03/frame4-1024x696.png 1024w, https://www.osradar.com/wp-content/uploads/2021/03/frame4-300x204.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/frame4-768x522.png 768w, https://www.osradar.com/wp-content/uploads/2021/03/frame4-696x473.png 696w, https://www.osradar.com/wp-content/uploads/2021/03/frame4-1068x726.png 1068w, https://www.osradar.com/wp-content/uploads/2021/03/frame4.png 1282w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>Cake PHP: very fast framework for creating PHP apps</h2>



<p>This <a href="https://cakephp.org/" target="_blank" rel="noreferrer noopener">PHP</a> framework allows users to have a very fast development. Which is essential for the creation of web applications. It also offers a fast and structured working method. And it has <a href="https://www.osradar.com/how-to-install-cakephp-in-windows-10/" target="_blank" rel="noreferrer noopener">tools</a> that allow to code logically all the content of the application. Let&#8217;s take a look at some of its main features:</p>



<ul><li>It allows to build a prototype very easily.</li><li>It has an MIT license, so we can create without problems all kinds of commercial applications.</li><li>Furthermore, it has a lot of integrated tools that allow to improve the creation of web applications. Thus, it is possible to manage translations, input validation, SQL, XSS and CSRF protection, database access and an internal cache to improve performance.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" width="750" height="250" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/03/frame5.jpg" alt="" class="wp-image-29110" srcset="https://www.osradar.com/wp-content/uploads/2021/03/frame5.jpg 750w, https://www.osradar.com/wp-content/uploads/2021/03/frame5-300x100.jpg 300w, https://www.osradar.com/wp-content/uploads/2021/03/frame5-696x232.jpg 696w" sizes="(max-width: 750px) 100vw, 750px" /></figure>



<h2>Django: The ideal framework to make things fast.</h2>



<p>If you are short on time, this is the best framework to use. <a href="https://www.djangoproject.com/" target="_blank" rel="noreferrer noopener">Django</a> is based on Python. And because of its nature, it is meant to create web applications quickly with as little code as possible. The <a href="https://www.osradar.com/how-to-install-django-on-windows-10/" target="_blank" rel="noreferrer noopener">apps</a> created with it stand out for their clean and intuitive design. Here are some features.</p>



<ul><li>It allows the creation of rich and dynamic APIs for the use of databases.</li><li>It has a very complex authentication system based on user, groups, permissions and sessions.</li><li>Helps development to be free of security flaws, offering protection against clickjacking, SQL injections, remote code execution and more.</li></ul>



<p>In this way we have seen the best open source frameworks to create a website. We always strive to show you the best options for your benefit. Bye!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/the-best-open-source-frameworks-to-create-a-website/">The best open source frameworks to create a website.</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/the-best-open-source-frameworks-to-create-a-website/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Sentora on CentOS 7</title>
		<link>https://www.osradar.com/how-to-install-sentora-on-centos-7/</link>
					<comments>https://www.osradar.com/how-to-install-sentora-on-centos-7/#respond</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Mon, 28 Jan 2019 12:52:16 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[hosting manager]]></category>
		<category><![CDATA[Linux server]]></category>
		<category><![CDATA[sentora]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[web hosting]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=9805</guid>

					<description><![CDATA[<p>Sentora is a free and open source web hosting control panel developed for Linux, UNIX and BSD based servers. The Sentora software can turn a domestic or commercial server into a fully managed, easy to use and manage web hosting server. It is licensed under the GPLv3 and is a separately maintained by the ZPanel [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-sentora-on-centos-7/">How to install Sentora on CentOS 7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Sentora is a free and open source web hosting control panel developed for Linux, UNIX and BSD based servers. The Sentora software can turn a domestic or commercial server into a fully managed, easy to use and manage web hosting server. It is licensed under the GPLv3 and is a separately maintained by the ZPanel project. In this guide you will learn that how to install Sentora CP on Centos 7.</p>



<p><strong>Requirements:</strong></p>



<ul>
<li>Fresh minimal installation of Centos 7 without any configuration changes.</li>
<li>A static IP address</li>
</ul>



<h2>Step 1. Configure Hostname</h2>



<p>Note: hostname must be differnet from your main domain.(for example, if example.com is a domain on your server, use hostname.example.com as your fully qualified hostname).</p>



<p>You can use the following command for hostname setup eg. osradar.localhost.localdomain</p>



<pre class="wp-block-preformatted"># hostnamectl set-hostname osradar.localhost.localdomain</pre>



<pre class="wp-block-preformatted"># hostnamectl</pre>



<p>&nbsp;</p>



<figure class="wp-block-image"><img loading="lazy" width="810" height="297" class="wp-image-9809" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/01/1-10.jpg" alt="" srcset="https://www.osradar.com/wp-content/uploads/2019/01/1-10.jpg 810w, https://www.osradar.com/wp-content/uploads/2019/01/1-10-300x110.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/1-10-768x282.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/1-10-696x255.jpg 696w" sizes="(max-width: 810px) 100vw, 810px" /></figure>



<h2>Step 2. Setup Firewall</h2>



<p>You must open following ports used by Sentora configurations in firewall so all services will run without any issue.</p>



<p>20 &amp; 21 : FTP<br />22 SSH<br />25 (TCP) : SMTP<br />53 (TCP &amp; UDP) : DNS<br />80 (TCP &amp; UDP) : HTTP<br />110 : POP3<br />143 : IMAP<br />443 : HTTPS<br />3306: MySQL</p>



<p>Use below command to add ports in firewall and reload it to apply new changes.</p>



<pre class="wp-block-preformatted"># firewall-cmd --zone=public --permanent --add-port={20/tcp,21/tcp,22/tcp,25/tcp,53/tcp,80/tcp,110/tcp,143/tcp,443/tcp,3306/tcp}</pre>



<pre class="wp-block-preformatted"># firewall-cmd --reload</pre>



<p>&nbsp;</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="112" class="wp-image-9810" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/01/2-9-1024x112.jpg" alt="" srcset="https://www.osradar.com/wp-content/uploads/2019/01/2-9-1024x112.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/01/2-9-300x33.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/2-9-768x84.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/2-9-696x76.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/01/2-9-1068x117.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/01/2-9.jpg 1331w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>Step 3. Installing Sentora</h2>



<p>First install wget package using below command</p>



<pre class="wp-block-preformatted"># yum install wget -y</pre>



<p>Now download installer and make it executable using below commands</p>



<pre class="wp-block-preformatted"># cd</pre>



<pre class="wp-block-preformatted"># wget http://sentora.org/install</pre>



<pre class="wp-block-preformatted"># chmod +x install</pre>



<p>&nbsp;</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="387" class="wp-image-9811" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/01/3-9-1024x387.jpg" alt="" srcset="https://www.osradar.com/wp-content/uploads/2019/01/3-9-1024x387.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/01/3-9-300x113.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/3-9-768x290.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/3-9-696x263.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/01/3-9-1068x404.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/01/3-9-1111x420.jpg 1111w, https://www.osradar.com/wp-content/uploads/2019/01/3-9.jpg 1132w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Start Sentora installation using below command</p>



<pre class="wp-block-preformatted"># ./install</pre>



<p>During the installation process you will be asked to choose your geographical area and the time zone. So choose you location, set your time zone and press &#8220;Enter&#8221; to continue. In my case I will use Asia.</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="661" class="wp-image-9812" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/01/4-6-1024x661.jpg" alt="" srcset="https://www.osradar.com/wp-content/uploads/2019/01/4-6-1024x661.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/01/4-6-300x194.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/4-6-768x496.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/4-6-696x449.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/01/4-6-1068x689.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/01/4-6-651x420.jpg 651w, https://www.osradar.com/wp-content/uploads/2019/01/4-6.jpg 1134w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>&nbsp;</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="545" class="wp-image-9813" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/01/5-8-1024x545.jpg" alt="" srcset="https://www.osradar.com/wp-content/uploads/2019/01/5-8-1024x545.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/01/5-8-300x160.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/5-8-768x408.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/5-8-696x370.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/01/5-8-1068x568.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/01/5-8-790x420.jpg 790w, https://www.osradar.com/wp-content/uploads/2019/01/5-8.jpg 1070w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>In the next step you will be asked to configure sub-domain, which will be used to access Sentora Panel, Secondly set the public IP of the server.</p>



<figure class="wp-block-image"><img loading="lazy" width="852" height="359" class="wp-image-9814" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/01/6-6.jpg" alt="" srcset="https://www.osradar.com/wp-content/uploads/2019/01/6-6.jpg 852w, https://www.osradar.com/wp-content/uploads/2019/01/6-6-300x126.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/6-6-768x324.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/6-6-696x293.jpg 696w" sizes="(max-width: 852px) 100vw, 852px" /></figure>



<p>Here you might get the warning about your DNS configurations if its not properly configured then add records in your DNS manager.</p>



<p>Press &#8220;<strong>Y</strong>&#8221; to accept and install Senotra on your choosed subdomain with given IP. Installation can take more than 30 minutes depending on your inernet connection, because it needs to install and activate all required packages for the server.</p>



<p>&nbsp;</p>



<figure class="wp-block-image"><img loading="lazy" width="987" height="401" class="wp-image-9815" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/01/7-3.jpg" alt="" srcset="https://www.osradar.com/wp-content/uploads/2019/01/7-3.jpg 987w, https://www.osradar.com/wp-content/uploads/2019/01/7-3-300x122.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/7-3-768x312.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/7-3-696x283.jpg 696w" sizes="(max-width: 987px) 100vw, 987px" /></figure>



<p>Once the installation completeion, you will be greeted with sentora login details, copy all login details before restart (A file of login details also placed in <strong>/root/passwords.txt</strong>). Now press &#8220;<strong>Y</strong>&#8221; and <strong>ENTER</strong> key to restart the server.</p>



<h2>Step 4. Login Sentora Control Panel.</h2>



<p>Once server boots up, open your web browser and access your Sentora Control panel using the sub-domain or your server&#8217;s IP address and type your credentials to login.</p>



<figure class="wp-block-embed">
<div class="wp-block-embed__wrapper">http://SERVER-IP</div>
</figure>



<p>OR</p>



<figure class="wp-block-embed">
<div class="wp-block-embed__wrapper">http://SUB-DOMAIN</div>
</figure>



<p>&nbsp;</p>



<figure class="wp-block-image"><img loading="lazy" width="989" height="628" class="wp-image-9816" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/01/8-4.jpg" alt="" srcset="https://www.osradar.com/wp-content/uploads/2019/01/8-4.jpg 989w, https://www.osradar.com/wp-content/uploads/2019/01/8-4-300x190.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/8-4-768x488.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/8-4-696x442.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/01/8-4-661x420.jpg 661w" sizes="(max-width: 989px) 100vw, 989px" /></figure>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="523" class="wp-image-9817" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/01/9-6-1024x523.jpg" alt="" srcset="https://www.osradar.com/wp-content/uploads/2019/01/9-6-1024x523.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/01/9-6-300x153.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/9-6-768x392.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/9-6-696x356.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/01/9-6-1068x546.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/01/9-6-822x420.jpg 822w, https://www.osradar.com/wp-content/uploads/2019/01/9-6.jpg 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>&nbsp;</p>



<p>Congratulations! you have successfully installed the latest version of Sentora on CentOS 7 server. Now you can manage your multiple domains web hosting free of cost on your own hosting server.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-sentora-on-centos-7/">How to install Sentora on CentOS 7</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-sentora-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install CWP (Centos Web Panel) on CentOS 7</title>
		<link>https://www.osradar.com/install-cwp-centos-web-panel-on-centos-7/</link>
					<comments>https://www.osradar.com/install-cwp-centos-web-panel-on-centos-7/#respond</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Sun, 27 Jan 2019 00:40:37 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[centos 7]]></category>
		<category><![CDATA[Linux server]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[web hosting]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=9763</guid>

					<description><![CDATA[<p>CentOS Web Panel (CWP) is a free web hosting control panel which allows easily manage multiple servers (both Dedicated and VPS) without the need to access server through SSH for every small task that you need to complete. You can host multiple domain free of cost in this web panel. It is very easy to [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-cwp-centos-web-panel-on-centos-7/">Install CWP (Centos Web Panel) on CentOS 7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>CentOS Web Panel (CWP) is a free web hosting control panel which allows easily manage multiple servers (both Dedicated and VPS) without the need to access server through SSH for every small task that you need to complete. You can host multiple domain free of cost in this web panel. It is very easy to configure and manage.</p>



<p>In this article you will learn how to install CWP on your CentOS server.</p>



<p><strong>CentOS Web Panel Features:</strong></p>



<ul><li>Apache Web Server.</li><li>PHP Selector.</li><li>MySQL/MariaDB + phpMyAdmin.</li><li>Email – Postfix and Dovecot, mailboxes, RoundCube web interface, SpamAssassin.</li><li>CSF (Config Server Firewall).</li><li>ClamAV Antivirus</li><li>Backup Manager.</li><li>3rd Party Aplications.</li><li>Easy user management interface.</li><li>Setup Server for Web Hosting.</li><li>DNS Server.</li><li>Live Monitoring.</li><li>File System Lock (means, no more website hacking due to locking of files from changes).</li><li>Server configuration AutoFixer.</li><li>cPanel Account Migration.</li><li>TeamSpeak 3 Manager (Voice streaming).</li><li>Shoutcast Manager (video streaming).</li></ul>



<p><strong>CENTOS WEB PANEL REQUIREMENTS</strong></p>



<ul><li>A Static IP address</li><li>Freshly installed operating system without any configuration changes.</li><li>Minimum RAM for 32-bit 512MB and 64-bit 1GB with 10GB of free space.</li></ul>



<h2>Step 1. Configure Hostname</h2>



<p>Note: hostname must be differnet from your main domain.(for example, if example.com is a domain on your server, use hostname.example.com as your fully qualified hostname).</p>



<p>You can use the following command for hostname setup eg. osradar.localhost.localdomain</p>



<pre class="wp-block-preformatted"># hostnamectl set-hostname osradar.localhost.localdomain</pre>



<pre class="wp-block-preformatted"># hostnamectl</pre>



<figure class="wp-block-image"><img loading="lazy" width="810" height="297" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/01/1-9.jpg" alt="" class="wp-image-9777" srcset="https://www.osradar.com/wp-content/uploads/2019/01/1-9.jpg 810w, https://www.osradar.com/wp-content/uploads/2019/01/1-9-300x110.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/1-9-768x282.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/1-9-696x255.jpg 696w" sizes="(max-width: 810px) 100vw, 810px" /></figure>



<p></p>



<h2>Step 2. Configure Server IP addresses</h2>



<p>Here you will make configuration in your network interface file and assign your IP address.</p>



<pre class="wp-block-preformatted"># vi /etc/sysconfig/network-scripts/ifcfg-ens33</pre>



<figure class="wp-block-image"><img loading="lazy" width="822" height="290" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/01/2-8.jpg" alt="" class="wp-image-9779" srcset="https://www.osradar.com/wp-content/uploads/2019/01/2-8.jpg 822w, https://www.osradar.com/wp-content/uploads/2019/01/2-8-300x106.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/2-8-768x271.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/2-8-696x246.jpg 696w" sizes="(max-width: 822px) 100vw, 822px" /></figure>



<p><br></p>



<h2>Step 3. Update the system</h2>



<p>Use following commands to install and update server necessary updates.</p>



<pre class="wp-block-preformatted"># yum -y install wget</pre>



<pre class="wp-block-preformatted"># yum -y update</pre>



<pre class="wp-block-preformatted"># reboot</pre>



<h2>Step 4. Installing CWP on CentOS 7</h2>



<p>Note: CWP installation can take more than 30 minutes, because it needs to compile apache and php from source.</p>



<pre class="wp-block-preformatted"># cd /usr/local/src</pre>



<pre class="wp-block-preformatted"># wget http://centos-webpanel.com/cwp-el7-latest</pre>



<pre class="wp-block-preformatted"># sh cwp-el7-latest</pre>



<figure class="wp-block-image"><img loading="lazy" width="899" height="410" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/01/3-8.jpg" alt="" class="wp-image-9780" srcset="https://www.osradar.com/wp-content/uploads/2019/01/3-8.jpg 899w, https://www.osradar.com/wp-content/uploads/2019/01/3-8-300x137.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/3-8-768x350.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/3-8-696x317.jpg 696w" sizes="(max-width: 899px) 100vw, 899px" /></figure>



<p></p>



<p>After installation a list of credentials will be appeared to access the panel. Make sure to copy or write down the login information. Once done, press “<strong>ENTER</strong>” for server reboot.</p>



<figure class="wp-block-image"><img loading="lazy" width="887" height="501" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/01/4-5.jpg" alt="" class="wp-image-9781" srcset="https://www.osradar.com/wp-content/uploads/2019/01/4-5.jpg 887w, https://www.osradar.com/wp-content/uploads/2019/01/4-5-300x169.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/4-5-768x434.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/4-5-696x393.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/01/4-5-744x420.jpg 744w" sizes="(max-width: 887px) 100vw, 887px" /></figure>



<p></p>



<h2>Step 5. Login CWP Admin Control Panel</h2>



<p>Onece server reboot, login to your CWP on your web browser using the link provided by the installer on your server</p>



<p>http://SERVER-IP:2030/<br>Username: root<br>Password: your root password</p>



<figure class="wp-block-image"><img loading="lazy" width="850" height="560" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/01/5-7.jpg" alt="" class="wp-image-9782" srcset="https://www.osradar.com/wp-content/uploads/2019/01/5-7.jpg 850w, https://www.osradar.com/wp-content/uploads/2019/01/5-7-300x198.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/5-7-768x506.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/5-7-696x459.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/01/5-7-638x420.jpg 638w" sizes="(max-width: 850px) 100vw, 850px" /></figure>



<p>Type username and password to login.</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="530" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/01/6-5-1024x530.jpg" alt="" class="wp-image-9783" srcset="https://www.osradar.com/wp-content/uploads/2019/01/6-5-1024x530.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/01/6-5-300x155.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/6-5-768x397.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/6-5-696x360.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/01/6-5-1068x553.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/01/6-5-811x420.jpg 811w, https://www.osradar.com/wp-content/uploads/2019/01/6-5.jpg 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>After logging in, it is recommended to make below configuration.</p>



<p><strong>Setup Nameservers</strong><br>DNS Functions &gt; Edit Nameserver IP<br><br><strong>Setup shared IP </strong>(must be your public IP address)<br>CWP settings &gt; Edit Settings &gt; write the shared IP(Normally main IP address already assigned)<br><br><strong>Setup at least one hosting package</strong><br>Go to package &gt;add package &gt; fill in the info and limits of the package<br><br><strong>Setup root email</strong><br>Go to CWP settings &gt; Edit Settings &gt; write the root email for the CWP</p>



<p>For more configuration instructions, please visit given link or comment bewlo.<br> <a href="http://wiki.centos-webpanel.com/">http://wiki.centos-webpanel.com/</a></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-cwp-centos-web-panel-on-centos-7/">Install CWP (Centos Web Panel) on CentOS 7</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-cwp-centos-web-panel-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to configure Nginx Server Blocks on Ubuntu 18.04?</title>
		<link>https://www.osradar.com/how-to-configure-nginx-server-blocks-on-ubuntu-18-04/</link>
					<comments>https://www.osradar.com/how-to-configure-nginx-server-blocks-on-ubuntu-18-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 13 Sep 2018 09:08:59 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[virtual host]]></category>
		<category><![CDATA[web hosting]]></category>
		<category><![CDATA[web server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=5733</guid>

					<description><![CDATA[<p>Recently I explained to you about Virtual hosts and how to configure them in the Apache web server. However, you should know that Apache has a quite popular, efficient and also free alternative. I&#8217;m talking about ngnix. In addition, it has Server blocks that are quite similar to the Virtual hosts of apache. Ngnix is a high-performance [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-configure-nginx-server-blocks-on-ubuntu-18-04/">How to configure Nginx Server Blocks on Ubuntu 18.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>Recently I explained to you about Virtual hosts and how to configure them in the Apache web server. However, you should know that Apache has a quite popular, efficient and also free alternative. I&#8217;m talking about <a href="https://www.nginx.com/">ngnix</a>. In addition, it has Server blocks that are quite similar to the Virtual hosts of apache.</p>
<p>Ngnix is a high-performance lightweight inverse web/proxy server and proxy for email protocols. It is free and open source software, licensed under the Simplified BSD License. At the same time, ngnix <strong>has a paid version</strong>, dedicated to high-performance companies and projects that require commercial support.</p>
<p>with this in mind, I will teach you how to configure Nginx server blocks using Ubuntu 18.04 LTS.</p>
<h2>0. Requirements</h2>
<p>In order to perform this tutorial satisfactorily, you should keep this in mind:</p>
<ul>
<li>You need to be logged in with a user with <code>sudo</code> enabled.</li>
<li>It is recommended that you have a basic understanding of the use of the terminal.</li>
<li>And obviously, need a computer with Ubuntu 18.04.</li>
</ul>
<p>Note: The steps I will describe must also work on Linux Mint 19.</p>
<h2>1.- Install Nginx</h2>
<p>In the first place, you need to update the entire operating system. It&#8217;s always good to do this because it ensures you have the latest security patches installed. Open a terminal, and run:</p>
<pre class="">:~$ sudo apt &amp;&amp; sudo apt upgrade</pre>
<p><figure id="attachment_5736" aria-describedby="caption-attachment-5736" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5736" src="https://www.osradar.com/wp-content/uploads/2018/09/1-7.png" alt="1.- Upgrading the system" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/1-7.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/1-7-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/1-7-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/1-7-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/1-7-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/1-7-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/1-7-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5736" class="wp-caption-text">1.- Upgrading the system</figcaption></figure></p>
<p>After you enter your password, you will have the system updated.</p>
<p>Now, you can install ngnix. In order to reduce the time spent, install it from the package that comes in the official Ubuntu repositories. Type:</p>
<pre class="">:~$ sudo apt install ngnix</pre>
<p><figure id="attachment_5737" aria-describedby="caption-attachment-5737" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5737" src="https://www.osradar.com/wp-content/uploads/2018/09/2-6.png" alt="2.- Installing nginx from official repositories" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/2-6.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/2-6-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/2-6-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/2-6-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/2-6-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/2-6-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/2-6-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5737" class="wp-caption-text">2.- Installing Nginx from official repositories</figcaption></figure></p>
<p>Next, verify that the firewall is configured to allow nginx to operate.</p>
<pre class="">:~$ sudo ufw app list</pre>
<p><figure id="attachment_5738" aria-describedby="caption-attachment-5738" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5738" src="https://www.osradar.com/wp-content/uploads/2018/09/3-6.png" alt="3.- Listing the application configurations that ufw knows" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/3-6.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/3-6-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/3-6-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/3-6-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/3-6-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/3-6-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/3-6-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5738" class="wp-caption-text">3.- Listing the application configurations that ufw knows</figcaption></figure></p>
<p>As a result, you can see the applications that are in profile in the firewall. If you see <code>Nginx Full</code>, <code>Nginx HTTP</code> and <code>Nginx HTTPS</code>, you are doing well.</p>
<p>Check the status of the service.</p>
<pre class="">:~$ sudo systemctl status nginx</pre>
<p><figure id="attachment_5739" aria-describedby="caption-attachment-5739" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5739" src="https://www.osradar.com/wp-content/uploads/2018/09/5-6.png" alt="5.- Nginx status" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/5-6.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/5-6-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/5-6-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/5-6-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/5-6-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/5-6-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/5-6-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5739" class="wp-caption-text">5.- Nginx status</figcaption></figure></p>
<p>Go to your browser and access with the IP address of the server.</p>
<p><code>http://IP_SERVER</code></p>
<p><figure id="attachment_5740" aria-describedby="caption-attachment-5740" style="width: 1229px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5740" src="https://www.osradar.com/wp-content/uploads/2018/09/6-6.png" alt="6.- Nginx welcome screen on web browser" width="1229" height="347" srcset="https://www.osradar.com/wp-content/uploads/2018/09/6-6.png 1229w, https://www.osradar.com/wp-content/uploads/2018/09/6-6-300x85.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/6-6-768x217.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/6-6-1024x289.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/6-6-696x197.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/6-6-1068x302.png 1068w" sizes="(max-width: 1229px) 100vw, 1229px" /><figcaption id="caption-attachment-5740" class="wp-caption-text">6.- Nginx welcome screen on the web browser</figcaption></figure></p>
<p>As can be seen, Nginx has been correctly installed.</p>
<h2>2. Create folders for each host</h2>
<p>For this tutorial, I will create two server blocks and consequently, a separate folder must be created for each host. Virtual hosts will be named &#8220;osradar1.test&#8221; and &#8220;osradar2.test&#8221;. Run:</p>
<pre class="">:~$ sudo mkdir -p /var/www/html/osradar1.test/public_html
:~$ sudo mkdir -p /var/www/html/osradar2.test/public_html</pre>
<p><figure id="attachment_5741" aria-describedby="caption-attachment-5741" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5741" src="https://www.osradar.com/wp-content/uploads/2018/09/7-7.png" alt="7.- Creating the folders for the two virtual hosts" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/7-7.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/7-7-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/7-7-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/7-7-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/7-7-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/7-7-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/7-7-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5741" class="wp-caption-text">7.- Creating the folders for the two virtual hosts</figcaption></figure></p>
<p>As a result, the newly created folders belong to root. This will have negative consequences on their use. You must change the owner to your user. Type:</p>
<pre class="">:~$ sudo chown -R $USER:$USER /var/www/html/osradar1.test/public_html/
:~$ sudo chown -R $USER:$USER /var/www/html/osradar2.test/public_html/</pre>
<p><figure id="attachment_5743" aria-describedby="caption-attachment-5743" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5743" src="https://www.osradar.com/wp-content/uploads/2018/09/8-5.png" alt="8.- Changing the owner of the folders" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/8-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/8-5-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/8-5-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/8-5-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/8-5-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/8-5-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/8-5-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5743" class="wp-caption-text">8.- Changing the owner of the folders</figcaption></figure></p>
<p>Finally, you must change the folder permissions.</p>
<h2>3. Create an index.html file for each host</h2>
<p>It&#8217;s time to create a test file for each host. Run:</p>
<pre class="">:~$ sudo nano /var/www/html/osradar1.test/public_html/index.html</pre>
<p>Add the following:</p>
<p><figure id="attachment_5744" aria-describedby="caption-attachment-5744" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5744" src="https://www.osradar.com/wp-content/uploads/2018/09/9-4.png" alt="9.- Creating the index.html file for the virtual hosts" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/9-4.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/9-4-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/9-4-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/9-4-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/9-4-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/9-4-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/9-4-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5744" class="wp-caption-text">9.- Creating the index.html file for the virtual hosts</figcaption></figure></p>
<p>Now do it with the other one.</p>
<pre class="">:~$ sudo nano /var/www/html/osradar2.test/public_html/index.html</pre>
<p><figure id="attachment_5745" aria-describedby="caption-attachment-5745" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5745" src="https://www.osradar.com/wp-content/uploads/2018/09/10-4.png" alt="10.- Creating the second index.html for the other virtual host" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/10-4.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/10-4-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/10-4-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/10-4-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/10-4-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/10-4-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/10-4-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5745" class="wp-caption-text">10.- Creating the second index.html for the other virtual host</figcaption></figure></p>
<p>It&#8217;s done.</p>
<h2>4. Create the configuration file for each host</h2>
<p>Then, you must create the configuration files for each Virtual hosts (block servers). In the first place, copy the Block server file by default, it will serve as a guide. Type:</p>
<pre class="">:~$ sudo cp /etc/nginx/sites-available/default /etc/nginx/sites-available/osradar1.test.conf
:~$ sudo cp /etc/nginx/sites-available/default /etc/nginx/sites-available/osradar2.test.conf</pre>
<p><figure id="attachment_5746" aria-describedby="caption-attachment-5746" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5746" src="https://www.osradar.com/wp-content/uploads/2018/09/11-3.png" alt="11.- Copying the default block server configuration file" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/11-3.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/11-3-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/11-3-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/11-3-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/11-3-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/11-3-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/11-3-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5746" class="wp-caption-text">11.- Copying the default block server configuration file</figcaption></figure></p>
<p>Now proceed to edit them. You need to change two things: server name and root directives.</p>
<pre class="">:~$  sudo nano /etc/nginx/sites-available/osradar1.test.conf</pre>
<p><figure id="attachment_5747" aria-describedby="caption-attachment-5747" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5747" src="https://www.osradar.com/wp-content/uploads/2018/09/12-3.png" alt="12.- Editing first configuration file" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/12-3.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/12-3-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/12-3-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/12-3-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/12-3-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/12-3-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/12-3-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5747" class="wp-caption-text">12.- Editing first configuration file</figcaption></figure></p>
<p>Now do the same for the other file. However, add a # on both &#8220;listen&#8221; lines.</p>
<p><figure id="attachment_5751" aria-describedby="caption-attachment-5751" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5751" src="https://www.osradar.com/wp-content/uploads/2018/09/13-1-1.png" alt="13.- Editing the second file configuration" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/13-1-1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/13-1-1-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/13-1-1-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/13-1-1-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/13-1-1-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/13-1-1-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/13-1-1-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5751" class="wp-caption-text">13.- Editing the second file configuration</figcaption></figure></p>
<pre class="">:~$ sudo nano /etc/nginx/sites-available/osradar2.test.conf</pre>
<p>That&#8217;s it. Now activate the Server Blocks.</p>
<h2>5. Enable Nginx server blocks</h2>
<p>Now, you can enable the new newly created server blocks. To do this, first, disable the default one:</p>
<pre class="">:~$ sudo rm /etc/nginx/sites-enabled/default
:~$ sudo ln -s /etc/nginx/sites-available/osradar1.test.conf /etc/nginx/sites-enabled/
:~$ sudo ln -s /etc/nginx/sites-available/osradar2.test.conf /etc/nginx/sites-enabled/</pre>
<p><figure id="attachment_5750" aria-describedby="caption-attachment-5750" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5750" src="https://www.osradar.com/wp-content/uploads/2018/09/14.png" alt="14.- Enabling the new server blocks" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/14.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/14-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/14-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/14-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/14-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/14-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/14-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5750" class="wp-caption-text">14.- Enabling the new server blocks</figcaption></figure></p>
<p>You need to reboot the nginx service. For this reason, type.</p>
<pre class="">:~ sudo systemctl restart nginx</pre>
<h2>6. Test the new server block</h2>
<p>Now it&#8217;s time to verify that everything is correct. Edit your <code>/etc/hosts</code> file and add your IP and virtual hosts.</p>
<pre class="">:~$ sudo nano /etc/hosts</pre>
<p><figure id="attachment_5752" aria-describedby="caption-attachment-5752" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5752" src="https://www.osradar.com/wp-content/uploads/2018/09/15.png" alt="15.- Editing the hosts files" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/15.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/15-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/15-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/15-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/15-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/15-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/15-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5752" class="wp-caption-text">15.- Editing the hosts files</figcaption></figure></p>
<p>Now go to your web browser and enter the address of the server block (virtual host) and test.</p>
<p><figure id="attachment_5753" aria-describedby="caption-attachment-5753" style="width: 1173px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5753" src="https://www.osradar.com/wp-content/uploads/2018/09/16.png" alt="16.- Showing results for osradar2.test" width="1173" height="175" srcset="https://www.osradar.com/wp-content/uploads/2018/09/16.png 1173w, https://www.osradar.com/wp-content/uploads/2018/09/16-300x45.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/16-768x115.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/16-1024x153.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/16-696x104.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/16-1068x159.png 1068w" sizes="(max-width: 1173px) 100vw, 1173px" /><figcaption id="caption-attachment-5753" class="wp-caption-text">16.- Showing results for osradar2.test</figcaption></figure></p>
<p><figure id="attachment_5754" aria-describedby="caption-attachment-5754" style="width: 742px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5754" src="https://www.osradar.com/wp-content/uploads/2018/09/17.png" alt="16.- Showing results for osradar1.test" width="742" height="148" srcset="https://www.osradar.com/wp-content/uploads/2018/09/17.png 742w, https://www.osradar.com/wp-content/uploads/2018/09/17-300x60.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/17-696x139.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/17-741x148.png 741w" sizes="(max-width: 742px) 100vw, 742px" /><figcaption id="caption-attachment-5754" class="wp-caption-text">16.- Showing results for osradar1.test</figcaption></figure></p>
<p>In the final analysis, I can say that nginx is a valid alternative to Apache. The way virtual hosts are created is very simple and within the reach of many.</p>
<p>We want to hear from you and your experience with nginx, tell us how it went?</p>
<p>Please spread this article through your social networks.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-configure-nginx-server-blocks-on-ubuntu-18-04/">How to configure Nginx Server Blocks on Ubuntu 18.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/how-to-configure-nginx-server-blocks-on-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
