Installing WordPress on Google Cloud can be done in three steps:
1.) Deploy a WordPress instance
The first thing you will have to do is sign up for Google Cloud. Setting up an account is easy and will only take a few minutes of your time. After setting up the account we would recommend you verify the account using your bank.
R4500 of promotional credits are offered to you if you verify your account and Google Cloud also offers a free trial.
After you made the decision for making use of the free trial or not, you should create a new project. This is done on your dashboard by accessing the menu and selecting the Marketplace option:
A new page will appear where you should use the search feature and look for WordPress. After searching WordPress, a list of WordPress configurations, you can deploy should show up. Scroll down and look for the WordPress option with Google Click to Deploy and select this option.
After selecting this option, a screen displaying the estimated costs and what stack the package uses will show. The stack includes 1 CPU, 2 GB of RAM, and 10 GB of storage for approximately R205 per month. This will easily run a website that receives a moderate amount of traffic.
If this option is right for you, click on LAUNCH ON COMPUTE ENGINE to proceed with your setup.
2.) Create and configure your new project:
After clicking on LAUNCH ON COMPUTE ENGINE, Google Cloud will ask you to select a project and give your project a name, and then click Create.
Once you created the project, the server will take a few minutes to set everything up. While the server is busy you can change the configuration for your new Google Cloud instance. This will allow you to change the settings to meet your specific requirements and will either reduce or increase the associated cost.
We recommend not using less than 2 GB of RAM. The default setup uses a shared CPU and if you are anxious about the performance you can change the setting at Machine type and choose 1vCPU. This includes 3.75 GB of memory.
To improve your performance, even more, we recommend changing the Boot disk type from Standard Persistent Disk to SSD Persistent Disk.
Before proceeding to the next step make sure to choose a region for your server, tick the Install phpMyAdmin option, and enable both HTTP and HTTPS traffic.
When you have done all the above and you are happy, click the Deploy button, this may take a few minutes. After this is done, you can access your new installation credentials from the deployment page. We recommend you change your MySQL and WordPress admin users and passwords.
3.) Map a domain and set up an SSL certificate:
At this stage, your website is up and running but is only accessible through an IP address. To change this, you will have to map a custom domain to it. You can purchase a domain from any domain registrar if you do not have one already.
Finally, you need to set up an SSL certificate for your website. Although this last step is only needed if you enabled HTTPS, which we do recommend. Your website is now active and ready for the public.