Deploy WordPress Application

  1. Go back to the application interface

    • Select Revisions
    • Select Deploy application

CodeDeploy

  1. In the deployment interface

    • Select the created deployment group.
    • Select My application is stored in Amazon S3
    • Leave the remaining as default configurations.

CodeDeploy

  1. Select Create deployment

CodeDeploy

  1. Deployment successful.

CodeDeploy CodeDeploy

  1. View detailed deployment events.

CodeDeploy

  1. View the deployment history regarding the successful deployment.

CodeDeploy

  1. View the deployment group successfully deployed.

CodeDeploy

  1. View the application deployed successfully.

CodeDeploy

  1. Check by accessing the WordPress application using the Public IPv4 DNS.

CodeDeploy

  1. Successfully accessed the Apache page.

CodeDeploy

  1. Navigate to WordPress (append /WordPress/wp-admin/setup-config.php to the URL)
  2. Configure WordPress by clicking the Let’s go button.

CodeDeploy 13. Run commands on EC2 to create a new user with full privileges on the database named test

sudo mysql -u root -e "CREATE USER 'FCAJ-Hieu'@'localhost' IDENTIFIED BY 'FCAJ-password';"
sudo mysql -u root -e "GRANT ALL PRIVILEGES ON test.* TO 'FCAJ-Hieu'@'localhost';"
sudo mysql -u root -e "FLUSH PRIVILEGES;"

CodeDeploy

  1. Configure WordPress

    • Database name: test
    • Username: FCAJ-Hieu
    • Password: FCAJ-password
    • Database Host: localhost
    • Table Prefix: wp_
    • Select Submit

CodeDeploy

  1. Select Run the installation

CodeDeploy

  1. Fill in all the required information.

CodeDeploy

  1. WordPress interface.

CodeDeploy

CodeDeploy

CodeDeploy