End-of-Life (EoL)

Deploy the Web Farm in the VPC

This workflow shows you how to deploy the web server and configure the WordPress application. These instructions are included solely for the purpose of taking you through the implementation in this use case. For concepts and details on deploying WordPress, refer to the WordPress documentation.
  1. Launch the web server in the VPC.
    1. Launch an Ubuntu instance (version 14.04) in the Web server subnet.
    2. Add an ENI and assign an IP address (for example,
    3. Log in to the web server using the VM-Series firewall configured for management access.
      ssh –i ‘keypair.pem’ –p 10000 ubuntu@
  2. Configure the web server for access.
    1. Create and edit eth0.cfg file.
      sudo vi /etc/network/interfaces.d/eth0.cfg
    2. Configure the file with a static network setting to direct database traffic to the VM-Series firewall that secures the database service. The following settings are the same for each web server:
      # The primary network interface auto eth0 iface eth0 inet dhcp #static route for database segment up route add -net netmask gw dev eth0
    3. Reboot to restart the networking on the web server.
      sudo reboot now
  3. Connect the web server to the database service.
    1. Establish an SSH connection to the server after the reboot.
    2. (
      One-time task—only when you deploy the first web server
      ) Configure the database
      name. This is the DNS name and port for your DB instance and is displayed on the RDS instance.
    3. Connect to the database. For example:
      mysql -u awsuser -h myrdbinstances.cdfujxufuwlc.us-west-2.rds.amazonaws.com -p
    4. Create the database and add WordPress users and permissions. For example:
      CREATE DATABASE Ignite; CREATE USER 'student'@'%' IDENTIFIED BY 'paloalto'; GRANT ALL PRIVILEGES ON Ignite.* TO 'student'@'%'; FLUSH PRIVILEGES; Exit
  4. Install and configure WordPress.
    1. Install updates, Apache, and WordPress on each server.
      sudo apt-get update
      sudo apt-get install apache2
      sudo apt-get install wordpress
    2. Create the WordPress path in Apache.
      sudo ln -s /usr/share/wordpress /var/www/html/wordpress
    3. Create a WordPress configuration file and add a username and password for a new user. For example:
      sudo gzip -d /usr/share/doc/wordpress/examples/setup-mysql.gz
      sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n Ignite -u student -t myrdbinstances.cdfujxufuwlc.us-west-2.rds.amazonaws.com
    4. Move the existing WordPress configuration file to a file that will match the domain name.
      Sudo mv /etc/wordpress/config- /etc/wordpress/config-wordpress.ignite-aws-demo.com.php
      If you see the error
      config-<Route53>.php file is inaccessible
      when verifying access to the WordPress application, confirm that the file owner is
      and that the spelling and syntax are accurate.

Recommended For You