SAIN3 "Magento + Redis + HHVM + LAMP + Webmin" Package (HVM)

User Guide


We understand e-Commerce customers' demand, and we always put data safety as our first priority in the product R&D.


1. HipHop Virtual Machine (HHVM)

HipHop Virtual Machine (HHVM) is an open-source virtual machine designed for executing programs written in Hack and PHP by using a just-in-time (JIT) compilation approach to achieve superior performance. HHVM installed in this AMI supports high performance Magento. As an accelerator, it improves response times as well as the conversion rate, which is good for your business.


2. MySQL DB Back-up

This script is saved in /usr/local/bin/AutoBackup enabling users to automatically back up your entire database, making all your data extra safe.

The default setting is daily automatic back-up at 12PM Noon (PST). User can change the running time or stop the database back-up service by revising the script file in the Webmin: Webmin->System->Schedule Cron Jobs->/bin/sh /usr/local/bin/AutoBackup


3. Webmin

Webmin is a web-based system configuration tool for Unix-like systems. With it, it is possible to configure operating system internals, such as users, disk quotas, services or configuration files, as well as modify and control open source apps. If you want to manage Apache and MySQL through the Web page, Webmin is the right tool for you.



Usage instructions

**Important Info**

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


**Default Settings**

1.Webmin / MySQL:

Username: root

Password: <instance ID>

2. Magento:

Username: admin

Password: <instance ID>


** Step 1 : Initial Configuration **

1.Visit http:// <public DNS>.

2.Enter your instance ID and click “Continue”.

3.(Required field) Enter the backup path(Format:/mnt/). 

4.(Optional) Enter your website domain name. Format: or The default domain name is <public DNS>.

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

6.Click “Submit” to save your initial configuration.


** Step 2 : Access the System**

1. Visit your Magento frontend.

http:// <public DNS>

2. Admin interface.

http:// <public DNS>/admin

Username: admin, password: <instance ID> or the one you chose.

3. Webmin at http:// <public DNS>:10000. You can manage MySQL through Webmin.


Replace the <public DNS> above with the actual ip address of the running EC2 instance.


**Clear Cache & Session**

1. Just clear the cache from the Magento Admin Panel, which is the simplest way.

2. Or you can SSH into your instance to clear the 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 DNS information for your instance. Type the following commands:

$ redis-cli

>select 2    #select the database for cache

>flushdb     #flush cache

>key *      #check

>select 1    #select the database for session

>flushdb     #flush session

>key *      #check

>quit        #leave redis-cli


DO NOT use the redis command 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 the port 10000 is in your security group.

Type: Custom TCP Rule

Protocol: TCP

Port range: 10000