- Google cloud,
- WordPress, Ubuntu 17.10, Apache2, , MariaDB, PHP7, Letsencrypt
- Pagespeed
- Enable Swap
- WordPress plugins.
- Varnish + plugin
- Cloudflare
- Test
I started by.
- Setup free instance of the Google cloud Compute Engine. Ubuntu 17.10 image.
- Follow these instructions.
https://websiteforstudents.com/install-wordpress-on-ubuntu-17-04-17-10-with-apache2-mariadb-php-and-lets-encrypt/
With one small change when installing the SSL certificate. The guide did not work. I had to change the command to the following:
sudo certbot --authenticator webroot --installer apache -m [email protected] -d w.jphe.in
3. Install pagespeed using this guide:
First, go to the PageSpeed download page and choose the file you need. We’re using a 64-bit Ubuntu server and we’ll install the latest stable version. Download it using wget:
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_amd64.deb
Then, install it with the following commands:
dpkg -i mod-pagespeed-stable_current_amd64.deb apt-get -f install
Restart Apache for the changes to take effect:
systemctl restart apache2
4. Enable swap
https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04
5. Install WordPress and Jetpack (Image CDN), WP Super Cache (expert mode), Adaptive Images for WordPress, P3 (Plugin Performance Profiler), Really Simple SSL. WP-Smush, WP-Optimize. Duplicator
6. Varnish? Varnish WordPress plugin?
7. Set up cloudflare account.
8. Test
Test SSL: https://www.ssllabs.com/ssltest/index.html
Test Pagespeed module: https://ismodpagespeedworking.com/
Test your server response time: http://www.bytecheck.com
Should be 500ms or under. Ideally under 200ms.
