Upgrade EC2 AWS to PHP 7 to Speed Up WordPress Site

Howto upgrade your wordpress site from PHP 5.5+ to PHP 7. Awesomeness of PHP 7 in my other post I showed it having an instant 1.4 second faster speed increase when I upgraded.

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

This should only take you around 1 hour to fully upgrade the server instance and migrate the wordpress site over. I recommend doing a bit of testing so might be slightly longer, probably another hour.

php 7

Bitnami LAMP 7 stack

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 text

user: root
mysql: bitnami
pass: bitnami

Upgrade EC2 AWS to PHP 7

Upgrade EC2 AWS to PHP 7

Upgrade EC2 AWS to PHP 7

wp migration all-in-one, if it fails export then disable total cache

change url of default from /wordpress to /
sudo /opt/bitnami/apps/wordpress/updateip –appurl /

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

change wp-config.
– password
– method to “direct”

That’s it!


Sam Deering

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 *