Step #0 – Preparing the Server
Here are some tweaks you can do in case you have control of your web hosting environment, these tweaks will make your life a little easier. If you do not have control of your web server, you can feel free to skip this section.
It’s a great thing to install the latest and stable version of Mod_Cloudflare on the Apache server, and this will ensure that your Cloudflare will work transparently by making sure your IP is logged correctly in both Apache logs and web applications. In addition, Mod_Cloudflare is now gonna also make sure that Flexible SSL will work transparently.
Step #1 – Install the WordPress Plugin
For you to be able to install the plugin, you are gonna need to login to your WordPress dashboard, go to the plugins section, and search for ‘Cloudflare’ and select the WordPress Plugin.
Once you’ve installed the plugin, click the ‘Activate Plugin’ button, and then you may go ahead and configure the plugin by going to Settings and afterwards clicking the CloudFlare menu option.
You are gonna be greeted by the login page once you can enter in your credentials.
To find your API key, once you look in the drop down in the top right corner of your Cloudflare dashboard, you need to click “My Settings”. the API key should be there under the Account > API Key section.
You are gonna find the Global API Key Panel on that page.
After you’ve typed in your Global API Key into the WordPress dashboard, click “Save API Credentials” and you’ll be ready to go.
Step #2 – Load Optimized Defaults
Now you can enable the Optimized Defaults in the WordPress plugin so Cloudflare will work optimally on your platform. You may do this by clicking the “Apply” button next to the setting.
Automatic Cache Purge should allow you to automatically flush the Cloudflare Cache when your WordPress site appearance is updated, you can enable this too.
Step #3 – Conclusion
After you’ve done all the steps, you can now go and improve your security and performance by customizing your Cloudflare configuration.