Create a text file named wordpress.txt that lists all steps you went through
to accomplish this homework assignment. The purpose of the document is to produce
a list of steps and specific commands that you or someoneone else can follow in the
future to get a WordPress site setup easily.
Peform these steps on your server:
- For this assignment you will use the virtual server named blog.yourdomain
you you set up previously.
- Create a MySQL database and user to house your Wordpress blog.
- Download and install an instance of WordPress (https://wordpress.org/latest.zip).
- Configure Wordpress so that its
wp-config.php
file is out
of the web space.
- Enable direct updates.
- Establish admin user / password for the site.
- Install and activate the custom theme you chose in the prelab assignment.
- Set up a blog with a topic of your choosing. Create a single post.
- Remove pre-existing blogs/pages.
- Visit the admin portion of your new site and follow the login instructions.
- Once you have set up an admin account for yourself, go to the Users section
of the dashboard and create an account for a new admin user named
sergeant
with an email address of tsergeant@hsutx.edu
.
You can modify DNS entries using the AWS CLI rather than logging in manually.
To do so you'll need to use the IAM service to create a user who has permissions
to fully work with Route53 services. (NOTE: I had to do some fiddling to get this
user set up).
IMPORTANT: Even though you already have DNS entries setup for the blog site, do not
skip this exercise because you will need it next week. You can practice using other
subdomains.
Once you get a properly functioning IAM role established be sure to document
the steps you took.
Some sample CLI commands:
- aws route53 list-hosted-zones –profile=xyz
- List hosted zones including their ids.
- aws route53 list-resource-record-sets –hosted-zone-id=abc –profile=xyz
- List
record set associated with a given hosted zone.
- aws route53 change-resource-record-sets –hosted-zone-id=abc
–profile=xyz –change-batch file://dns.json
- Executes commands in dns.json.
The file may look something like this:
{
"Changes": [
{
"Action": "CREATE",
"ResourceRecordSet": {
"Name": "cool.yourdomain",
"Type": "A",
"TTL": 3600,
"ResourceRecords": [
{
"Value": "your ip #"
}
]
}
}
]
}
In your wordpress.txt file list the specific commands needed to change
Route53 settings. Be sure to show the .json document you created to create
a new DNS record along with the output of listing resource record sets that show
the new entry.