How to Setup PHP7 WordPress Blog on AWS EC2

Howto Setup PHP7 WordPress Blog on AWS EC2 from scratch it includes:

  1. Launching your EC2 instance
  2. Allocating an elastic IP (optional)
  3. Installing wordpress
  4. A few tips and gotchas

** This post shows how to do this upgrade from scratch on AWS to a clean LAMP PHP 7 stack install **

Setup PHP7 WordPress Blog on AWS EC2

Setup PHP7 WordPress Blog on AWS EC2

Continue through to launch instance.

Setup PHP7 WordPress Blog on AWS EC2

Allocate elastic IP.

Setup PHP7 WordPress Blog on AWS EC2

http://54.89.55.130/

Setup PHP7 WordPress Blog on AWS EC2

Connect via SSH (using your .pem key)
ssh -i C:/Users/Deering/Desktop/keys/destin.pem [email protected]

Setup PHP7 WordPress Blog on AWS EC2

Install WordPress module

sudo su –

cd /tmp

wget https://downloads.bitnami.com/files/stacks/wordpress/4.5.2-0/bitnami-wordpress-4.5.2-0-module-linux-x64-installer.run

chmod a+x bitnami-wordpress-4.5.2-0-module-linux-x64-installer.run

./bitnami-wordpress-4.5.2-0-module-linux-x64-installer.run

Setup PHP7 WordPress Blog on AWS EC2

mySQL pass: bitnami

Setup PHP7 WordPress Blog on AWS EC2

http://54.89.55.130/wordpress/

Setup PHP7 WordPress Blog on AWS EC2

Change /wordpress to root url.
Also enable FTP by uncommenting ftp pass line.

vim /opt/bitnami/apps/wordpress/htdocs/wp-config.php

Setup PHP7 WordPress Blog on AWS EC2

Setup PHP7 WordPress Blog on AWS EC2

run this:
sudo /opt/bitnami/apps/wordpress/updateip –appurl /

Setup PHP7 WordPress Blog on AWS EC2

//change server to enable update of plugins
sudo chown -Rf daemon:daemon /opt/bitnami/apps/wordpress/htdocs
sudo usermod -a -G daemon bitnami

Setup PHP7 WordPress Blog on AWS EC2

Done.

Sam Deering is a web developer from England (currently living in Australia). In his spare time he enjoys coding, playing chess, reading and investing.

Leave a Reply

Your email address will not be published. Required fields are marked *