<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Stratus - General Guides on Webscale Product Documentation</title><link>https://docs.webscale.com/docs/reference/stratus/guides/general/</link><description>Recent content in Stratus - General Guides on Webscale Product Documentation</description><generator>Hugo</generator><language>en</language><atom:link href="https://docs.webscale.com/docs/reference/stratus/guides/general/index.xml" rel="self" type="application/rss+xml"/><item><title>Stratus Guides - Backup Strategies</title><link>https://docs.webscale.com/docs/reference/stratus/guides/general/backup-strategies/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.webscale.com/docs/reference/stratus/guides/general/backup-strategies/</guid><description>&lt;h2 id="backup-to-amazon-s3-bucket"&gt;Backup to Amazon S3 Bucket&lt;/h2&gt;
&lt;p&gt;The AWS CLI comes preinstalled on Stratus. &lt;em&gt;Run&lt;/em&gt; &lt;code&gt;aws configure&lt;/code&gt; and follow the prompts entering the appropriate region and &lt;a href="https://docs.aws.amazon.com/powershell/latest/userguide/pstools-appendix-sign-up.html" target="_blank"&gt;access key&lt;i class="ps-1 fa fa-external-link"&gt;&lt;/i&gt;&lt;/a&gt;
 for your AWS account.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;$ aws configure
AWS Access Key ID [None]: ABCDEFGHIJKLMNOPQRSTUVWXYZ
AWS Secret Access Key [None]: FaK3S3Cr3tAcc3SSK3yF0rFun
Default region name [None]: us-east-1
Default output format [None]: text
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;em&gt;Run&lt;/em&gt; &lt;code&gt;aws s3 ls&lt;/code&gt; to show your existing buckets and manage other AWS resources.&lt;/p&gt;</description></item><item><title>Stratus Guides - Debugging Cron Errors</title><link>https://docs.webscale.com/docs/reference/stratus/guides/general/debugging-cron-tasks/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.webscale.com/docs/reference/stratus/guides/general/debugging-cron-tasks/</guid><description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;: All Magento 2 stores hosted on Webscale STRATUS are required to have installed the [MageMojo Cron extension](/docs/reference/stratus/guides/magento-2/magemojo-cron/ &amp;ldquo;MageMojo Magento 2 Cron extension information&amp;rdquo;/). This extension helps prevent many of the cron issues inherent with Magento 2.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id="debugging-magento-cron-tasks"&gt;Debugging Magento Cron Tasks&lt;/h2&gt;
&lt;p&gt;Magento has its own default cron that runs and executes internal jobs and schedules. The best way to confirm these are running is using the [n98-magerun(2) utility][1].&lt;/p&gt;
&lt;p&gt;To confirm any jobs have ran recently, do the following:&lt;/p&gt;</description></item><item><title>Stratus Guides - Other CDNs</title><link>https://docs.webscale.com/docs/reference/stratus/guides/general/other-cdns/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.webscale.com/docs/reference/stratus/guides/general/other-cdns/</guid><description>&lt;p&gt;When using other proxy services you introduce routing complexities. A request to an environment will first route through your proxy provider’s edge location, then to the CloudFront edge location and on to the AWS home region.&lt;/p&gt;
&lt;p&gt;In these cases, STRATUS has no control of the full request flow. Support becomes more difficult due to a lost of visibility and diagnostics for systems outside of Webscale STRATUS.&lt;/p&gt;
&lt;p&gt;In some cases, these services develop technical issues of their own, from routing/request failures or customer misconfigurations. Adding the additional proxy increases latency on every request to your environment.&lt;/p&gt;</description></item><item><title>Stratus Guides - Rotating Magento Logs</title><link>https://docs.webscale.com/docs/reference/stratus/guides/general/logrotate-magento-logs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.webscale.com/docs/reference/stratus/guides/general/logrotate-magento-logs/</guid><description>&lt;p&gt;To setup &lt;em&gt;Logrotate&lt;/em&gt; to automatically rotate Magento logs:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;Create&lt;/em&gt; a directory outside of the webroot to hold the config files:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; mkdir /srv/etc/
 mkdir /srv/etc/logrotate
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;Create&lt;/em&gt; a &lt;code&gt;logrotate.conf&lt;/code&gt; file with the following content:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; /srv/public_html/var/log/*.log {
 su magemojo magemojo
 daily
 missingok
 rotate 30
 compress
 delaycompress
 notifempty
 olddir /srv/scaled/var/log/old/
 }
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;su magemojo magemojo&lt;/strong&gt; — Ensures that permissions stay correct&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;daily&lt;/strong&gt; – Run once a day at time set by cron job&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;missingok&lt;/strong&gt; — Don&amp;rsquo;t panic if empty&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;rotate 30&lt;/strong&gt; — Retain for 30 days&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;compress&lt;/strong&gt; — Compress 2nd most recent file&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;delaycompress&lt;/strong&gt; — Do not compress newest rotated log&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;notifempty&lt;/strong&gt; — Do not rotate empty files&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;Add&lt;/em&gt; a [cron job](/docs/reference/stratus/control-panels/cron-panel/schedule/ &amp;ldquo;Cron Schedule Control Panel&amp;rdquo;/) to run once a day at the correct time:&lt;/p&gt;</description></item><item><title>Stratus Guides - Using Symlinks</title><link>https://docs.webscale.com/docs/reference/stratus/guides/general/using-symlinks/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.webscale.com/docs/reference/stratus/guides/general/using-symlinks/</guid><description>&lt;p&gt;Good Example:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;env.php -&amp;gt; /srv/shared/app/etc/env.php
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Bad Example:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;env.php -&amp;gt; ../../../../env.php
&lt;/code&gt;&lt;/pre&gt;</description></item><item><title>Stratus Guides - Blackfire.io</title><link>https://docs.webscale.com/docs/reference/stratus/guides/general/using-blackfire/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.webscale.com/docs/reference/stratus/guides/general/using-blackfire/</guid><description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; XDebug and Blackfire can never be used together.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ol&gt;
&lt;li&gt;&lt;em&gt;Log into&lt;/em&gt; a &lt;a href="https://blackfire.io/" title="Blackfire website" target="_blank"&gt;Blackfire.io&lt;i class="ps-1 fa fa-external-link"&gt;&lt;/i&gt;&lt;/a&gt;
 account.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Set up&lt;/em&gt; an environment or profile to obtain a &lt;em&gt;Server ID&lt;/em&gt; and &lt;em&gt;Server Token&lt;/em&gt;.
To get started, first make sure you have an account with Blackfire.io. Set up an environment or profile so that you have a Server ID and Server Token.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Go to&lt;/em&gt; the &lt;strong&gt;[PHP &amp;gt; Blackfire][2]&lt;/strong&gt; Admin panel.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Enter&lt;/em&gt; the [information as indicated](/docs/reference/stratus/control-panels/php-panel/blackfire/ &amp;ldquo;Blackfire Control Panel&amp;rdquo;/).&lt;/li&gt;
&lt;/ol&gt;

&lt;link rel="stylesheet" href="https://docs.webscale.com/css/hugo-easy-gallery.css" /&gt;&lt;div class="box" &gt;
 &lt;figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject"&gt;
 &lt;div class="img"&gt;
 &lt;img itemprop="thumbnail" src="https://docs.webscale.com/images/stratus/img/articles/blackfire_config.png" alt="config-75"/&gt;
 &lt;/div&gt;
 &lt;a href="https://docs.webscale.com/images/stratus/img/articles/blackfire_config.png" itemprop="contentUrl"&gt;&lt;/a&gt;
 &lt;/figure&gt;
&lt;/div&gt;

&lt;p&gt;Using the &lt;a href="https://blackfire.io/docs/integrations/browsers/index" title="Blackfire browser extensions" target="_blank"&gt;Chrome or Firefox&lt;i class="ps-1 fa fa-external-link"&gt;&lt;/i&gt;&lt;/a&gt;
 browser extensions, start profiling the Webscale STRATUS site direct from a browser.&lt;/p&gt;</description></item><item><title>Stratus Guides - Using Xdebug</title><link>https://docs.webscale.com/docs/reference/stratus/guides/general/using-xdebug/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.webscale.com/docs/reference/stratus/guides/general/using-xdebug/</guid><description>&lt;blockquote&gt;
&lt;p&gt;While a powerful tool, Xdebug can drastically slow down a store if used in production, even when not actively tracing or profiling anything. It is highly advised to &lt;strong&gt;not&lt;/strong&gt; use Xdebug on a Production environment unless absolutely necessary.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Xdebug has a variety of settings. By default Xdebug is configured in Webscale STRATUS to cover most situations. There are three ways to use Xdebug:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Profiling&lt;/strong&gt; — outputs cachegrind files on the Webscale STRATUS file system to evaluate request performance&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Tracing&lt;/strong&gt; — outputs trace files on the file system with full output of all function calls with function processing times&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Debug&lt;/strong&gt; — connects a local IDE via SSH tunnel on Webscale STRATUS to step through code when called via browser request&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="setup"&gt;Setup&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;Install&lt;/em&gt; the &lt;a href="https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc?hl=en" title="Chrome XDebug extension" target="_blank"&gt;Chrome extension&lt;i class="ps-1 fa fa-external-link"&gt;&lt;/i&gt;&lt;/a&gt;
 to trigger the profiling and tracing in Xdebug.&lt;/p&gt;</description></item><item><title>Stratus Guides - Configuring RabbitMQ</title><link>https://docs.webscale.com/docs/reference/stratus/guides/general/configuring-rabbitmq/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.webscale.com/docs/reference/stratus/guides/general/configuring-rabbitmq/</guid><description>&lt;h2 id="consumers"&gt;Consumers&lt;/h2&gt;
&lt;p&gt;To see a list of available consumers that you can set to run, use:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;php bin/magento queue:consumers:list
&lt;/code&gt;&lt;/pre&gt;
&lt;blockquote&gt;
&lt;p&gt;Please note the following:&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;In a &lt;a href="https://docs.webscale.com/docs/reference/stratus/about-webscale-stratus/environment-types/#production-environments/"&gt;production environment&lt;/a&gt;
 the host will be &lt;em&gt;rabbitmq&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;In a &lt;a href="https://docs.webscale.com/docs/reference/stratus/about-webscale-stratus/environment-types/#development-environments/"&gt;development environment&lt;/a&gt;
 the host will be &lt;em&gt;0.0.0.0&lt;/em&gt;, unless Autoscaling is enabled then the host will remain &lt;em&gt;rabbitmq&lt;/em&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Below is an example configuration of the &lt;code&gt;env.php&lt;/code&gt; file.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;'cron_consumers_runner' =&amp;gt; [
 'cron_run' =&amp;gt; true,
 'max_messages' =&amp;gt; 0,
 'consumers' =&amp;gt; [
 'async.operations.all',
 'codegeneratorProcessor',
 'product_action_attribute.update',
 'product_action_attribute.website.update',
 'exportProcessor'
 ]
 ],
 'queue' =&amp;gt; [
 'amqp' =&amp;gt; [
 'host' =&amp;gt; 'rabbitmq',
 'port' =&amp;gt; '5672',
 'user' =&amp;gt; 'username',
 'password' =&amp;gt; 'yb2sovjbaa4atsbbn0s0ccm9uddekh6i',
 'virtualhost' =&amp;gt; '/',
 'ssl' =&amp;gt; 'false',
 'ssl_options' =&amp;gt; []
 ]
 ],
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;A simple one-line command to add RabbitMQ queue to env.php file is:&lt;/p&gt;</description></item><item><title>Stratus Guides - Node.js Node Version Manager</title><link>https://docs.webscale.com/docs/reference/stratus/guides/general/node-js-nvm-manager/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.webscale.com/docs/reference/stratus/guides/general/node-js-nvm-manager/</guid><description>&lt;p&gt;Documentation for NVM can be found in &lt;a href="https://github.com/nvm-sh/nvm" target="_blank"&gt;Github&lt;i class="ps-1 fa fa-external-link"&gt;&lt;/i&gt;&lt;/a&gt;
.&lt;/p&gt;
&lt;h2 id="helpful-commands"&gt;Helpful Commands&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;To show available versions:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; $ nvm ls-remote
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;To install a specific version:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; $ nvm install v13.10.0
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;To confirm installed versions:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; $ node -v
 v14.2.0

 $ npm -v
 6.14.4
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;To switch through installed versions &lt;strong&gt;nvm&lt;/strong&gt; provides the &lt;em&gt;nvm use&lt;/em&gt; command. This works similarly to the install command.&lt;/p&gt;
&lt;p&gt;For example, to switch to Node.js version 13.6.0:&lt;/p&gt;</description></item><item><title>Stratus Guides - Updating Base URLs</title><link>https://docs.webscale.com/docs/reference/stratus/guides/general/updating-base-urls/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.webscale.com/docs/reference/stratus/guides/general/updating-base-urls/</guid><description>&lt;p&gt;Base URLs are one of the most important parts of Magento and they can cause serious trouble if not entered correctly. The following is a remedy you can use to easily correct Base URLs that have been incorrectly entered.&lt;/p&gt;
&lt;p&gt;Within the Magento Admin, Base URLs exist within the &lt;strong&gt;Stores &amp;gt; Configuration &amp;gt; General &amp;gt; Web&lt;/strong&gt; panel.&lt;/p&gt;

 &lt;link rel="stylesheet" href="https://docs.webscale.com/css/hugo-easy-gallery.css" /&gt;&lt;div class="box" &gt;
 &lt;figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject"&gt;
 &lt;div class="img"&gt;
 &lt;img itemprop="thumbnail" src="https://docs.webscale.com/images/stratus/img/articles/updating-base-urls-1.png" alt="ssh info-2"/&gt;
 &lt;/div&gt;
 &lt;a href="https://docs.webscale.com/images/stratus/img/articles/updating-base-urls-1.png" itemprop="contentUrl"&gt;&lt;/a&gt;
 &lt;/figure&gt;
 &lt;/div&gt;

&lt;p&gt;Note that only two fields have an actual URL, the rest have placeholder variables that file in the domain automatically. This is typical of every Magento install, though some configurations have custom media/skin/js values for use with CDNs or other customizations.&lt;/p&gt;</description></item><item><title>Stratus Guides - Multistore Subfolder Configuration Method</title><link>https://docs.webscale.com/docs/reference/stratus/guides/general/multistore-subfolders/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.webscale.com/docs/reference/stratus/guides/general/multistore-subfolders/</guid><description>&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;Create&lt;/em&gt; the desired folder within the &lt;code&gt;/pub/&lt;/code&gt; directory in your root directory (for this example, we will use &amp;ldquo;en&amp;rdquo;). &lt;code&gt;mkdir /srv/public_html/pub/en&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;Create&lt;/em&gt; the required symlinks within the new folder. Make sure they are &lt;strong&gt;absolute&lt;/strong&gt; to prevent any issues with [autoscaling](/docs/reference/stratus/control-panels/autoscaling/ &amp;ldquo;Autoscaling control panel&amp;rdquo;/). For example:&lt;/p&gt;
&lt;p&gt;cd /srv/public_html/pub/en
ln -s /srv/public_html/app app&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;code&gt;Once completed, the `/en` directory should appear like this:

	lrwxrwxrwx 1 www www 10 Mar 23 14:07 app -&amp;gt; /srv/public_html/app/
	lrwxrwxrwx 1 www www 19 Mar 23 14:08 index.php -&amp;gt; /srv/public_html/pub/index.php
	lrwxrwxrwx 1 www www 10 Mar 23 14:08 lib -&amp;gt; /srv/public_html/lib/
	lrwxrwxrwx 1 www www 27 Mar 23 17:13 media -&amp;gt; /srv/public_html/pub/media/
	lrwxrwxrwx 1 www www 28 Mar 23 17:13 static -&amp;gt; /srv/public_html/pub/static/
	lrwxrwxrwx 1 www www 10 Mar 23 14:08 var -&amp;gt; /srv/public_html/var/
&lt;/code&gt;&lt;/pre&gt;
&lt;ol start="3"&gt;
&lt;li&gt;&lt;em&gt;Add&lt;/em&gt; the following code to the [Nginx includes](/docs/reference/stratus/control-panels/nginx-panel/includes/ &amp;ldquo;Nginx Includes control panel&amp;rdquo;/). Adjust the subfolder name, &amp;ldquo;/en&amp;rdquo;, in each occurence (7) to the actual subfolder you prefer, and the store code, &amp;ldquo;en_store_view&amp;rdquo;, in the one occurence.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;`location /en/ {
index index.php index.html index.htm;
try_files $uri $uri/ /en/index.php?$args ;
location ~* .php$ {
expires off;
fastcgi_pass php-fpm;
fastcgi_keep_conn on;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;&lt;/p&gt;</description></item></channel></rss>