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.
Deploy the Web Farm in the VPC
Launch the web server in the VPC. Launch an Ubuntu instance (version 14.04) in the Web server subnet. Add an ENI and assign an IP address (for example, Log in to the web server using the VM-Series firewall configured for management access. ssh –i ‘keypair.pem’ –p 10000 ubuntu@
Configure the web server for access. Create and edit eth0.cfg file. sudo vi /etc/network/interfaces.d/eth0.cfg 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 Reboot to restart the networking on the web server. sudo reboot now
Connect the web server to the database service. Establish an SSH connection to the server after the reboot. (One-time task—only when you deploy the first web server) Configure the database Endpoint name. This is the DNS name and port for your DB instance and is displayed on the RDS instance.
Connect to the database. For example: mysql -u awsuser -h -p 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
Install and configure WordPress. Install updates, Apache, and WordPress on each server. sudo apt-get update sudo apt-get install apache2 sudo apt-get install wordpress Create the WordPress path in Apache. sudo ln -s /usr/share/wordpress /var/www/html/wordpress 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 Move the existing WordPress configuration file to a file that will match the domain name. Sudo mv /etc/wordpress/config- /etc/wordpress/ If you see the error config-<Route53>.php file is inaccessible w hen verifying access to the WordPress application, confirm that the file owner is www-data and that the spelling and syntax are accurate.

Related Documentation