37. WOOCOMMERCE
POWERED BY AMIMOTO HHVM
PLATFORM USED TO
SELL PRODUCTS
haps://aws.amazon.com/
marketplace/pp/B00ZGTRMVU
AWS MARKETPLACE
14 DAYS FREE TRIAL
47. MULTILINGUAL
NEEDS TO BE HIGH SPEED
MULTISITE
HUGE ENTERPRISE
SITE
1 instance = can have
mul(ple WP installs
Install Mul(lingual
WP plugins
HVM Virtualiza(on
78. can remain with you
even there is no associated instance
returned (and cannot be retrieved)
as soon as you stop a Virtual Machine
Op]onal
When you create a Virtual Machine,
you get a Public IP
No maaer how many ]mes
you stop / start an intance with EIP,
the same IP will con]nue to be available
as the public IP of the Virtual Machine.
If there is no EIP,
each ]me you stop and start the instance,
you get a new Public IP every ]me.
hap://blog.digitalcube.jp/archives/1870
ELASTIC IP ADDRESS VS. PUBLIC IP ADDRESS
108. • the user of the .conf file is root
• switch to the root user with su -, then edit the file.
1. Around Line 61: Change
ENABLE PHPMYADMIN
include /etc/nginx/
phpmyadmin;
#location ~* /(phpmyadmin|
myadmin|pma) {
# access_log off;
# log_not_found off;
# return 404;
#}
##include /etc/nginx/
phpmyadmin;
location ~* /(phpmyadmin|
myadmin|pma) {
access_log off;
log_not_found off;
return 404;
}
109. 2. Ager rewri]ng
# service nginx restart
restart Nginx.
You can access the phpMyAdmin in hap://example.com/phpMyAdmin/ ager you restart.
3. Login username & password of phpMyAdmin will be the username and password for the
database (wriaen in the wp-config.php).
4. You can use phpMyAdmin ager the process above.
ENABLE PHPMYADMIN
110. NOTES:
• replace the default.conf
• disable the phpMyAdmin ager use.
Many vulnerabili]es were found in the previous phpMyAdmin (unauthorized access even
without installa]on).
For the reason, with AMIMOTO, phpMyAdmin is disabled by default even though it is installed.
ENABLE PHPMYADMIN
112. WP-CLI
• Database export
wp db export []
The filename is any + .sql.
Sql file is created when the
opera]on completes
• Database Op]miza]on
wp db optimize
• Database import
wp db import []
sql file is the file that had
been uploaded to the
server in advance
There are many commands you can use:
hap://wp-cli.org/commands/db/
115. 1. Start PuTTY (from the Start menu, click All
Programs > PuTTY > PuTTY).
2. In the Category pane, select Session and
complete the following fields:
a) in the Host Name box, enter
ec2-user@public_dns_name
b) under Connec]on type, select SSH
c) ensure that Port is 22
CONNECT FROM WINDOWS USING PUTTY
116. 3. In the Category pane, expand Connec]on,
expand SSH, and then select Auth.
Complete the following:.
a) click Browse
b) select the .ppk file that you generated for
your key pair, and then click Open
c) click Open to start the PuTTY session
4. If this is the first ]me you have connected
to this instance, a security alert dialog box
will be displayed. Click Yes. A window opens
and you are connected to your instance.
CONNECT FROM WINDOWS USING PUTTY
117. 1. Open your command shell and run the following command:
$ chmod 600 /paths/my-key-pair.pem
2. Next, run the following command:
$ ssh -i /paths/my-key-pair.pem ec2-user@public_dns_name
CONNECT FROM MAC OR LINUX USING AN SSH CLIENT
118. Ager login to the SSH run the following command:
$ curl -L https://raw.githubusercontent.com/amimoto-ami/run-
httpd-as-ec2-user/master/run-httpd-as-ec2-user.sh | sudo bash
RUN THE FOLLOWING COMMAND
haps://amimoto.zendesk.com/hc/en-us/ar]cles/206552077-How-to-connect-Amimoto-instance-to-S-FTP-client-sogware-
119. SERVER CONNECTION SETTINGS
Server: Instance IP Address
Username: ec2-user
Secret key
Path: / var / www / vhosts / {instance name
(op]onal)}
Connec]on method (Port): SFTP (22)
CONNECT WITH (S) FTP CLIENT SOFTWARE
149. DIGITALCUBE
TEAM &
WHAT WE DO
WORDPRESS,
WORDCAMP &
THE COMMUNITY
AWS &
USER GROUPS
WORDPRESS
& AWS
FIRST STEPS
AWS
USE CASES
WORDPRESS
USE CASES
HHVM
PERFORMANCE
TESTS
SITES, ISSUES
& SOLUTIONS
PART I: SUMMARY
AMIMOTO
WORDPRESS
HOSTING