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

A fundamental software bundle includes Nginx, Memcached, HHVM-FastCGI, MySQL, PHP and Webmin. This software bundle provides a high performance software environment by optimizing the memcached caching mechanism and accelerating PHP with HipHop Virtual Machine (HHVM-FastCGI).

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. 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.
  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 Apache and MySQL through the Web page, Webmin is the right tool for you.

Highlights

  • Optimized memcached caching mechanism with memc-nginx-module and srcache-nginx-module.
  • Process the PHP scripts by using HipHop Virtual Machine (HHVM-FastCGI).
  • 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.

Access the System

  1. Visit your Nginx homepage.
<public DNS>
  1. Webmin

<public DNS>:10000

Username: root, password:<instance ID>.

  1. You can manage MySQL through Webmin.

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

Username: root, password:<instance ID>.

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

Flush Contents of Memcached

Your nginx cache is stored in memcached.

  1. Method 1

Login to webmin -> Others -> Command Shell

Type the command:

echo 'flush_all' | nc localhost 11211

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:

$ echo 'flush_all' | nc localhost 11211

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

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.