Overview
WordPress Automation with Custom AMI
Steps
Launch the free tier Amazon Linux 2 and Connect to the instance using Instance Connect (Enable SSH/22 & HTTP/80 from anywhere IPv4)
Create authentication variables necessary for WordPress Database
Install Apache HTTPD, MariaDB and PHP dependencies Code
Set the services to enable during boot and start the service
Set Mariadb Root Password
Install latest version for WordPress
Configure WordPress to follow the authentication variables set during step 2 and change the owner permissions for the files Code
Create the Wordpress Database
Go to
http://public_ipv4_address
to ensure WordPress installationCreate a banner using cowsay
Inside the
40-cow
file insert commandsChange permissions for the file to be read and executed by everyone Code
Apply update
Reboot and ensure the banner and final WordPress application
-
Stop the instance and Create an image from the Stopped Instance
- Name:
WordPressAMIAutomation
- Create Image
- Name:
Ensure Snapshot and AMI creation.
Launch a custom instance from the
WordPressAMIAutomation
AMI-
Configuration wizard allows hardware changes for custom VPC, harddisk space and advanced configuration such as security group configuration
- Reference:
-
Login instance using Instance Connect
- Reference:
-
Go to
http://public_ipv4_address
to ensure WordPress automated installation.- Reference:
Top comments (0)