<?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>Website Guides Archives - ServerStadium</title>
	<atom:link href="https://serverstadium.com/knowledge-base/category/website-guides/feed/" rel="self" type="application/rss+xml" />
	<link>https://serverstadium.com/knowledge-base/category/website-guides/</link>
	<description>Public Cloud Solution by ServerStadium</description>
	<lastBuildDate>Thu, 27 Apr 2023 09:49:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>

<image>
	<url>https://serverstadium.com/wp-content/uploads/2023/04/cropped-favicon-1-32x32.png</url>
	<title>Website Guides Archives - ServerStadium</title>
	<link>https://serverstadium.com/knowledge-base/category/website-guides/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Hosting Static Website with Hugo on ServerStadium</title>
		<link>https://serverstadium.com/knowledge-base/hosting-static-website-with-hugo-on-serverstadium/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Fri, 25 Feb 2022 02:54:00 +0000</pubDate>
				<guid isPermaLink="false">https://cloudraya.com/knowledge-base/?p=1787</guid>

					<description><![CDATA[<p>Introduction A static blog comprises one or more static content, such as an HTML page. The static blog is relatively simple and faster to load because it doesn&#8217;t require the execution of JavaScript or PHP in order to render. All web pages on the static blogs are hardcoded and stored as static HTML sites. To&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/hosting-static-website-with-hugo-on-serverstadium/">Hosting Static Website with Hugo on ServerStadium</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading">Introduction</h2>



<p class="wp-block-paragraph">A static blog comprises one or more static content, such as an HTML page. The static blog is relatively simple and faster to load because it doesn&#8217;t require the execution of JavaScript or PHP in order to render.</p>



<p class="wp-block-paragraph">All web pages on the static blogs are hardcoded and stored as static HTML sites. To avoid the time-consuming operation of writing out the website layout on each HTML page, we can instead use a static website generator (e.g. Hugo static generator &#8211; <a href="https://gohugo.io/" target="_blank" rel="noreferrer noopener">https://gohugo.io/)</a></p>



<h3 class="has-vivid-cyan-blue-color has-text-color wp-block-heading">Binary Installation On Linux</h3>

<p>Download the appropriate version for your platform from <a href="https://github.com/gohugoio/hugo/releases" target="_blank" rel="noopener">Hugo Releases</a>. Once downloaded, place the binary to the system <span style="background-color: lightgray;">PATH</span> location. Use <span style="background-color: lightgray;">/usr/local/bin </span> for global usage.</p>

<pre class="wp-block-code"><code>cd /usr/local/bin
wget https://github.com/gohugoio/hugo/releases/download/v0.92.2/hugo_0.92.2_Linux-64bit.tar.gz
tar -xzvf hugo_0.92.2_Linux-64bit.tar.gz</code></pre>



<figure class="wp-block-image size-full is-resized"><img fetchpriority="high" decoding="async" class="wp-image-1854" src="https://serverstadium.com/wp-content/uploads/2022/02/image.png" alt="" width="714" height="151" /></figure>



<figure class="wp-block-image size-full is-resized"><img decoding="async" class="wp-image-1856" src="https://serverstadium.com/wp-content/uploads/2022/02/image-2.png" alt="" width="675" height="52" srcset="https://serverstadium.com/wp-content/uploads/2022/02/image-2.png 768w, https://serverstadium.com/wp-content/uploads/2022/02/image-2-300x23.png 300w" sizes="(max-width: 675px) 100vw, 675px" /></figure>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading">Getting Started with Hugo</h2>



<p class="wp-block-paragraph">Let&#8217;s get started on creating a static website using Hugo.</p>

<p>We will use the theme in the following link <a href="https://themes.gohugo.io/">&#8211; Even &#8211; Hugo Themes.</a></p>

<ol class="wp-block-list">
<li>Create Hugo New Site</li>
</ol>



<pre class="wp-block-code"><code>$ hugo new site &lt;Name of your site&gt;</code></pre>



<figure class="wp-block-image size-full"><img decoding="async" class="wp-image-1869" src="https://serverstadium.com/wp-content/uploads/2022/02/image-5.png" alt="" /></figure>

<ol start="2">
<li>Clone the themes and place them on <strong>themes/even</strong> inside the newly created site folder.</li>
</ol>

<figure class="wp-block-image size-full is-resized"><img decoding="async" class="wp-image-1870" src="https://serverstadium.com/wp-content/uploads/2022/02/image-6.png" alt="" width="733" height="86" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" class="wp-image-1871" src="https://serverstadium.com/wp-content/uploads/2022/02/image-7.png" alt="" /></figure>

<ol start="3">
<li>
<p>Copy the <span style="color: #ff0000;">config.toml <span style="color: #000000;">file inside exampleSite folder to your Hugo root site (e.g NewSite). The folder structure will be like this.<br /></span></span></p>
</li>
</ol>

<figure class="wp-block-image size-full"><img decoding="async" class="wp-image-1873" src="https://serverstadium.com/wp-content/uploads/2022/02/image-8.png" alt="" /></figure>

<ol start="4">
<li>Creating new example post</li>
</ol>

<p class="wp-block-paragraph">Navigate to the root of your Hugo website (e.g NewSite). Then type the following command.</p>



<pre class="wp-block-code"><code>hugo new post/some-content.md</code></pre>



<p class="wp-block-paragraph">The result should be like this.</p>



<figure class="wp-block-image size-full"><img decoding="async" class="wp-image-1875" src="https://serverstadium.com/wp-content/uploads/2022/02/image-9.png" alt="" /></figure>

<ol start="5">
<li>Upload content to S3 ServerStadium (optional)</li>
</ol>

<p class="wp-block-paragraph">ServerStadium object storage can be used to save static content such as images, etc.</p>

<p>Please follow this link to get started with ServerStadium object storage &#8211; <a href="https://serverstadium.com/knowledge-base/storage-serverstadium-s3-object-storage/" target="_blank" rel="noopener">ServerStadium S3 Object Storage</a></p>

<p class="wp-block-paragraph">Full static page example in <strong>markdown </strong>format.</p>


<p>&#8212; title: &#8220;Blog preview&#8221; date: 2022-02-19T00:00:00+08:00 lastmod: 2022-02-19T00:00:00+08:00 draft: false tags: [&#8220;preview&#8221;, &#8220;Blog preview&#8221;, &#8220;blog-preview&#8221;] categories: [&#8220;preview&#8221;] license: &#8220;open source&#8221; author: &#8220;Sultan Ahmad&#8221; weight: 10 contentCopyright: &#8216;open source&#8217; mathjax: true autoCollapseToc: true &#8212; # ServerStadium Load Balancer, Solution to Distribute Load Equally Real Article can be found [Here](https://serverstadium.com/knowledge-base/serverstadium-load-balancer-solution-to-distribute-load-equally/) ## Creating a Load Balancer &gt; The line below is an example of blog content 1. Login to your ServerStadium management portal 2. Navigate to Networking &gt; Load Balancer 3. Click Add New Load Balancer 4. Input the required value displayed by dialog box ![Borders](https://s3-jak01.storageraya.com:8443/ahmad-bucket/images/1.png &#8220;Borders&#8221;) &#8230;&#8230;.. ## Assigning Backend Server 1. Click configure on the new created Load Balancer 2. Click Assign new VM, and choose the specific VMs as the backend servers for the loadbalancer 3. The final result should be like the below pictures ![border-resize-width](https://s3-jak01.storageraya.com:8443/ahmad-bucket/images/5.png)</p>

<p>The full Site can be reached at &#8211; <a href="https://blog.ahmadcloud.life/post/blog-preview/">https://blog.ahmadcloud.life/post/blog-preview/</a></p>

<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading">Hugo Docker Implementation with Nginx Proxy Manager</h2>



<p class="wp-block-paragraph">Why need Nginx Proxy Manager (NPM)?</p>



<p class="wp-block-paragraph">Because Hugo server runs on port 1313, we need a way to proxy HTTP port (80) to Hugo server port (1313).</p>



<p class="wp-block-paragraph">In this way, the client can access the link without specifying port 1313 on the URL.</p>



<p class="has-vivid-cyan-blue-color has-text-color has-medium-font-size wp-block-paragraph"><strong>Accessing Hugo without proxy</strong></p>



<pre class="wp-block-code"><code>e.g.
http://&lt;server IP&gt;:1313

http://&lt;domain name server&gt;:1313</code></pre>



<p class="has-medium-font-size wp-block-paragraph"><strong>Accessing Hugo with proxy</strong></p>



<pre class="wp-block-code"><code>e.g.
http://&lt;server IP&gt;

http://&lt;domain name server&gt;

<strong>no need to define port 1313 in the end of URL</strong></code></pre>

<p>Please access the following link to get a detailed instructions on installing NPM &#8211; <a href="https://serverstadium.com/knowledge-base/reverse-proxy-management-using-nginx-proxy-manager/" target="_blank" rel="noopener">Reverse Proxy management using Nginx Proxy Manager</a></p>

<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading">Defining Docker-Compose File</h2>



<p class="wp-block-paragraph">You can use the following <span class="has-inline-color has-vivid-red-color">docker</span>&#8211;<span class="has-inline-color has-vivid-red-color">compose.yaml</span> to define the functionality of NPM and Hugo server.</p>



<p class="has-vivid-red-color has-text-color has-normal-font-size wp-block-paragraph">docker-compose.yaml</p>


<p>version: &#8220;3&#8221; services: app: image: &#8216;jc21/nginx-proxy-manager:latest&#8217; restart: unless-stopped ports: # These ports are in format : &#8211; &#8217;80:80&#8242; # Public HTTP Port &#8211; &#8216;443:443&#8242; # Public HTTPS Port &#8211; &#8217;81:81&#8242; # Admin Web Port # Add any other Stream port you want to expose # &#8211; &#8217;21:21&#8217; # FTP env_file: .env_apps environment: # Uncomment this if IPv6 is not enabled on your host DISABLE_IPV6: &#8216;true&#8217; volumes: &#8211; ./data:/data &#8211; ./letsencrypt:/etc/letsencrypt depends_on: &#8211; db networks: &#8211; npm-network db: image: &#8216;jc21/mariadb-aria:latest&#8217; restart: unless-stopped env_file: .env_db volumes: &#8211; ./data/mysql:/var/lib/mysql networks: &#8211; npm-network hugo: image: klakegg/hugo:0.92.1 container_name: hugo-static-web command: server &#8211;bind=0.0.0.0 volumes: &#8211; &#8220;/home/admuser/stat-website:/src&#8221; networks: &#8211; npm-network networks: npm-network: driver: bridge</p>



<p class="has-vivid-red-color has-text-color wp-block-paragraph">Directory tree of the docker-compose</p>

<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1866" src="https://serverstadium.com/wp-content/uploads/2022/02/image-4.png" alt="" width="315" height="207" srcset="https://serverstadium.com/wp-content/uploads/2022/02/image-4.png 315w, https://serverstadium.com/wp-content/uploads/2022/02/image-4-300x197.png 300w" sizes="(max-width: 315px) 100vw, 315px" /></p>

<p class="has-vivid-red-color has-text-color wp-block-paragraph">.env_apps</p>


<p>DB_MYSQL_HOST=db DB_MYSQL_PORT=3306 DB_MYSQL_USER=&#8221;mysql username&#8221; DB_MYSQL_PASSWORD=&#8221;mysql password&#8221; DB_MYSQL_NAME=&#8221;mysql dbname&#8221;</p>



<p class="has-vivid-red-color has-text-color wp-block-paragraph">.env_db</p>


<p>MYSQL_ROOT_PASSWORD=&#8221;mysql root password&#8221; MYSQL_DATABASE=&#8221;mysql database name&#8221; MYSQL_USER=&lt;mysql username&#8221;&#8221; MYSQL_PASSWORD=</p>

<p><img loading="lazy" decoding="async" class="alignnone  wp-image-1882" style="border: 3px; border-style: solid; border-color: #FF0000; padding: 1em;" src="https://serverstadium.com/wp-content/uploads/2022/02/image-10.png" alt="" width="738" height="236" /></p>
<p><img loading="lazy" decoding="async" class="alignnone  wp-image-1882" style="border: 3px; border-style: solid; border-color: #FF0000; padding: 1em;" src="https://serverstadium.com/wp-content/uploads/2022/02/image-10.png" alt="" width="740" height="239" /></p>
<p><img loading="lazy" decoding="async" class="alignnone  wp-image-1884" style="border: 3px; border-style: solid; border-color: #FF0000; padding: 1em;" src="https://serverstadium.com/wp-content/uploads/2022/02/image-12.png" alt="" width="730" height="408" /></p>

<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading">Conclusion</h2>



<p class="wp-block-paragraph">To get more tips and tutorial articles, you can check on ServerStadium&#8217;s <a href="https://serverstadium.com/knowledge-base/"><strong>Knowledge Base</strong></a> Or, even better, you can sign up now for <strong>free </strong>in <a href="https://cp.serverstadium.com">ServerStadium</a> to try our dashboard and feature.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/hosting-static-website-with-hugo-on-serverstadium/">Hosting Static Website with Hugo on ServerStadium</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Deploying Magento on ServerStadium</title>
		<link>https://serverstadium.com/knowledge-base/deploying-magento-on-serverstadium/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Mon, 31 May 2021 16:19:46 +0000</pubDate>
				<guid isPermaLink="false">https://cloudraya.com/knowledge-base/?p=1115</guid>

					<description><![CDATA[<p>Introduction This article will show you how to deploy Magento on ServerStadium Cloud. Before we begin, let’s get to know about Magento. In short, Magento is a content management system focused on eCommerce that helps users to create eCommerce websites. It was released on March 31, 2008, by Varien and then developed on Zend Framework.&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/deploying-magento-on-serverstadium/">Deploying Magento on ServerStadium</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading">Introduction</h2>



<p class="wp-block-paragraph">This article will show you how to deploy Magento on ServerStadium Cloud. Before we begin, let’s get to know about Magento.</p>



<p class="wp-block-paragraph">In short, Magento is a content management system focused on eCommerce that helps users to create eCommerce websites. It was released on March 31, 2008, by Varien and then developed on Zend Framework.</p>



<p class="wp-block-paragraph">In addition, there are some basic features of Magento:</p>



<ul class="wp-block-list">
<li><strong>Product management:</strong> able to manage products such as product images, product reviews, favorite product list, and product list.</li>
<li><strong>Category management:</strong> to help users find and then select products by category easier.</li>
<li><strong>Inventory management:</strong> it shows the management of product quantity and also the options.</li>
<li><strong>Client account:</strong> It shows account status, transaction history, preferred catalog, address, and also a shopping cart.</li>
<li><strong>Customer service:</strong> allows the admin to assist the customer actions, such as canceling an order, order tracking and history from an account, resetting mail and password, etc.</li>
<li><strong>Order Management</strong>: This feature relates to order as well as invoice management. So, the admin is able to view, edit, create, and fulfill orders and/or invoices from the admin panel.</li>
<li><strong>Payments:</strong> many payment methods, such as credit cards, PayPal, Google Checkout, support external payment modules like CyberSource, ePay, eWAY, and more.</li>
<li><strong>Search technology: </strong>is fast, friendly, and supports search on Google SiteMap.</li>
<li><strong>International support:</strong> Language support, multiple currencies, and tax rates.</li>
<li><strong>Promotion and marketing tools:</strong> These include coupons, promotions, and many more.</li>
<li><strong>Analyze and report:</strong> it integrates with the Google Analytics service and also provides multiple reports.</li>
</ul>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading">Installation Stage</h2>



<h5 class="wp-block-heading"><strong>1. System Requirements and Package Installation</strong></h5>



<p class="wp-block-paragraph">In this article, we will deploy Magento in a single-node environment. While the Magento deployment in the cluster may need additional environment and steps. The requirements for a single-node deployment are described below:</p>



<ul class="wp-block-list">
<li>Virtual Server with Ubuntu 20.04 x86_64 and 4 GB minimum memory</li>
<li>Nginx 1.x, as a web server</li>
<li>PHP7.4-FPM, and the extensions needed</li>
<li>MariaDB 10.4 as a database</li>
<li>Elasticsearch 7.x, as an indexing engine (required by Magento)</li>
<li>Composer 1.10.16</li>
</ul>



<h5 class="wp-block-heading"><strong>1.1 Creating a virtual machine in ServerStadium Cloud</strong></h5>



<p class="has-text-align-left wp-block-paragraph">Please find the virtual machine creation steps on <a href="https://serverstadium.com/knowledge-base/deploying-a-virtual-machine-in-serverstadium/" target="_blank" rel="noreferrer noopener">this link</a>. After that, Select Ubuntu 20.04 as a based OS in the image selection, and choose a package with a minimum of 4 GB memory resource.</p>



<h5 class="wp-block-heading"><strong>1.2 Installing Nginx 1.x Web Server</strong></h5>

<ul>
<li>First of all, please update the current Ubuntu repository by running this command  $ sudo apt update.</li>
<li>Then, Install the Nginx package from Ubuntu repository $ sudo apt install nginx -y.</li>
<li>Next, check the nginx version by executing $ nginx -v </li>
</ul>

<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<h5 class="wp-block-heading"><strong>1.3 Installing PHP7.4-FPM and the required extensions</strong></h5>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<ul class="wp-block-list">
<li>Firstly, type this command to install PHP7.4-FPM in the virtual machine $ sudo apt install php7.04-fpm -y</li>
<li>After that, Verify the PHP version <code>$ php -v </code></li>
<li>Then, add the required php extentions to the system.</li>
</ul>



<pre class="wp-block-preformatted"><code>$ sudo apt install -y php74u-pdo php74u-mysqlnd php74u-opcache php74u-xml php74u-gd php74u-devel php74u-mysql php74u-intl php74u-mbstring php74u-bcmath php74u-json php74u-iconv php74u-soap</code></pre>
</div></div>
</div></div>
</div></div>
</div></div>



<p class="wp-block-paragraph">&nbsp;</p>
</div></div>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<h5 class="wp-block-heading"><strong>1.4 Installing MariaDB 10.4</strong></h5>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<ul class="wp-block-list">
<li>First, setup the repository and install it to the virtual machine by following <a href="https://serverstadium.com/knowledge-base/how-to-install-and-secure-mariadb-on-ubuntu-18-04-and-20-04/" target="_blank" rel="noreferrer noopener">this link.</a></li>
<li>We can also follow the secure installing process in the link above to harden our MariaDB</li>
<li>Run the following command to install the dependency of MariaDB 10.4 <br /><code>$ sudo apt install -y mariadb-server-10.04 mariadb-client-10.4</code></li>
<li>Then, login the to the MariaDB server to determine its version</li>
</ul>


<div class="wp-block-image">
<figure class="aligncenter"><img loading="lazy" decoding="async" width="890" height="176" class="wp-image-1122" src="https://serverstadium.com/wp-content/uploads/2021/05/mariadb-version.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/05/mariadb-version.png 890w, https://serverstadium.com/wp-content/uploads/2021/05/mariadb-version-300x59.png 300w, https://serverstadium.com/wp-content/uploads/2021/05/mariadb-version-768x152.png 768w" sizes="(max-width: 890px) 100vw, 890px" /></figure>
</div></div></div>
</div></div>
</div></div>



<h5 class="wp-block-heading"><strong>1.5 Installing Elasticsearch 7.x</strong></h5>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<ul class="wp-block-list">
<li>We need Java Development Kid (JDK) before adding Elasticsearch to the virtual machine. We can install the JDK using the following command. <code>$ sudo apt install -y java-1.8.0-openjdk</code></li>
<li>Follow <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html" target="_blank" rel="noreferrer noopener">this link </a>for Ubuntu or Debian based platform.</li>
<li>Please also make sure the Elasticsearch service is running after it’s started.</li>
</ul>


<div class="wp-block-image">
<figure class="aligncenter"><img loading="lazy" decoding="async" width="890" height="418" class="wp-image-1125" src="https://serverstadium.com/wp-content/uploads/2021/05/elasticsearch.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/05/elasticsearch.png 890w, https://serverstadium.com/wp-content/uploads/2021/05/elasticsearch-300x141.png 300w, https://serverstadium.com/wp-content/uploads/2021/05/elasticsearch-768x361.png 768w" sizes="(max-width: 890px) 100vw, 890px" /></figure>
</div>


<p class="wp-block-paragraph">&nbsp;</p>
</div></div>



<h5 class="wp-block-heading"><strong>1.6 Installing Composer</strong></h5>

<ul>
<li>The composer’s manual suggests not running the command using a root or super privileged. So, we will create a temporal user to execute the composer command.</li>
<li>Create a temporal user using the command below, and add it to www-data usergroup</li>
</ul>
<pre style="padding-left: 40px;"><span style="color: #ff0000;"><code>$ sudo adduser admuser</code></span></pre>
<pre style="padding-left: 40px;"><span style="color: #ff0000;"><code>$ sudo usermod -aG www-data admuser</code></span></pre>
<ul>
<li>Then, download the composer file direct from the internet. Then move the file to /usr/local/bin directory</li>
</ul>
<pre style="padding-left: 40px;"><span style="color: #ff0000;"><code>$ sudo curl -sS https://getcomposer.org/installer | php<br />$ sudo mv composer.phar /usr/local/bin/composer</code></span></pre>
<ul>
<li>Run the following command to change the composer version to 1.10.16</li>
</ul>
<pre style="padding-left: 40px;"><span style="color: #ff0000;"><code>$ composer self-update 1.10.16</code></span></pre>
<p>Let’s check all the installed dependencies using the simple script below</p>
<pre><span style="color: #ff0000;"><code>$ git clone <a style="color: #ff0000;" href="https://github.com/kingahmadr/magento-usefultools.git">https://github.com/kingahmadr/magento-usefultools.git</a>; cd magento-usefultools/script</code></span><br /><br /><span style="color: #ff0000;"><code>$ sh Check_All_Required_Package.sh</code></span></pre>

<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1011" height="890" class="wp-image-1133" src="https://serverstadium.com/wp-content/uploads/2021/05/check-all-required-package-1.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/05/check-all-required-package-1.png 1011w, https://serverstadium.com/wp-content/uploads/2021/05/check-all-required-package-1-300x264.png 300w, https://serverstadium.com/wp-content/uploads/2021/05/check-all-required-package-1-768x676.png 768w" sizes="(max-width: 1011px) 100vw, 1011px" /></figure>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading">Minimal Configuration</h2>



<p class="wp-block-paragraph">In this section, We will tweak the configuration of all Magento dependencies on the virtual machine with minimal tweaking.</p>



<h5 class="wp-block-heading"><strong>2. Configuring Nginx and Terminate SSL</strong></h5>



<p class="wp-block-paragraph">We will configure the Nginx web server, to use the PHP-FPM as an upstream connection and configure the SSL Certificate on the domain.</p>

<ul>
<li>Create the domain file configuration in directory /etc/nginx/sites-available <span style="color: #ff0000;"><code><span style="color: #ff0000;">$ sudo touch &lt;name of your domain&gt;.&lt;tld&gt;</span></code></span></li>
</ul>

<p class="wp-block-paragraph"><strong>2.1 Domain Configuration</strong></p>



<ul class="wp-block-list">
<li>Configure the domain in /etc/nginx/sites-available as the following example:</li>
</ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="583" height="596" class="wp-image-1149" src="https://serverstadium.com/wp-content/uploads/2021/05/ahmadcloud.life_.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/05/ahmadcloud.life_.png 583w, https://serverstadium.com/wp-content/uploads/2021/05/ahmadcloud.life_-293x300.png 293w" sizes="(max-width: 583px) 100vw, 583px" />
<figcaption>Config File On /etc/nginx/sites-available</figcaption>
</figure>

<ul>
<li>Line 1 – 5 describes a fastcgi backend server between Nginx web server and PHP-FPM.</li>
<li>6 – 12, is a function to redirect http connection of the domain to an https connection.</li>
<li>15 – 17, described the name of the domain listened, and set the MAGE_ROOT variable to /var/www/magento (the Document Root of our Magento Platform).
<p><em>NOTE The server_name value in the configuration is a domain name that you have bought from the registrar</em></p>
</li>
<li>19, describes an included Nginx configuration in directory /var/www/magento. Magento provides a template configuration of nginx web server on their directory. We can include that configuration in our Nginx configuration.</li>
<li>21 – 24, define the SSL certificate file and SSL certificate key file directory. In this lines, it will be used by the web server to perform an SSL termination.</li>
<li>27 – 34, the directives for SSL hardening purposes.</li>
</ul>
<p>Create a symbolic link to /etc/nginx/sites-enabled</p>
<pre>$ sudo ln -s /etc/nginx/sites-available/ahmadcloud,life.conf /etc/nginx/sites-enabled/ahmadcloud.life.conf</pre>
<p>Test the Nginx configuration by executing nginx -t command. If the test success, execute the “nginx -s reload” to reload the current configuration</p>

<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="941" height="114" class="wp-image-1156" src="https://serverstadium.com/wp-content/uploads/2021/05/nginx-configuration-test.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/05/nginx-configuration-test.png 941w, https://serverstadium.com/wp-content/uploads/2021/05/nginx-configuration-test-300x36.png 300w, https://serverstadium.com/wp-content/uploads/2021/05/nginx-configuration-test-768x93.png 768w" sizes="(max-width: 941px) 100vw, 941px" /></figure>



<h5 class="wp-block-heading">2.2 <strong>Configuring PHP </strong></h5>



<p class="wp-block-paragraph">Find the php configuration file in /etc/php/7.4/fpm/php.ini &amp; /etc/php/7.4/cli/php.ini. Don’t forget to backup the original configuration of php.ini</p>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<ul class="wp-block-list">
<li>Firstly, set the system time zone for PHP. Locate the following setting and uncomment it if necessary</li>
</ul>



<pre class="wp-block-preformatted">date.timezone =</pre>



<ul class="wp-block-list">
<li>Then, increase the values for the PHP <code>realpath_cache_size</code>, and <code>realpath_cache_ttl</code> to recommended settings.</li>
</ul>



<pre class="wp-block-preformatted"><code><span style="color: #ff0000;">realpath_cache_size=10M</span>
<span style="color: #ff0000;">realpath_cache_ttl=7200</span></code></pre>



<ul class="wp-block-list">
<li>Enable opcache.save_comments, which is required for Magento 2.1 and later. Locate the opcache.save_comments directive and uncomment it if necessary. Make sure its value is set to 1</li>
</ul>



<figure class="wp-block-image"><img decoding="async" class="wp-image-1163" src="https://serverstadium.com/wp-content/uploads/2021/05/opcache.save_comments.png" alt="" /></figure>



<ul class="wp-block-list">
<li>Next, change the value of memory_limit, max_execution_time and zlib.output_compression to one of the values recommended.
<pre><span style="color: #ff0000;">memory_limit = 2G</span><br /><span style="color: #ff0000;">max_execution_time = 1800</span><br /><span style="color: #ff0000;">zlib.output_compression = On</span></pre>
</li>
</ul>
</div></div>



<h5 class="wp-block-heading">2.3 <strong>MariaDB instance Configuration</strong></h5>



<p class="wp-block-paragraph">This section will discuss how to create a new database instance for Magento. Although we recommend a new database instance, you can install Magento into an existing database instance (optionally).</p>



<ul class="wp-block-list">
<li>before that, login to your database server using a privileged user</li>
</ul>



<pre class="wp-block-preformatted"><span style="color: #ff0000;">$ mysql -uroot</span></pre>



<ul class="wp-block-list">
<li>Enter the following commands in the order shown to create a database instance named Magento with username Magento:<br /><strong>creating a new database </strong>
<p><code>create database magento;</code></p>
<p><strong>make a new user with a localhost access </strong></p>
<br />
<p><span style="color: #ff0000;"><code>create user 'magento'@'localhost' IDENTIFIED BY 'R2phuYzuMAEG8jgS';</code></span></p>
<p><strong>Grant all privileges to user magento@localhost to database Magento </strong></p>
<br />
<p><span style="color: #ff0000;"><code>GRANT ALL ON magento.* TO 'magento'@'localhost';flush privileges;</code></span></p>
</li>
<li>Verify the database</li>
</ul>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="1303" height="226" class="wp-image-1166" src="https://serverstadium.com/wp-content/uploads/2021/05/verify_database.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/05/verify_database.png 1303w, https://serverstadium.com/wp-content/uploads/2021/05/verify_database-300x52.png 300w, https://serverstadium.com/wp-content/uploads/2021/05/verify_database-1024x178.png 1024w, https://serverstadium.com/wp-content/uploads/2021/05/verify_database-768x133.png 768w" sizes="(max-width: 1303px) 100vw, 1303px" /></figure>



<h5 class="wp-block-heading">2.3.1 Magento Database Tweaking</h5>

<p>We recommend you configure your database instance as appropriate for your business. When configuring your database, please keep the following in mind:</p>
<ol>
<li>Indexers require higher tmp_table_size and max_heap_table_size values (e.g., 64M). If you configure the batch_size parameter, you can adjust that value and table size settings to improve indexer performance.</li>
</ol>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1168" src="https://serverstadium.com/wp-content/uploads/2021/05/verify_database-1.png" alt="" width="1303" height="226" srcset="https://serverstadium.com/wp-content/uploads/2021/05/verify_database-1.png 1303w, https://serverstadium.com/wp-content/uploads/2021/05/verify_database-1-300x52.png 300w, https://serverstadium.com/wp-content/uploads/2021/05/verify_database-1-1024x178.png 1024w, https://serverstadium.com/wp-content/uploads/2021/05/verify_database-1-768x133.png 768w" sizes="(max-width: 1303px) 100vw, 1303px" /></p>
<ol start="2">
<li>For optimal performance, make sure all MySQL and Magento index tables can be kept in memory (e.g., configure innodb_buffer_pool_size)</li>
<li>Reindex process on MariaDB 10.4 takes more time compared to other MariaDB or MySQL versions. To speed up reindex process, we recommend setting these MariaDB configuration parameters,</li>
</ol>
<pre>optimizer_switch=’rowid_filter=off’, optimizer_use_condition_selectivity = 1 </pre>
<p>To set those variables permanently, We will create the *.cnf file in /etc/mysql/mariadb.conf.d/ directory. We will name the file magento.cnf</p>

<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="937" height="153" class="wp-image-1170" src="https://serverstadium.com/wp-content/uploads/2021/05/mariadb-reindexing.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/05/mariadb-reindexing.png 937w, https://serverstadium.com/wp-content/uploads/2021/05/mariadb-reindexing-300x49.png 300w, https://serverstadium.com/wp-content/uploads/2021/05/mariadb-reindexing-768x125.png 768w" sizes="(max-width: 937px) 100vw, 937px" /></figure>

<p>To check the variable&#8217;s value, we can execute the below command:</p>
<pre>mysql -uroot -e "SHOW VARIABLES LIKE 'optimizer_switch';" | grep -i "rowid_filter" \<br /><br />&amp;&amp; mysql -uroot -e "SHOW VARIABLES LIKE 'optimizer_use_condition_selectivity';"</pre>

<figure class="wp-block-image size-large is-style-default"><img loading="lazy" decoding="async" width="1510" height="263" class="wp-image-1171" src="https://serverstadium.com/wp-content/uploads/2021/05/variable-value.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/05/variable-value.png 1510w, https://serverstadium.com/wp-content/uploads/2021/05/variable-value-300x52.png 300w, https://serverstadium.com/wp-content/uploads/2021/05/variable-value-1024x178.png 1024w, https://serverstadium.com/wp-content/uploads/2021/05/variable-value-768x134.png 768w" sizes="(max-width: 1510px) 100vw, 1510px" /></figure>



<h5 class="wp-block-heading">2.4 Elasticsearch Configuration</h5>

<p>There are three things we would like to change in the file configuration (/etc/elasticsearch/elasticsearch.yml)</p>
<ul>
<li>Update the Cluster Name by replacing the cluster.name value, with something descriptive, for instance, “<strong>Magento Cluster</strong>”. </li>
<li>Then, update the Node Name, and replace the node-name value with something descriptive like “<strong>Magento Node</strong>”</li>
<li>You need to update the Network Host also. And finally, do the same with network.host , replacing the IP (“192.168.0.1”) with “localhost”.</li>
<li>Lastly, Save the configuration and restart the service. </li>
</ul>
<pre style="padding-left: 40px;"># systemctl restart elasticsearch.service</pre>

<h5 class="wp-block-heading">3. Deploy Magento using composer</h5>



<p class="wp-block-paragraph">First of all, we will need a Magento Marketplace account and generate a set of keys during the Magento 2.4 installation process. Once sign into Magento Marketplace, navigate to My Profile. Under the Marketplace tab, click on Access Keys. After that, under the Magento 2 tab, click the Create A New Access Key button. In the Popup, give this a proper name, such as the Business Name of the website you plan to install (note, you cannot use spaces). Once you generate your <strong>Public Key</strong> and <strong>Private Key</strong>, put them somewhere safe for later.</p>

<ul>
<li>To begin the Magento installation using composer, first, navigate to Magento Document Root (/var/www/magento)</li>
<li>Change the folder owner to admuser:www-data</li>
</ul>
<p style="padding-left: 40px;"># cd /var/www</p>
<p style="padding-left: 40px;"># chown -R admuser:www-data magento</p>
<p style="padding-left: 40px;"># cd magento</p>
<ul>
<li>Execute the composer installer as an admuser user</li>
</ul>
<p style="padding-left: 40px;"># su admuser -c “composer create-project &#8211;repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.0 .”</p>
<ul>
<li>During the setup, we will be asked for a Username and a Password. Just to be clear, Username = <strong>Public Key</strong> and Password = <strong>Private Key</strong>. Once underway, the composer process can take anywhere from 5-10 minutes to complete</li>
</ul>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1174" src="https://serverstadium.com/wp-content/uploads/2021/05/magento-composer-deployment-1-e1621457707667.png" alt="" width="1205" height="159" srcset="https://serverstadium.com/wp-content/uploads/2021/05/magento-composer-deployment-1-e1621457707667.png 1205w, https://serverstadium.com/wp-content/uploads/2021/05/magento-composer-deployment-1-e1621457707667-300x40.png 300w, https://serverstadium.com/wp-content/uploads/2021/05/magento-composer-deployment-1-e1621457707667-1024x135.png 1024w, https://serverstadium.com/wp-content/uploads/2021/05/magento-composer-deployment-1-e1621457707667-768x101.png 768w" sizes="(max-width: 1205px) 100vw, 1205px" /></p>
<ul>
<li>In the current directory, run the following instruction to setup Magento with a described environment. You must define your own to fulfill your needs. Below is just an example of my setup. </li>
</ul>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1176" src="https://serverstadium.com/wp-content/uploads/2021/05/Magento-installation-script.png" alt="" width="617" height="350" srcset="https://serverstadium.com/wp-content/uploads/2021/05/Magento-installation-script.png 617w, https://serverstadium.com/wp-content/uploads/2021/05/Magento-installation-script-300x170.png 300w" sizes="(max-width: 617px) 100vw, 617px" /></p>
<p>Once the setup is complete, it will look like this</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1177" src="https://serverstadium.com/wp-content/uploads/2021/05/setup-completed.png" alt="" width="994" height="357" srcset="https://serverstadium.com/wp-content/uploads/2021/05/setup-completed.png 994w, https://serverstadium.com/wp-content/uploads/2021/05/setup-completed-300x108.png 300w, https://serverstadium.com/wp-content/uploads/2021/05/setup-completed-768x276.png 768w" sizes="(max-width: 994px) 100vw, 994px" /></p>

<p class="wp-block-paragraph" style="font-size: 12px;"><em>NOTE: IF YOU HAVE AN ISSUE WITH TWO-FACTOR AUTHENTICATION STEPS, YOU CAN DISABLE THE MODULE <a href="https://magento.stackexchange.com/questions/318715/how-to-disable-two-factor-authentication-module-in-magento-2-4" target="_blank" rel="noreferrer noopener">HERE</a></em>.</p>



<p class="wp-block-paragraph">After this section, you should be able to access Magento from your domain. (e.g https://ahmadcloud.life/admin_zazwsv)</p>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1248" height="904" data-id="1178" class="wp-image-1178" src="https://serverstadium.com/wp-content/uploads/2021/05/landing-page1.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/05/landing-page1.png 1248w, https://serverstadium.com/wp-content/uploads/2021/05/landing-page1-300x217.png 300w, https://serverstadium.com/wp-content/uploads/2021/05/landing-page1-1024x742.png 1024w, https://serverstadium.com/wp-content/uploads/2021/05/landing-page1-768x556.png 768w" sizes="(max-width: 1248px) 100vw, 1248px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1149" height="941" data-id="1179" class="wp-image-1179" src="https://serverstadium.com/wp-content/uploads/2021/05/landing-page2.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/05/landing-page2.png 1149w, https://serverstadium.com/wp-content/uploads/2021/05/landing-page2-300x246.png 300w, https://serverstadium.com/wp-content/uploads/2021/05/landing-page2-1024x839.png 1024w, https://serverstadium.com/wp-content/uploads/2021/05/landing-page2-768x629.png 768w" sizes="(max-width: 1149px) 100vw, 1149px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1879" height="836" data-id="1180" class="wp-image-1180" src="https://serverstadium.com/wp-content/uploads/2021/05/landing-page3.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/05/landing-page3.png 1879w, https://serverstadium.com/wp-content/uploads/2021/05/landing-page3-300x133.png 300w, https://serverstadium.com/wp-content/uploads/2021/05/landing-page3-1024x456.png 1024w, https://serverstadium.com/wp-content/uploads/2021/05/landing-page3-768x342.png 768w, https://serverstadium.com/wp-content/uploads/2021/05/landing-page3-1536x683.png 1536w" sizes="(max-width: 1879px) 100vw, 1879px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1745" height="888" data-id="1181" class="wp-image-1181" src="https://serverstadium.com/wp-content/uploads/2021/05/landing-page4.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/05/landing-page4.png 1745w, https://serverstadium.com/wp-content/uploads/2021/05/landing-page4-300x153.png 300w, https://serverstadium.com/wp-content/uploads/2021/05/landing-page4-1024x521.png 1024w, https://serverstadium.com/wp-content/uploads/2021/05/landing-page4-768x391.png 768w, https://serverstadium.com/wp-content/uploads/2021/05/landing-page4-1536x782.png 1536w" sizes="(max-width: 1745px) 100vw, 1745px" /></figure>

<figcaption class="blocks-gallery-caption">Magento Pages Example</figcaption>
</figure>
</div></div>



<p class="wp-block-paragraph">&nbsp;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/deploying-magento-on-serverstadium/">Deploying Magento on ServerStadium</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Install CWP in ServerStadium Cloud</title>
		<link>https://serverstadium.com/knowledge-base/how-to-install-cwp-in-serverstadium/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Wed, 21 Apr 2021 06:28:50 +0000</pubDate>
				<guid isPermaLink="false">https://cloudraya.com/knowledge-base/?p=1060</guid>

					<description><![CDATA[<p>Currently, many people are interested in knowing how to install CWP. But let&#8217;s get to know about CWP first. CWP (CentOS Web Panel / Control Web Panel) is a control panel application for Web Hosting that uses VPS (Virtual Private Server) or Dedicated Server with CentOS and CloudLinux-based OS. CWP exists to meet a condition when&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/how-to-install-cwp-in-serverstadium/">How to Install CWP in ServerStadium Cloud</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Currently, many people are interested in knowing how to install CWP. But let&#8217;s get to know about CWP first. <strong>CWP</strong> (CentOS Web Panel / Control Web Panel) is a control panel application for Web Hosting that uses <strong>VPS</strong> (Virtual Private Server) or Dedicated Server with <strong><span class="has-inline-color has-vivid-cyan-blue-color">CentOS</span></strong> and <b>CloudLinux-based</b> OS.</p>



<p class="wp-block-paragraph">CWP exists to meet a condition when a sysadmin doesn&#8217;t need to access the server through SSH to configure the task they need. Like cPanel, but CWP is free to use.</p>



<p class="wp-block-paragraph">CWP basic features include:</p>



<ul class="wp-block-list">
<li>Apache Webserver</li>
<li>PHP</li>
<li>User Management</li>
<li>DNS Service</li>
<li>Email Service</li>
<li>Security</li>
<li>Database (with MySQL service)</li>
<li>System Management</li>
<li>Etc</li>
</ul>



<p class="wp-block-paragraph">Here are the steps for installing CWP in the ServerStadium Virtual Machine that uses the <a href="https://serverstadium.com/knowledge-base/securing-centos-with-iptables/" target="_blank" rel="noreferrer noopener">CentOS 7</a> Operating System.</p>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading">Hardware Requirements</h2>



<ul class="wp-block-list">
<li>32-bit Operating Systems require a minimum of <span class="has-inline-color has-vivid-red-color">512 MB</span> of RAM</li>
<li>64-bit Operating Systems require a minimum of <span class="has-inline-color has-vivid-red-color">1024 MB</span> of RAM (recommended)</li>
<li>Recommended System: <span class="has-inline-color has-vivid-red-color">4 GB+</span> RAM so you would have the full functionality such as Anti-virus scan of emails, etc.</li>
</ul>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading">Software Requirements</h2>



<p class="wp-block-paragraph">You must have a clean/fresh installation of these supported Operating Systems :</p>



<ul class="wp-block-list">
<li>first, <span class="has-inline-color has-vivid-red-color">CentOS 6</span>, <span class="has-inline-color has-vivid-red-color">RedHat 6</span> or <span class="has-inline-color has-vivid-red-color">CloudLinux 6</span>, <strong>minimal</strong> installation, and English version only.</li>
<li>second, <span class="has-inline-color has-vivid-red-color">CentOS 7</span> is also supported, we recommend using a <strong>minimal</strong> version.</li>
<li>and, <span class="has-inline-color has-vivid-red-color">CentOS 8</span> is <strong>NOT</strong> supported yet.</li>
</ul>



<h3 class="has-vivid-cyan-blue-color has-text-color wp-block-heading">Step 1 &#8211; Setup Hostname and IP Address</h3>



<p class="wp-block-paragraph">To begin with, set the CWP server&#8217;s hostname using <strong>FQDN</strong> (Fully Qualified Domain Name). Please takes note that hostname of the VM should not be the same as the main domain, for example :</p>



<p class="wp-block-paragraph"><strong>Domain</strong> &#8211;&gt; bari.com<br /><strong>Hostname</strong> &#8211;&gt; server.bari.com</p>



<p class="wp-block-paragraph">Set the server hostname with the command below :</p>



<pre class="wp-block-code"><code># hostnamectl set-hostname server.bari.com</code></pre>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="606" height="62" class="wp-image-1064" src="https://serverstadium.com/wp-content/uploads/2021/04/Image-1.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/04/Image-1.png 606w, https://serverstadium.com/wp-content/uploads/2021/04/Image-1-300x31.png 300w" sizes="(max-width: 606px) 100vw, 606px" /></figure>



<p class="wp-block-paragraph">As for the ServerStadium VM, we don&#8217;t need to set an IP Address. Since ServerStadium already set the Public IP Address from the ServerStadium panel.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="527" height="148" class="wp-image-1066" src="https://serverstadium.com/wp-content/uploads/2021/04/Image-3-1.png" alt="How to Install CWP in ServerStadium" srcset="https://serverstadium.com/wp-content/uploads/2021/04/Image-3-1.png 527w, https://serverstadium.com/wp-content/uploads/2021/04/Image-3-1-300x84.png 300w" sizes="(max-width: 527px) 100vw, 527px" /></figure>



<h3 class="has-vivid-cyan-blue-color has-text-color wp-block-heading">Step 2 &#8211; Updating Server</h3>



<p class="wp-block-paragraph">The second step is to update the server and install the required package for CWP installation. Update the VM repository with the below command :</p>



<pre class="wp-block-code"><code># yum update -y</code></pre>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="413" height="133" class="wp-image-1067" src="https://serverstadium.com/wp-content/uploads/2021/04/Image-4.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/04/Image-4.png 413w, https://serverstadium.com/wp-content/uploads/2021/04/Image-4-300x97.png 300w" sizes="(max-width: 413px) 100vw, 413px" /></figure>



<p class="wp-block-paragraph">After the update process is completed, install the <strong>wget </strong>package as download media for CWP files with the below command :</p>



<pre class="wp-block-code"><code># yum install wget -y</code></pre>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="439" height="119" class="wp-image-1070" src="https://serverstadium.com/wp-content/uploads/2021/04/Image-5-2.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/04/Image-5-2.png 439w, https://serverstadium.com/wp-content/uploads/2021/04/Image-5-2-300x81.png 300w" sizes="(max-width: 439px) 100vw, 439px" /></figure>



<p class="wp-block-paragraph">After that, reboot the VM; thus, the updates will be completely applied to the VM.</p>



<h3 class="has-vivid-cyan-blue-color has-text-color wp-block-heading">Step 3 &#8211; Install CWP</h3>



<p class="wp-block-paragraph">The third step is to start the installation process of the CWP. First move to directory <strong>/usr/local/src</strong> with the below command :</p>



<pre class="wp-block-code"><code># cd /usr/local/src</code></pre>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="314" height="62" class="wp-image-1073" src="https://serverstadium.com/wp-content/uploads/2021/04/Image-6.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/04/Image-6.png 314w, https://serverstadium.com/wp-content/uploads/2021/04/Image-6-300x59.png 300w" sizes="(max-width: 314px) 100vw, 314px" /></figure>



<p class="wp-block-paragraph">After that, download CWP files using wget with the below command :</p>



<pre class="wp-block-code"><code># wget http://centos-webpanel.com/cwp-latest</code></pre>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="795" height="312" class="wp-image-1075" src="https://serverstadium.com/wp-content/uploads/2021/04/Image-7-1.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/04/Image-7-1.png 795w, https://serverstadium.com/wp-content/uploads/2021/04/Image-7-1-300x118.png 300w, https://serverstadium.com/wp-content/uploads/2021/04/Image-7-1-768x301.png 768w" sizes="(max-width: 795px) 100vw, 795px" /></figure>



<p class="wp-block-paragraph">And then, run the bash file CWP installation with the below command :</p>



<pre class="wp-block-code"><code># sh cwp-latest</code></pre>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="593" height="310" class="wp-image-1076" src="https://serverstadium.com/wp-content/uploads/2021/04/Image-8.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/04/Image-8.png 593w, https://serverstadium.com/wp-content/uploads/2021/04/Image-8-300x157.png 300w" sizes="(max-width: 593px) 100vw, 593px" /></figure>



<p class="wp-block-paragraph">After the installation process is completed, reboot the VM by typing the command below :</p>



<pre class="wp-block-code"><code># reboot</code></pre>



<p class="wp-block-paragraph">Or</p>



<pre class="wp-block-code"><code># shutdown -r</code></pre>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="543" height="108" class="wp-image-1077" src="https://serverstadium.com/wp-content/uploads/2021/04/Image-9.png" alt="How to Install CWP in ServerStadium" srcset="https://serverstadium.com/wp-content/uploads/2021/04/Image-9.png 543w, https://serverstadium.com/wp-content/uploads/2021/04/Image-9-300x60.png 300w" sizes="(max-width: 543px) 100vw, 543px" /></figure>



<p class="wp-block-paragraph">When the VM is up again, you can access the CWP Admin Panel page with this URL :</p>



<pre class="wp-block-code"><code>https://YOUR_VM_PUBLIC_IP_ADDRESS:2031
for example :
https://216.244.94.170:2031</code></pre>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" class="wp-image-1094" src="https://serverstadium.com/wp-content/uploads/2021/04/Image-12.png" alt="How to Install CWP in ServerStadium" width="758" height="352" srcset="https://serverstadium.com/wp-content/uploads/2021/04/Image-12.png 1453w, https://serverstadium.com/wp-content/uploads/2021/04/Image-12-300x140.png 300w, https://serverstadium.com/wp-content/uploads/2021/04/Image-12-1024x476.png 1024w, https://serverstadium.com/wp-content/uploads/2021/04/Image-12-768x357.png 768w" sizes="(max-width: 758px) 100vw, 758px" /></figure>



<p class="wp-block-paragraph">You can log in to CWP Admin Panel using your VM root credential. After login, you can configure CWP to meet your need with hosting activity.</p>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" class="wp-image-1080" src="https://serverstadium.com/wp-content/uploads/2021/04/Image-11-1.png" alt="How to Install CWP in ServerStadium" width="759" height="408" srcset="https://serverstadium.com/wp-content/uploads/2021/04/Image-11-1.png 1924w, https://serverstadium.com/wp-content/uploads/2021/04/Image-11-1-300x161.png 300w, https://serverstadium.com/wp-content/uploads/2021/04/Image-11-1-1024x550.png 1024w, https://serverstadium.com/wp-content/uploads/2021/04/Image-11-1-768x413.png 768w, https://serverstadium.com/wp-content/uploads/2021/04/Image-11-1-1536x825.png 1536w" sizes="(max-width: 759px) 100vw, 759px" /></figure>



<p class="wp-block-paragraph">For additional information, here are the ports that CWP needs to serve its service as a hosting panel application :</p>



<ul class="wp-block-list">
<li><strong>20</strong> &#8211; FTP</li>
<li><strong>21</strong> &#8211; FTP</li>
<li><strong>22</strong> &#8211; SSH</li>
<li><strong>25</strong> &#8211; SMTP/EMAIL</li>
<li><strong>26</strong> &#8211; SMTP</li>
<li><strong>43</strong> &#8211; WHOIS (We don&#8217;t recommend opening this port)</li>
<li><strong>53</strong> &#8211; BIND/DNS</li>
<li><strong>80</strong> &#8211; HTTP / Apache Webserver</li>
<li><strong>110</strong> &#8211; POP3/EMAIL</li>
<li><strong>143</strong> &#8211; IMAP</li>
<li><strong>443</strong> &#8211; HTTPS / Apache Webserver SSL</li>
<li><strong>465</strong> &#8211; SMTP/EMAIL SSL/TLS</li>
<li><strong>873</strong> &#8211; RSYNC (We don&#8217;t recommend opening this port)</li>
<li><strong>993</strong> &#8211; IMAP/EMAIL SSL</li>
<li><strong>995</strong> &#8211; POP3/EMAIL SSL</li>
<li><strong>2030</strong> &#8211; CWP Admin</li>
<li><strong>2031</strong> &#8211; CWP Admin SSL</li>
<li><strong>2082</strong> &#8211; CWP User Panel</li>
<li><strong>2083</strong> &#8211; CWP User Panel SSL</li>
<li><strong>2086</strong> &#8211; CWP Admin (same as 2030)</li>
<li><strong>2087</strong> &#8211; CWP Admin SSL (same as 2031)</li>
<li><strong>2304</strong> &#8211; CWP External API SSL (HTTPS, only for API access like WHMCS)</li>
<li><strong>3306</strong> &#8211; MYSQL (We don&#8217;t recommend opening this port)</li>
</ul>



<p class="wp-block-paragraph">As we can see, many warning messages indicate that CWP Admin Panel is not fully set up, like NAT Settings, SSH Default Port, root E-Mail Notifications, etc.</p>



<p class="wp-block-paragraph">Further configuration is needed to make CWP fully functional to meet user needs as a hosting panel application.</p>



<p class="wp-block-paragraph">Congratulations! You have installed your own CWP in the ServerStadium Virtual Machine.</p>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading">Conclusion</h2>



<p class="wp-block-paragraph">In this guideline, we have installed and set up our own CWP in the ServerStadium Virtual Machine environment for hosting task management using a web panel application to manage tasks needed to serve web hosting service.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/how-to-install-cwp-in-serverstadium/">How to Install CWP in ServerStadium Cloud</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Setup Active Directory Domain Service &#038; DNS with ServerStadium</title>
		<link>https://serverstadium.com/knowledge-base/how-to-setup-active-directory-domain-service-dns-with-serverstadium/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Thu, 07 Jan 2021 07:07:59 +0000</pubDate>
				<guid isPermaLink="false">https://cloudraya.com/knowledge-base/?p=671</guid>

					<description><![CDATA[<p>This article will explain how to setup Active Directory Domain Service (ADDS) &#38;amp; DNS in ServerStadium. To do so, let&#8217;s jump into the tutorials. Overview Windows Active Directory or what you might call Active Directory Domain Services (ADDS) is the main controller for the Windows system network. Accordingly, it will store information about objects on&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/how-to-setup-active-directory-domain-service-dns-with-serverstadium/">How to Setup Active Directory Domain Service &amp; DNS with ServerStadium</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">This article will explain how to setup Active Directory Domain Service (ADDS) &amp;amp; DNS in ServerStadium. To do so, let&#8217;s jump into the tutorials.</p>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading">Overview</h2>



<p class="wp-block-paragraph">Windows Active Directory or what you might call Active Directory Domain Services (ADDS) is the main controller for the Windows system network. Accordingly, it will store information about objects on the network. Meanwhile, Domain Name Server (DNS) is the one part of services that can support Active Directory working well.<br /> <br />Active Directory stores information about user account, password, phone number, policy, computer and so on. It will allow an administrator to manage or custom privilege for each user, group or division and also define privilege between view, update, or even add and delete. In addition, Domain Name Server will help Client Active Directory to translate from domain to IP Address. <br /> <br />Similar to other cloud services, ServerStadium has the ability to build Windows Active Directory on the cloud in just a couple of minutes. Accordingly, we will describe how to prepare and build your Active Directory for your network. </p>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>Preparation</strong></h2>



<p class="wp-block-paragraph">1. Setup a Security Profile for your instance. Firstly, use the table below to referring ports you work with, and make sure to open the port only for specific your ip public range.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1062" height="443" class="wp-image-739" src="https://serverstadium.com/wp-content/uploads/2021/01/port-list.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/01/port-list.png 1062w, https://serverstadium.com/wp-content/uploads/2021/01/port-list-300x125.png 300w, https://serverstadium.com/wp-content/uploads/2021/01/port-list-1024x427.png 1024w, https://serverstadium.com/wp-content/uploads/2021/01/port-list-768x320.png 768w" sizes="(max-width: 1062px) 100vw, 1062px" />
<figcaption><sup><span class="has-inline-color has-vivid-cyan-blue-color">List port ADDS</span></sup></figcaption>
</figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="806" height="371" class="wp-image-741" src="https://serverstadium.com/wp-content/uploads/2021/01/securityprofile2.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/01/securityprofile2.png 806w, https://serverstadium.com/wp-content/uploads/2021/01/securityprofile2-300x138.png 300w, https://serverstadium.com/wp-content/uploads/2021/01/securityprofile2-768x354.png 768w" sizes="(max-width: 806px) 100vw, 806px" />
<figcaption><sup><span class="has-inline-color has-vivid-cyan-blue-color">Security profile</span></sup></figcaption>
</figure>



<p class="wp-block-paragraph"><br />2. Make sure your Windows server is up to date for the security patch by checking Server Manager &gt; Local manager; several reboots might be needed due to applying security patches.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" class="wp-image-700" src="https://serverstadium.com/wp-content/uploads/2021/01/after-update1.png" alt="" width="657" height="230" srcset="https://serverstadium.com/wp-content/uploads/2021/01/after-update1.png 966w, https://serverstadium.com/wp-content/uploads/2021/01/after-update1-300x105.png 300w, https://serverstadium.com/wp-content/uploads/2021/01/after-update1-768x270.png 768w" sizes="(max-width: 657px) 100vw, 657px" />
<figcaption><sup><span class="has-inline-color has-vivid-cyan-blue-color">Windows update status</span></sup></figcaption>
</figure>
</div>


<p class="wp-block-paragraph">3. ServerStadium usually generates a hostname each time it creates<a href="https://serverstadium.com/knowledge-base/deploying-a-virtual-machine-in-serverstadium/"> a new VM</a>. Now, it is your turn to rename the hostname of your server to identify your server. Also, a reboot is required. Follow the picture below to rename your server. </p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" class="wp-image-702" src="https://serverstadium.com/wp-content/uploads/2021/01/change-hostname1-1.png" alt="" width="642" height="484" srcset="https://serverstadium.com/wp-content/uploads/2021/01/change-hostname1-1.png 731w, https://serverstadium.com/wp-content/uploads/2021/01/change-hostname1-1-300x226.png 300w" sizes="(max-width: 642px) 100vw, 642px" />
<figcaption><sup><span class="has-inline-color has-vivid-cyan-blue-color">Rename hostname</span></sup></figcaption>
</figure>
</div>


<h3 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>Installation: Active Directory Domain Services and features</strong></h3>



<p class="wp-block-paragraph">1. Once your server is up, it should be ready to install Active Directory Domain Service, go to Server Manager App and click Dashboard &gt; Add roles and features.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" class="wp-image-703" src="https://serverstadium.com/wp-content/uploads/2021/01/server-manager1.png" alt="" width="663" height="348" />
<figcaption><sup><span class="has-inline-color has-vivid-cyan-blue-color">Add roles and features</span></sup></figcaption>
</figure>
</div>


<p class="wp-block-paragraph">2. After you click “Add roles and features”, there will be an open dialog. You can skip the notification page “Before you begin” by pressing the next button. On installation type, choose “Role-based or features-based installation” then press next.   </p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="786" height="559" class="wp-image-709" src="https://serverstadium.com/wp-content/uploads/2021/01/before-you-begin1.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/01/before-you-begin1.png 786w, https://serverstadium.com/wp-content/uploads/2021/01/before-you-begin1-300x213.png 300w, https://serverstadium.com/wp-content/uploads/2021/01/before-you-begin1-768x546.png 768w" sizes="(max-width: 786px) 100vw, 786px" />
<figcaption><sup><span class="has-inline-color has-vivid-cyan-blue-color">Information before you begin</span></sup></figcaption>
</figure>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="787" height="560" class="wp-image-710" src="https://serverstadium.com/wp-content/uploads/2021/01/role-based1-1.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/01/role-based1-1.png 787w, https://serverstadium.com/wp-content/uploads/2021/01/role-based1-1-300x213.png 300w, https://serverstadium.com/wp-content/uploads/2021/01/role-based1-1-768x546.png 768w" sizes="(max-width: 787px) 100vw, 787px" />
<figcaption><sup><span class="has-inline-color has-vivid-cyan-blue-color">Select installation type</span></sup></figcaption>
</figure>
</div>


<p class="wp-block-paragraph"> <br />3. On the Select destination server page, select “Select a server from the server pool” then select destination server then press Next.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="786" height="561" class="wp-image-712" src="https://serverstadium.com/wp-content/uploads/2021/01/server-selection1.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/01/server-selection1.png 786w, https://serverstadium.com/wp-content/uploads/2021/01/server-selection1-300x214.png 300w, https://serverstadium.com/wp-content/uploads/2021/01/server-selection1-768x548.png 768w" sizes="(max-width: 786px) 100vw, 786px" />
<figcaption><sup><span class="has-inline-color has-vivid-cyan-blue-color">Select destination server</span></sup></figcaption>
</figure>
</div>


<p class="wp-block-paragraph">4. Then, on the Server Roles page, choose Active Directory Domain Service and DNS. After that, there will be a notification that you have to set static IP for your server. This is common since your server stands behind ServerStadium Firewall and can&#8217;t detect your static ip public, just keep going by clicking the continue button. Then, follow instructions below. </p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="879" height="560" class="wp-image-714" src="https://serverstadium.com/wp-content/uploads/2021/01/add-roles1.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/01/add-roles1.png 879w, https://serverstadium.com/wp-content/uploads/2021/01/add-roles1-300x191.png 300w, https://serverstadium.com/wp-content/uploads/2021/01/add-roles1-768x489.png 768w" sizes="(max-width: 879px) 100vw, 879px" />
<figcaption><mark class="has-inline-color has-vivid-cyan-blue-color" style="background-color: rgba(0, 0, 0, 0);"><sup>Select ADDS roles</sup></mark></figcaption>
</figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="951" height="560" class="wp-image-831" src="https://serverstadium.com/wp-content/uploads/2021/01/dns-role.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/01/dns-role.png 951w, https://serverstadium.com/wp-content/uploads/2021/01/dns-role-300x177.png 300w, https://serverstadium.com/wp-content/uploads/2021/01/dns-role-768x452.png 768w" sizes="(max-width: 951px) 100vw, 951px" />
<figcaption><sup><span class="has-inline-color has-vivid-cyan-blue-color">Select DNS roles</span></sup></figcaption>
</figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="819" height="561" class="wp-image-832" src="https://serverstadium.com/wp-content/uploads/2021/01/validation-dns.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/01/validation-dns.png 819w, https://serverstadium.com/wp-content/uploads/2021/01/validation-dns-300x205.png 300w, https://serverstadium.com/wp-content/uploads/2021/01/validation-dns-768x526.png 768w" sizes="(max-width: 819px) 100vw, 819px" />
<figcaption><mark class="has-inline-color has-vivid-cyan-blue-color" style="background-color: rgba(0, 0, 0, 0);"><sup>Validation DNS</sup></mark></figcaption>
</figure>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="819" height="561" class="wp-image-833" src="https://serverstadium.com/wp-content/uploads/2021/01/features1-1.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/01/features1-1.png 819w, https://serverstadium.com/wp-content/uploads/2021/01/features1-1-300x205.png 300w, https://serverstadium.com/wp-content/uploads/2021/01/features1-1-768x526.png 768w" sizes="(max-width: 819px) 100vw, 819px" />
<figcaption><sup><span class="has-inline-color has-vivid-cyan-blue-color">Select features</span></sup></figcaption>
</figure>
</div>


<p class="wp-block-paragraph"><br />5. After that, the next window will give you a brief description about ADDS &amp; DNS services. Click next to proceed and click install to start the installation; once the installation completes, The server is ready to promote as a domain controller.  </p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="819" height="560" class="wp-image-834" src="https://serverstadium.com/wp-content/uploads/2021/01/adds1-1.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/01/adds1-1.png 819w, https://serverstadium.com/wp-content/uploads/2021/01/adds1-1-300x205.png 300w, https://serverstadium.com/wp-content/uploads/2021/01/adds1-1-768x525.png 768w" sizes="(max-width: 819px) 100vw, 819px" />
<figcaption><sup><span class="has-inline-color has-vivid-cyan-blue-color">Active Directory Domain Services</span></sup></figcaption>
</figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="819" height="560" class="wp-image-835" src="https://serverstadium.com/wp-content/uploads/2021/01/dns1.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/01/dns1.png 819w, https://serverstadium.com/wp-content/uploads/2021/01/dns1-300x205.png 300w, https://serverstadium.com/wp-content/uploads/2021/01/dns1-768x525.png 768w" sizes="(max-width: 819px) 100vw, 819px" />
<figcaption><mark class="has-inline-color has-vivid-cyan-blue-color" style="background-color: rgba(0, 0, 0, 0);"><sup>DNS roles</sup></mark></figcaption>
</figure>


<div class="wp-block-image">
<figure class="alignleft size-large"><img loading="lazy" decoding="async" width="819" height="562" class="wp-image-836" src="https://serverstadium.com/wp-content/uploads/2021/01/Confirmation1-1.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/01/Confirmation1-1.png 819w, https://serverstadium.com/wp-content/uploads/2021/01/Confirmation1-1-300x206.png 300w, https://serverstadium.com/wp-content/uploads/2021/01/Confirmation1-1-768x527.png 768w" sizes="(max-width: 819px) 100vw, 819px" />
<figcaption><sup><span class="has-inline-color has-vivid-cyan-blue-color">Confirmation installation selection</span></sup></figcaption>
</figure>
</div>


<p class="wp-block-paragraph">&nbsp;</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="819" height="560" class="wp-image-838" src="https://serverstadium.com/wp-content/uploads/2021/01/finish-install.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/01/finish-install.png 819w, https://serverstadium.com/wp-content/uploads/2021/01/finish-install-300x205.png 300w, https://serverstadium.com/wp-content/uploads/2021/01/finish-install-768x525.png 768w" sizes="(max-width: 819px) 100vw, 819px" />
<figcaption><mark class="has-inline-color has-vivid-cyan-blue-color" style="background-color: rgba(0, 0, 0, 0);"><sup>Finish installation</sup></mark></figcaption>
</figure>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>Power Shell</strong> </h2>



<p class="wp-block-paragraph">If you prefer working with Power Shell, you could use the command below to install Active Directory Service in one line via Power Shell command line</p>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<p class="wp-block-paragraph"> <code>Install-WindowsFeature -name AD-Domain-Services DNS -IncludeManagementTools </code></p>
</div></div>



<h3 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>Configuration</strong></h3>



<p class="wp-block-paragraph">1. After the installation process, we will start to promote the server as Active Directory, go to your Server manager, and you will see an exclamation mark on the top click on it, then click “Promote this server to a domain controller” There will be open dialog regarding deployment configuration your Active Directory </p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="893" height="473" class="wp-image-726" src="https://serverstadium.com/wp-content/uploads/2021/01/post-deploy.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/01/post-deploy.png 893w, https://serverstadium.com/wp-content/uploads/2021/01/post-deploy-300x159.png 300w, https://serverstadium.com/wp-content/uploads/2021/01/post-deploy-768x407.png 768w" sizes="(max-width: 893px) 100vw, 893px" />
<figcaption><sup><span class="has-inline-color has-vivid-cyan-blue-color">Promote server as domain controller</span></sup></figcaption>
</figure>
</div>


<p class="wp-block-paragraph">2 . Now you will see 3 options which type of installation active directory are your gone chose, currently we will use the last option, “Add a new forest” then type in your domain name in the separate field, and click next once you finish type in your domain name.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="761" height="561" class="wp-image-727" src="https://serverstadium.com/wp-content/uploads/2021/01/add-new-forest.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/01/add-new-forest.png 761w, https://serverstadium.com/wp-content/uploads/2021/01/add-new-forest-300x221.png 300w" sizes="(max-width: 761px) 100vw, 761px" />
<figcaption><sup><span class="has-inline-color has-vivid-cyan-blue-color">Deployment Configuration</span></sup></figcaption>
</figure>



<p class="wp-block-paragraph">3. Now you will see “Domain Controller Option” in this page there is several option we will leave it as is. Don’t forget to type in DSRM password, then press Next. </p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="764" height="559" class="wp-image-728" src="https://serverstadium.com/wp-content/uploads/2021/01/domain-controller-option.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/01/domain-controller-option.png 764w, https://serverstadium.com/wp-content/uploads/2021/01/domain-controller-option-300x220.png 300w" sizes="(max-width: 764px) 100vw, 764px" />
<figcaption><sup><span class="has-inline-color has-vivid-cyan-blue-color">Domain Controller Options</span></sup></figcaption>
</figure>
</div>


<p class="wp-block-paragraph">4. Uncheck Create DNS delegation in “DNS Option” page, then click Next </p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="761" height="558" class="wp-image-677" src="https://serverstadium.com/wp-content/uploads/2021/01/image.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/01/image.png 761w, https://serverstadium.com/wp-content/uploads/2021/01/image-300x220.png 300w" sizes="(max-width: 761px) 100vw, 761px" />
<figcaption><sup><span class="has-inline-color has-vivid-cyan-blue-color">DNS Options</span></sup></figcaption>
</figure>
</div>


<p class="wp-block-paragraph">5. In “Additional Option” you can change your NetBIOS as your wish, then click Next.  </p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="762" height="562" class="wp-image-673" src="https://serverstadium.com/wp-content/uploads/2021/01/image-1.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/01/image-1.png 762w, https://serverstadium.com/wp-content/uploads/2021/01/image-1-300x221.png 300w" sizes="(max-width: 762px) 100vw, 762px" />
<figcaption><sup><span class="has-inline-color has-vivid-cyan-blue-color">Additional Options</span></sup></figcaption>
</figure>



<p class="wp-block-paragraph">6. In “Paths” Page there will be several information which define NTDS, SYSVOL and LOG are located; we will keep it as default then press Next. </p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="761" height="561" class="wp-image-676" src="https://serverstadium.com/wp-content/uploads/2021/01/image-5.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/01/image-5.png 761w, https://serverstadium.com/wp-content/uploads/2021/01/image-5-300x221.png 300w" sizes="(max-width: 761px) 100vw, 761px" />
<figcaption><sup><span class="has-inline-color has-vivid-cyan-blue-color">Paths</span></sup></figcaption>
</figure>



<p class="wp-block-paragraph">7. Next page will give the option to review the configuration changes. If everything is okay you can click next to proceed or otherwise can go back and change the settings. </p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="760" height="560" class="wp-image-674" src="https://serverstadium.com/wp-content/uploads/2021/01/image-3.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/01/image-3.png 760w, https://serverstadium.com/wp-content/uploads/2021/01/image-3-300x221.png 300w" sizes="(max-width: 760px) 100vw, 760px" />
<figcaption><sup><span class="has-inline-color has-vivid-cyan-blue-color">Review Options</span></sup></figcaption>
</figure>



<p class="wp-block-paragraph">8. On this page installer will do prerequisites check before running the installation; after all prerequisites checks are passed, you can click install to begin the installation. </p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="761" height="560" class="wp-image-729" src="https://serverstadium.com/wp-content/uploads/2021/01/prequisites.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/01/prequisites.png 761w, https://serverstadium.com/wp-content/uploads/2021/01/prequisites-300x221.png 300w" sizes="(max-width: 761px) 100vw, 761px" />
<figcaption><sup><span class="has-inline-color has-vivid-cyan-blue-color">Prerequisites Check</span></sup></figcaption>
</figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="761" height="560" class="wp-image-730" src="https://serverstadium.com/wp-content/uploads/2021/01/install.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2021/01/install.png 761w, https://serverstadium.com/wp-content/uploads/2021/01/install-300x221.png 300w" sizes="(max-width: 761px) 100vw, 761px" />
<figcaption><sup><span class="has-inline-color has-vivid-cyan-blue-color">Installation</span></sup></figcaption>
</figure>



<h3 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>Power Shell</strong></h3>



<p class="wp-block-paragraph">If you prefer to work with Power Shell, you could use the command below to install Active Directory Service in one line via Power Shell command line </p>



<p class="wp-block-paragraph"><code>Import-Module ADDSDeployment  Install-ADDSForest -CreateDnsDelegation:$false -DatabasePath "C:\Windows\NTDS" -DomainMode "WinThreshold" -DomainName "ompong.com" -DomainNetbiosName "OMPONG" -ForestMode "WinThreshold" -InstallDns:$true -LogPath "C:\Windows\NTDS" -NoRebootOnCompletion:$false -SysvolPath "C:\Windows\SYSVOL" -Force:$true</code></p>
<p>The post <a href="https://serverstadium.com/knowledge-base/how-to-setup-active-directory-domain-service-dns-with-serverstadium/">How to Setup Active Directory Domain Service &amp; DNS with ServerStadium</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
