SSH warnings when working with multiple stacks

If you have multiple separate stacks with Sonassi, you will find that connecting to different stacks and accessing SSH is going to trigger a warning, WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! This is caused by the fact all MageStack stacks use the same internal hostnames and IP addresses. So regardless of the stack you've connected … Continue reading

Purging Varnish

Varnish as a rule will maintain its own cache contents, updating the entries as necessary. As with any cache, it isn't recommended to manually clear the cache - as it will reduce its effectiveness. However, if you need to instantly clear the cache, it can be performed very easily on a per-domain basis, and per … Continue reading

Vulnerability scanner

MageStack has a built in vulnerability scanner, which performs a number of roles Detects common PHP exploits Detects Magento 3rd party module exploits Identifies potentially compromised files Identifies abnormal files Checks if all available Magento patches have been applied The scanner is automated and logs its results to the audit log, named magescan-YYYY-MM-DD.log.gz Report priorities … Continue reading

Limit/block bad bots

MageStack has native functionality to prioritise certain "good" bots (Google, Bing, Yahoo, Pingdom) and to reduce priority of "bad" third party bots (Majestic SEO, Rogerbot etc.), this is handled within the WAF itself, see DOS filter rules for more information. The default thresholds are: Type Rate Soft Warning Action Hard Warning Action Good bot Unlimited … Continue reading

Control customer registration

Sometimes, your site may fall victim to country specific attacks or SPAM bots. Discretely preventing access to customer registration on your server for a specific country is very straightforward, with a simple edit to your domain's ___general/example.com.conf file. Eg. To block the country with country code aa set $bad_request "0"; if ($request_uri ~* ^/customer/account/(create(post)?|index|login)) { … Continue reading

Optimal Varnish Configuration

We know there can be some confusion in the most optimal settings for a store running Varnish, below you'll find configurations (continually updated) to reflect the most optimal configuration. Dynamic Content In ___general/example.com.conf, be sure to replace, lb1.i example.com # Enable If-Modified-Since set $magestack_last_modified true; # Enable Varnish # Use varnish_install.sh to configure the include … Continue reading

MySQL Disk Utilisation

The disk utilisation log can be found in the log directory, under the respective parent server name, and dated for each day: Eg. /microcloud/logs_ro/dh1/disk-mysql-2015-08-10.log.gz It provides a breakdown of total utilsation, followed by a list of usage per database, and the largest tables within those. Eg. ********************** * Current Disk Usage * ********************** Size Used … Continue reading

Installing SSL Certificates

Purchasing If you require an SSL certificate, read this article. Installing If you have purchased an SSL certificate from Sonassi, we will take care of the installation on your behalf, from certificate signing to final installation and testing. If you are supplying your own certificate, we require the following in x509 non-passphrase encoded format, Private … Continue reading

502 Bad Gateway

502 Bad Gateway MageStack Bad Gateway errors occur when the PHP process has not responded "normally". This is often for the following reasons, PHP code error Badly written PHP code that crashes the PHP process PHP service restarts, caused by Excessive traffic Blocking external requests (like slow SQL, or a blocking external CURL request) In … Continue reading

Optimise Images

There is a native tool in MageStack to losslessly optimise images. This means images use less disk space and are served to the customer faster - without losing any quality. The utility can be accessed by running, image_optimise.sh Only a single option is required to execute the command, image_optimise.sh Usage: image_optimise.sh [directory] directory Directory containing … Continue reading