<?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>ServerStadium Cloud Archives - ServerStadium</title>
	<atom:link href="https://serverstadium.com/knowledge-base/tag/serverstadium-cloud/feed/" rel="self" type="application/rss+xml" />
	<link>https://serverstadium.com/knowledge-base/tag/serverstadium-cloud/</link>
	<description>Public Cloud Solution by ServerStadium</description>
	<lastBuildDate>Thu, 20 Apr 2023 00:10:40 +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>ServerStadium Cloud Archives - ServerStadium</title>
	<link>https://serverstadium.com/knowledge-base/tag/serverstadium-cloud/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<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 fetchpriority="high" 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 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 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>Establishing a VPN in ServerStadium Cloud</title>
		<link>https://serverstadium.com/knowledge-base/establishing-a-vpn-in-serverstadium/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Tue, 15 Sep 2020 07:15:41 +0000</pubDate>
				<guid isPermaLink="false">https://cloudraya.com/knowledge-base/?p=253</guid>

					<description><![CDATA[<p>Imagine you are in a public area, and you need to access your server in ServerStadium Cloud. You want to secure the connection between you and the server for safety and privacy. You can use a VPN to access your server in ServerStadium Cloud as a solution. Establishing a VPN in ServerStadium Cloud is easy&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/establishing-a-vpn-in-serverstadium/">Establishing a VPN in ServerStadium Cloud</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Imagine you are in a public area, and you need to access your server in ServerStadium Cloud. You want to secure the connection between you and the server for safety and privacy. You can use a VPN to access your server in ServerStadium Cloud as a solution.</p>



<p class="wp-block-paragraph"><br />Establishing a VPN in ServerStadium Cloud is easy because you only need three steps to create a VPN in ServerStadium Cloud<br />There are many benefits when you use Cloud VPN in ServerStadium, such as:</p>



<ul class="wp-block-list">
<li>Your traffic will be encrypted when using Public Wifi</li>
<li>No needed IT skills when you create a VPN in ServerStadium because we will do it for you.</li>
<li>Also, No software installs and maintenance. You just need to enable the VPN feature and create a VPN user</li>
</ul>



<p class="wp-block-paragraph">Below are the three steps to establish a VPN in ServerStadium Cloud:</p>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>Step 1:</strong></h2>



<p class="wp-block-paragraph">You can login into the control panel at <a href="https://cp.serverstadium.com">https://cp.serverstadium.com</a>. On the left of the dashboard, click “Network”  then Choose “VPN”</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="136" height="334" class="wp-image-254" src="https://serverstadium.com/wp-content/uploads/2020/09/image-5.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2020/09/image-5.png 136w, https://serverstadium.com/wp-content/uploads/2020/09/image-5-122x300.png 122w" sizes="(max-width: 136px) 100vw, 136px" /></figure>



<p class="wp-block-paragraph">After you choose “<strong>VPN</strong>”, the main page will be displayed a VPN configuration:</p>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>Step 2:</strong></h2>



<p class="wp-block-paragraph">Your VPN Location is located at Jakarta. Click the “<strong>Offline</strong>” red button to be “<strong>Online</strong>” green button.<br />After the VPN is “Online”, it will be displayed the <strong>VPN Public IP</strong> and <strong>Pres share key</strong>.<br />Please keep it on your note because you  will use it when you want to connect to VPN</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="427" height="379" class="wp-image-260" src="https://serverstadium.com/wp-content/uploads/2020/09/image-10.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2020/09/image-10.png 427w, https://serverstadium.com/wp-content/uploads/2020/09/image-10-300x266.png 300w" sizes="(max-width: 427px) 100vw, 427px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="479" height="395" class="wp-image-261" src="https://serverstadium.com/wp-content/uploads/2020/09/image-11.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2020/09/image-11.png 479w, https://serverstadium.com/wp-content/uploads/2020/09/image-11-300x247.png 300w" sizes="(max-width: 479px) 100vw, 479px" /></figure>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>Step 3:</strong></h2>



<p class="wp-block-paragraph">Now your VPN is Ready; the last step is to create a VPN user.<br />You can click “<strong>Add VPN User</strong>” , fill your Username and Password of your VPN User</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="544" height="113" class="wp-image-263" src="https://serverstadium.com/wp-content/uploads/2020/09/image-13.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2020/09/image-13.png 544w, https://serverstadium.com/wp-content/uploads/2020/09/image-13-300x62.png 300w" sizes="(max-width: 544px) 100vw, 544px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="287" height="243" class="wp-image-264" src="https://serverstadium.com/wp-content/uploads/2020/09/image-14.png" alt="" /></figure>



<p class="wp-block-paragraph">Click &#8220;<strong>Add User</strong>&#8221; then your VPN user will be listed as follow</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="558" height="215" class="wp-image-265" src="https://serverstadium.com/wp-content/uploads/2020/09/image-15.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2020/09/image-15.png 558w, https://serverstadium.com/wp-content/uploads/2020/09/image-15-300x116.png 300w" sizes="(max-width: 558px) 100vw, 558px" /></figure>



<p class="wp-block-paragraph">It’s easy, right? Now that your VPN is ready, we will show you how to connect the VPN using Windows 10.</p>



<p class="wp-block-paragraph">&nbsp;</p>



<p class="wp-block-paragraph">&nbsp;</p>



<p class="wp-block-paragraph">&nbsp;</p>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>Connect to ServerStadium Cloud VPN from Windows 10</strong></h2>



<p class="wp-block-paragraph">Please make sure you have saved VPN Public IP and Pre-shared Key.<br />Because we need it when creating a VPN Profile on your personal computer</p>



<p class="wp-block-paragraph">Below is steps that you can follow:</p>



<h3 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>Step 1:</strong></h3>



<p class="wp-block-paragraph">Select &#8220;<strong>Start</strong>&#8221; button, then select “<strong>Setting</strong>”, and choose “<strong>VPN</strong>” because we want to create a VPN profile as “<strong>ServerStadium VPN</strong>” on your PC.<br />After that, “<strong>Add a VPN connection</strong>” and fill in the required fields as follow :</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="399" height="318" class="wp-image-267" src="https://serverstadium.com/wp-content/uploads/2020/09/image-16.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2020/09/image-16.png 399w, https://serverstadium.com/wp-content/uploads/2020/09/image-16-300x239.png 300w" sizes="(max-width: 399px) 100vw, 399px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="405" height="323" class="wp-image-268" src="https://serverstadium.com/wp-content/uploads/2020/09/image-17.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2020/09/image-17.png 405w, https://serverstadium.com/wp-content/uploads/2020/09/image-17-300x239.png 300w" sizes="(max-width: 405px) 100vw, 405px" /></figure>



<p class="wp-block-paragraph">Click <strong>Save</strong><br />After the VPN profile is created, you will get an error as follows when trying to connect to ServerStadium VPN.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="294" height="238" class="wp-image-269" src="https://serverstadium.com/wp-content/uploads/2020/09/image-18.png" alt="" /></figure>



<p class="wp-block-paragraph">To resolve this error message, you need to enable MS-Chap v2 on your VPN Profile. We will resolve it in Step 2.</p>



<h3 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>Step 2:</strong></h3>



<p class="wp-block-paragraph">To enable MS-Chap v2, Select &#8220;<strong>Control Panel&#8221; </strong>then click &#8220;<strong>Network and Sharing Center</strong>&#8220;. Click &#8220;<strong>Change Adapter Settings</strong>&#8220;</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="201" height="212" class="wp-image-271" src="https://serverstadium.com/wp-content/uploads/2020/09/image-20.png" alt="" /></figure>



<p class="wp-block-paragraph">Right click the VPN Profile, then choose Properties</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="409" height="251" class="wp-image-273" src="https://serverstadium.com/wp-content/uploads/2020/09/image-22.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2020/09/image-22.png 409w, https://serverstadium.com/wp-content/uploads/2020/09/image-22-300x184.png 300w" sizes="(max-width: 409px) 100vw, 409px" /></figure>



<p class="wp-block-paragraph">ServerStadium VPN properties will be displayed. Click “<strong>Security</strong>” tab to enable MS-CHAP v2<br />Tick “<strong>Allow these protocols</strong>” and “<strong>Microsoft Champ version 2</strong>” then Click OK</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="279" height="366" class="wp-image-274" src="https://serverstadium.com/wp-content/uploads/2020/09/image-23.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2020/09/image-23.png 279w, https://serverstadium.com/wp-content/uploads/2020/09/image-23-229x300.png 229w" sizes="(max-width: 279px) 100vw, 279px" /></figure>



<h3 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>Step 3:</strong></h3>



<p class="wp-block-paragraph">After you enable MS-Chap V2, you are ready to connect the VPN again.<br />Click <strong>&#8220;Setting&#8221; </strong>– <strong>VPN </strong>then Click “<strong>Connect</strong>” on ServerStadium VPN.<br />Please wait for a while until the VPN Profile “<strong>Connected</strong>”</p>


<div class="wp-block-image">
<figure class="alignleft size-large is-resized"><img loading="lazy" decoding="async" class="wp-image-277" src="https://serverstadium.com/wp-content/uploads/2020/09/image-26.png" alt="" width="444" height="183" srcset="https://serverstadium.com/wp-content/uploads/2020/09/image-26.png 456w, https://serverstadium.com/wp-content/uploads/2020/09/image-26-300x124.png 300w" sizes="(max-width: 444px) 100vw, 444px" /></figure>
</div>


<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="477" height="235" class="wp-image-279" src="https://serverstadium.com/wp-content/uploads/2020/09/image-28.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2020/09/image-28.png 477w, https://serverstadium.com/wp-content/uploads/2020/09/image-28-300x148.png 300w" sizes="(max-width: 477px) 100vw, 477px" /></figure>



<p class="wp-block-paragraph">Viola, now you are connected to VPN in ServerStadium Cloud.<br />You can access your VM in ServerStadium using their Internal IP Address.<br />If you have an issue when connecting to the VPN, please submit your issue to our support. We will be happy to assist you.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/establishing-a-vpn-in-serverstadium/">Establishing a VPN in ServerStadium Cloud</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Generating an API key</title>
		<link>https://serverstadium.com/knowledge-base/generating-an-api-key/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Tue, 25 Aug 2020 13:32:37 +0000</pubDate>
				<guid isPermaLink="false">https://cloudraya.com/knowledge-base/?p=141</guid>

					<description><![CDATA[<p>One of the most powerful features in ServerStadium Cloud is API which can automate your deployment in the cloud. However, before using the API, you need to enable and generate an API key for your application or platform. Please follow the steps below: Once you log into the control panel https://cp.serverstadium.com, on the left of&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/generating-an-api-key/">Generating an API key</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">One of the most powerful features in ServerStadium Cloud is API which can automate your deployment in the cloud. However, before using the API, you need to enable and generate an API key for your application or platform. Please follow the steps below:</p>



<p class="wp-block-paragraph">Once you log into the control panel <a href="https://cp.serverstadium.com" target="_blank" rel="noreferrer noopener">https://cp.serverstadium.com</a>, on the left of the dashboard there is a menu, you can click on &#8220;Settings&#8221; and it will redirect you to the Settings Page.</p>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading">Step 1</h2>



<p class="wp-block-paragraph">Please click on the blue button &#8220;Add API Gateway&#8221;</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="829" height="478" class="wp-image-142" src="https://serverstadium.com/wp-content/uploads/2020/08/image-7.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2020/08/image-7.png 829w, https://serverstadium.com/wp-content/uploads/2020/08/image-7-300x173.png 300w, https://serverstadium.com/wp-content/uploads/2020/08/image-7-768x443.png 768w" sizes="(max-width: 829px) 100vw, 829px" /></figure>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading">Step 2</h2>



<p class="wp-block-paragraph">You can give it a name for the API, (alphanumeric and dash only)</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="511" height="371" class="wp-image-143" src="https://serverstadium.com/wp-content/uploads/2020/08/image-8.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2020/08/image-8.png 511w, https://serverstadium.com/wp-content/uploads/2020/08/image-8-300x218.png 300w" sizes="(max-width: 511px) 100vw, 511px" /></figure>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading">Step 3</h2>



<p class="wp-block-paragraph">You may whitelist the API to allow only certain IP addresses. Then please go ahead and click the blue button &#8220;Add API Gateway&#8221;</p>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading">Step 4</h2>



<p class="wp-block-paragraph">You will be redirected back to the Settings Page, and this time, the API Gateway Management will list the new API key that you just added. Click on the <img loading="lazy" decoding="async" width="33" height="32" class="wp-image-146" style="width: 33px;" src="https://serverstadium.com/wp-content/uploads/2020/08/plus-sign.png" alt="" /> to view the &#8220;Secret Key&#8221; and additional detailed information.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="816" height="290" class="wp-image-144" src="https://serverstadium.com/wp-content/uploads/2020/08/image-9.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2020/08/image-9.png 816w, https://serverstadium.com/wp-content/uploads/2020/08/image-9-300x107.png 300w, https://serverstadium.com/wp-content/uploads/2020/08/image-9-768x273.png 768w" sizes="(max-width: 816px) 100vw, 816px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="543" height="261" class="wp-image-147" src="https://serverstadium.com/wp-content/uploads/2020/08/image-11.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2020/08/image-11.png 543w, https://serverstadium.com/wp-content/uploads/2020/08/image-11-300x144.png 300w" sizes="(max-width: 543px) 100vw, 543px" /></figure>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading">Step 5</h2>



<p class="wp-block-paragraph">Now you have all the necessary information to start using the API on ServerStadium Cloud.</p>



<p class="wp-block-paragraph">You may continue on this <a href="https://serverstadium.com/knowledge-base/generate-an-api-token/" target="_blank" rel="noreferrer noopener">Generate a Token</a> guideline on how to generate tokens and access the API in ServerStadium Cloud.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/generating-an-api-key/">Generating an API key</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
