WordPress on aws
“WordPress on AWS” talk by Kel.
Our team in DigitalCube chose these two platforms because WordPress is user-friendly, has a lot of users and has a strong community.
On the other hand, AWS has a lot of raw blocks and tools. We like it also for its deployment speed. Normally, a traditional deployment will take about 48-96 hours, but AWS AMI let us do that in minutes.
Since our team works majorly with these two platforms, we needed something to speed up our work. In terms of AWS Community, the biggest one is here in our country, JAWS-UG (Japan AWS User Group). Right now, JAWS-UG has 54 groups, while USA has about 43-44 groups.
What our team did was combine these two and came up with AMIMOTO, which is a WordPress Cloud Hosting. AMIMOTO is the combination of AWS, Nginx reverse proxy, MySQL tuning and HHVM.
Example sites, the issues they had and the solutions by WordPress & AWS:
- Mazda’s blog’s issue has an unpredictable sudden traffic increase where resources end up either being too much or too little.
- Solution: Amazon EC2 that can help sites be scalable and stop users from guessing how much resources they really need.
- Large-scale media sites usually have unexpected peaks and high page views.
- Solution: AutoScaling which is for apps with stable demand patterns &different usage daily, weekly or monthly. In times of high demand: AutoScaling will automatically increase the number of EC2 instances to maintain performance.
Based on the settings, EC2 instances on the system can be increased & decreased. You can increase / decrease instances based on how high/low the load will be. This makes it cost-efficient since access is unpredictable.
The good thing about AutoScaling is that even you’re only using one instance and it’s broken, it’s convenient for you to recover.
- Huge enterprise sites need to be multisite and multilingual
- News Sites issues are usually having multiple users and thousands of articles that can slow down the site.
- Solution: having tons of articles and users are both possible with WordPress,where you can manage multiple users and assign access levels and capabilities to each user.
- When you install WordPress from AMIMOTO, it comes with WP Booster CDN which is a WordPress plugin that is already pre-installed. This helps improve the speed of the site.
If you’re interested in trying WordPress on AWS, here’s a 14-day free trial.
How to use amimoto on development environment
Shinichi is a WordPress Theme Repository key reviewer, WordPress Bangkok Meeetup organizer & WordCamp Tokyo 2012 Executive Committee Chairman. He is currently living in Thailand with his wife & 2 kids. He demonstrated “How to use AMIMOTO on Development Environment”:
Shinichi demonstrating how he uses AMIMOTO on development environment.
How to make your site Multilingual
This was a talk by Matt who’s a polyglot working in the support team of WPML, a WordPress multilingual plugin.
Matt showing statistics of top languages used on the internet.
December 2014 world internet usage shows that Asia and Europe have the highest number of internet users.
The top languages spoken by internet users are English, Chinese, Spanish and Japanese. The most popular language used on website is English, which is about 61%, while other languages are German, Japanese and Russian.
Hopefully these statistics will give you an idea on the importance of running your websites in more than one language that can also help in increasing the number of your visitors.
He shared his experience in a foreign country where he tried to look for a restaurant using Google. The websites he normally visited were the ones that appear on the search results, or Google Maps with an English version. This is because Google promotes the English version of the content when it detects that he’s using an English version of the browser, or when he’s logged into his Google account.
Types of translations he mentioned are machine and human translations. “Machine translations are good for emergency cases“, Matt said. However, it’s full of misspellings and errors that lead to content that are incomprehensible.
Google offers machine translation for websites, but doesn’t allow it to be used as your own content. If you wish to use the free Google machine translation for your site, the correct way is to display Google’s website translation widget. This will pass visitors via Google’s translation. Google encourages and fully supports this mode.
A human translation cannot be replaced by machine since humans are capable of capturing the essence of culture and emotions, which are totally different when translated by machines.
An example of a WordPress Multilingual plugin is WPML that allows you to translate your content into languages easily.
Your content can be translated manually and can be also translated using WPML’s Translation Management which allows you to create translator accounts and assign to them translation jobs.
WPML allows you to translate site title, pages, posts, categories, tags, images, menus, widgets, products, custom post types, custom fields, theme localization and theme options.
Amazon API Gateway & WordPress
Horike is a PM of WordPress projects and an AWS Solutions Architect. He maintains WordPress sites and has now developed 11 plugins. He spoke in several WordCamps / tech events and is a WordPress 4.2 Core Contributor.
Horike said, “Amazon API Gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs at any scale.”
What he tried was to connect WordPress to various AWS Services and this time he will focus more on WordPress and Amazon Machine Learning.
“Amazon Machine Learning is a service that makes it easy for developers of all skill levels to use machine learning technology. Amazon Machine Learning provides visualization tools and wizards that guide you through the process of creating machine learning (ML) models without having to learn complex ML algorithms and technology.”
Horike showing AWS architecture.
The data is related with direct marketing campaigns of a Portuguese banking institution. The marketing campaigns were based on phone calls. Often, more than one contact to the same client was required, in order to access if the product (bank term deposit) would be (‘yes’) or not (‘no’) subscribed.
For more details on this talk, you can find out more on Horike’s blog:
WordPress Media Management: How it’s Done, Why it’s Close to Useless.
Riccardo is a game and web programmer from Italy. He now lives in Japan and has his own company in Osaka.
Riccardo talking about how to configure WordPress Media Gallery
Although WordPress can support all types of files, WordPress does not have a category or tag for media and you cannot reuse a gallery.
The solutions are either gallery integrated in themes with custom page template, third party plugins for managing media or black magic!
Riccardo developed a Zero Gallery WordPress plugin
where everything is in one place. He showed a demo of the plugin where a user is able to do a complex function with just a few clicks.
This plugin enables you to keep all your media files in one place and manage them efficiently without leaving the WordPress interface.
Wocker & WordCamp Kansai 2015
The final talk of our WordPress on AWS Meet-up was by Kite, who’s a designer, programmer, core contributor and a representative director.
Kite inviting us to WordCamp Kansai 2015
Kite talked about Wocker
, which is a rapid Docker-based WordPress environment. Using Wocker, it only takes 3 seconds to create a new WordPress Environment.
For every virtualized application it has an app – which may be 10s of MB – and the necessary binaries and libraries, but also an entire guest OS – which may weigh 10s of GB.
On the other hand, the Docker Engine container comprises just the application and its dependencies. It runs as an isolated process in userspace on the host operating system, sharing the kernel with other containers. Thus, it enjoys the resource isolation and allocation benefits of VMs but is much more portable and efficient.
Getting started with Wocker:
1. Install Vagrant
2. Install Virtual Box
3. vagrant-hostsupdater plugin
4. Clone Wocker repo
5. Vagrant up
For best practice the recommended commands are Wocker, DO NOT destroy the Vagrant machine of Wocker, Don’t install more than one Wocker. Instead, create containers to manage multiple sites.
WordPress on AWS Meetup in Kansai was held last Thursday, August 23, 2015 at DEP. Kobe co-working space
, which is only a 3-minute walk from JR Motomachi Station.
This was the first WordPress on AWS Meetup
organized by some members of DigitalCube team. Why we did this Kansai meetup is because we love WordPress and AWS, we want to share our experiences with the community and we want to connect with other WordPress and AWS professionals out there.