WordPress Stack with HHVM / LAMP and Redis Cache

A WordPress publishing platform embedded with pre-configured LAMP, HipHop Virtual Machine (HHVM) and Webmin.Redis’ high-performance and high-stability are proved in testing on high-traffic WordPress with more than 500,000 visitors / day. And here comes Webmin to ease server management.

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 WordPress.

Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker.

Highlights

  • WordPress is the most popular blogging platform and content management system.
  • HHVM / LAMP & Redis Cache.
  • 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.

Note

If you use HHVM version. If you see Service Unavailable in Browser, you need to restart hhvm service. 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:

$sudo /etc/init.d/hhvm restart

HHVM will start it up now, but it not configured to auto start at next system boot. To set auto start at next boot use the following command.

$sudo update-rc.d hhvm defaults

Default Settings

  1. WordPress:

Username: aurora

Password: <instance ID>

  1. Webmin / MySQL:

Username: aurora

Password: <instance ID>

Step 1 : Instance ID Verification

  1. Visit <public DNS>.
  2. Enter your instance ID and click Continue.

Step 2 : Access the System

  1. Visit your Wordpress.
<public DNS>
  1. Wordpress admin interface.

<public DNS>/wp-admin

Username: aurora, password:<instance ID>.

  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>.

After Public IP & DNS Changed

Each time you stop and start the instance, the instance IP and DNS will be changed, and you should update the changes to the wordpress configuration which means that you should update the URLs in the database sain3_app.

  1. Login to webmin -> Servers -> MySQL Database Server -> click wordpress.
  2. Edit table: wp_options, click button View Data.
  3. Find siteurl and home in option_name, select the rows, and click button Edit selected rows. Update the option_value to your new instance IP http://x.x.x.x

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

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

Support

Contact Aurora

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