“Magento + Nginx + Memcached + PHP”Package Powered by SAIN3 (HVM)

We provide this product because some customers requested such a software bundle including Magento, Nginx and Memcached, and we have optimized it with MariaDB and HipHop Virtual Machine (HHVM).

Descriptions

  1. Nginx
Nginx is a high performance, open source web application accelerator that helps over 37% of the world’s busiest websites deliver more content, faster, to its users. Companies deploy Nginx to manage the complexities and pitfalls associated with HTTP and to make their web applications more responsive, scalable, fast and secure. Nginx is commonly installed between the network and the application to offload concurrency processing, URL switching, HTTP load balancing, SSL termination, caching, and security policies.
  1. Memcached
Originally, this package uses memcached for magento caching and nginx web pages caching, so that you can safely use Flush Cache Storage button to fully clear the cache.
  1. MariaDB
MariaDB is an enhanced, drop-in replacement for MySQL.
  1. PHP & 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.
  1. 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 MariaDB through the Web page, Webmin is the right tool for you.

Highlights

  • Optimized Magento cache mechanism and Nginx web pages caching.
  • Improved response times as well as the conversion rate.
  • 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 IP your actual public IP address.

Default Settings

  1. Magento:

Username: admin

Password: <instance ID>

  1. Webmin / MariaDB:

Username: root

Password: <instance ID>

Step 1 : Initialization

  1. Visit <public IP>.
  2. Enter your instance ID and click Continue.
  3. (Optional) Enter your password for the “admin” user of Magento.
  4. Click Submit to save your initial configuration.

Step 2 : Access the System

  1. Visit your Magento frontend.
<public IP>
  1. Magento admin penel.

<public IP>/admin

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

  1. Webmin

<public IP>:10000

Username: root, password:<instance ID>.

  1. You can manage MariaDB through Webmin.

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

Username: root, password:<instance ID>.

Please note that MariaDB Database Server has been installed and is working properly. As you can see the database version is 10.x.x which is the current version for MariaDB.

Public IP is not working?

The public IP will be changed each time you stop and start the instance or that you associate the instance with an elastic IP address. On these cases you may take the following steps to update the IP address of you magento website.

  1. login to Webmin at <your new public IP>:10000
  2. Others -> Command Shell.

Run the command:

sudo /home/ubuntu/updateIP.py

Click Execute command .

If everything works, your new public IP will be working!

Clear Cache & Session

  1. FYI.
If you are using a small instance type, we highly recommend you to frequently clear the cache as small instances have insufficient resources. Low performance instances may lead to a webmin crash, a database crash or a Cannot Allocate Memory error. So we recommend the higher performance instance types.
  1. Login to your magento admin panel and clear cache & session.

We highly recommend using Flush Cache Storage button if you do not configure memcached for other applications except magento.

Originally, this package uses memcached for magento caching and nginx web pages caching, so that you can safely use Flush Cache Storage button to fully clear the cache.

  1. 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 commands:
$ telnet localhost 11211     #First command.

flush_all    # This is the second command, then you can see OK.

quit    #Leave telnet

For your info

By default, Nginx is installed in /usr/local/nginx.

Nginx DocumentRoot directory /var/www
Nginx configuration file /usr/local/nginx/conf/nginx.conf
Nginx logs directory /usr/local/nginx/logs
Nginx user www-data
Nginx bash commands sudo /etc/init.d/nginx {start/stop/restart/status}

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

Support

Magento Website

Contact Sain3

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