Install WordPress on Google Compute Engine
Looking for installing WordPress on Google Compute Engine? Here is the complete process in simple words:
- Go to Google Developers Console and create a new project.
- While creating a new project on Google Cloud, you can choose a preferred data center location. Default one is US, and the other available option EU. This setting is available under the “Show advanced options” on the project creation popup.
- Make sure billing is enabled for this newly created project. You need to provide your credit card information in order to enable billing on Google Developers Console.
- Now, from the left navigation menu, select the option “Click to deploy”.
This would open the complete list of packages available for click-to-deploy on Google Compute Engine. You would be surprised to see the ease of setting up Google Compute Engine. Here you can find several popular packages and stacks like LEMP stack, LAMP stack, MEAN stack, Ruby Stack, Apache Hadoop, GitLab, Aerospike, Drupal, WordPress, MongoDB, Cassandra etc. Choose WordPress from the list.
- The next page would ask you to provide required parameters for your WordPress installation, including MySQL Admin and WordPress DB passwords.
- By default, WordPress would be installed on n1-standard-1 (1 vCPU, 3.75 GB RAM) instance with an additional 100 GB data disk. You can configure your machine type according to your server need.
- Provide all required parameters, and hit the “Deploy WordPress” button. This would start the deployment process, and should take few minutes to complete.
- Next step is to open the HTTP port to your server, which would allow HTTP traffic on your WordPress installation. To complete this step, Go to your VM instances list and click on the external IP of recently created instance. This would prompt you to enable HTTP and HTTPS traffic.
- Once you enable the HTTP traffic successfully, your WordPress site would be accessible through the IP address mentioned in the previous step.
- Open the provided IP address in a new tab, and you would notice the standard WordPress installation wizard. This confirms successful installation of WordPress on your instance. Yay!
Your next steps should be setting up WordPress by completing the installation wizard, choosing the right theme and plug-ins. You should also map your custom domain to Google Cloud project (see this guide for setting up custom domains on Compute Engine projects).