Magento Stack with Redis and Varnish Cache

Highlights

  • Very fast cache backend with excellent tag support: Redis Cache & Session, Varnish Cache.

  • Easily and visibly mange your system in browser, powered by embedded Webmin system.

  • One click to install. Quick and responsive deployment.

Usage Instructions

Note

Before you start to access the system, please ensure the Status Checks of the instance in the AWS Console turns to 2/2 checks passed, or the initialization process might be interrupted and the software configuration fails. It takes about 5-10 mins.

Note

Please replace the instance ID with the actual instance ID of your running EC2 instance, and the public DNS your actual public DNS address.

Default Settings

  1. Webmin / MySQL:

Username: aurora, Password: <instance ID>

  1. Magento :

Username: aurora, Password: <instance ID>

Step 1 : Initial Configuration

  1. Visit <public DNS>.

  2. Enter your instance ID and click Continue.

  3. (Optional) Enter the password for the aurora user of Webmin.

  4. (Optional) Enter the password for the aurora user of Mysql.

  5. (Optional) Enter your password for the aurora user of Magento.

  6. Click Submit to save your initial configuration.

Step 2 : Access the System

  1. Visit your Magento frontend

<public DNS>

  1. Magento admin interface

<public DNS>/admin

Username: aurora, Password: <instance ID> or the one you chose

  1. Webmin

<public DNS>:10000

Username: aurora, password: <instance ID>.

  1. You can manage MySQL through Webmin.

Login to webmin -> Servers -> MySQL Database Server.

Username: aurora, password:<instance ID>.

How to Clear Redis Cache & Session

  1. FYI.

If you are using a small instance type like t2.micro, we highly recommend you to frequently clear the cache as small instances have insufficient resources. Low performance instances may lead to a webmin crash or a mysql crash or a Cannot Allocate Memory error. So we recommend t2.medium and the higher performance instance types.

  1. Method 1

Login to webmin -> Others -> Command Shell

Type the command:

redis-cli flushall

Click the button Execute command.

  1. Method 2

There is another way to clear cache & session. Open a terminal or SSH client, using your Amazon EC2 SSH public key, SSH into the instance as the ubuntu user using the public IP information for your instance.

Type the following command:

$ redis-cli flushall

Cannot Access to Webmin

  1. After the Status Checks of the instance in AWS Console turns to 2/2 checks passed can you start to access the system, or the initialization process might be interrupted and fail.

  2. Ensure port 10000 is in your security group.

Type

Custom TCP Rule

Protocol

TCP

Port range

10000

Source

0.0.0.0/0

Advance Setting

  1. Image CDN

    Go to Magento admin interface, System->Configuration, Catalog->Image CDN:

    ../_images/magento_imageCDN.png

    When you create S3 Bucket, you need to Edit bucket policy like this:

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
        {
              "Version": "2016-12-04",
              "Statement": [
                      {
                              "Sid": "AddPerm",
                              "Effect": "Allow",
                              "Principal": {
                                      "AWS": "*"
                              },
                              "Action": "s3:GetObject",
                              "Resource": "arn:aws:s3:::your.bucket.name/*"
                      }
              ]
        }
    
  2. Js CDN

    Go to Magento admin interface, System->Configuration, Catalog->JsSkinCDNSync:

    ../_images/jscssCDN.png

    Ensure you have already created the AWS S3 bucket and the AWS CloudFront distribution related to the S3 bucket. Fill in the Base URL and the Secure Base URL with your CloudFront domain name:

    ../_images/jsCDN_MG.png

    When you create S3 Bucket, you need to Edit bucket policy like this:

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
        {
              "Version": "2016-12-04",
              "Statement": [
                      {
                              "Sid": "AddPerm",
                              "Effect": "Allow",
                              "Principal": {
                                      "AWS": "*"
                              },
                              "Action": "s3:GetObject",
                              "Resource": "arn:aws:s3:::your.bucket.name/*"
                      }
              ]
        }
    
  3. AWS SES

    Amazon Simple Email Service (SES), a cost-effective email service, is a reliable, scalable way to send business email & marketing messages.

    ../_images/MG_SES.png

    After set up the key, you have to make a verify with your store email:

    ../_images/MG_verify.png

    Take your eamil address to the AWS SES plane:

    ../_images/aws_ses.png

    Final, go back to magento admin interface: SMTP Pro, Run Self Test

Support

Contact Aurora

We will do our best to respond to your questions within 24 hours Monday through Friday. Please visit Aurora for details.