- 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.
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
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: www.ssllabs.com/ssltest/…
Test Pagespeed module: ismodpagespeedworking.co…
Test your server response time: www.bytecheck.com
Should be 500ms or under. Ideally under 200ms.