How to Install ERPNext on Google Cloud Platform (Step-by-Step Guide)

Google Cloud Platform(GCP) is a great place to install ERPNext for a business looking for a scalable, secure, and economical ERP system.

 · 4 min read

Google Cloud provides a highly available environment with complete control over resources, along with a predictably priced setup, making it a suitable place to deploy ERPNext.

In this step-by-step tutorial, you will learn how to install ERPNext on GCP from scratch, starting from setting up a virtual machine and a server setup until deploying ERPNext and securing it. No matter if you are a developer, an IT admin, or a businessman, this tutorial will guide you through setting up ERPNext on GCP Cloud confidently.


Why deploy ERPNext on Google Cloud?

When you deploy ERPNext on Google Cloud Platform, you gain access to reliable infrastructure that supports consistent performance and secure remote access. This approach removes dependency on local servers, reduces downtime risks, and allows your ERP environment to scale alongside business growth.

Key Benefit of Hosting ERPNext on Google Cloud Platform

Predictable and Cost-Efficient Pricing

Google Cloud’s pay-as-you-go service ensures better cost management for business organizations. Organizations pay for what they use; there are no extra costs for other services, as there would be with infrastructure investments.

High Availability & Reliable Uptime

Google Cloud provides reliability and availability of the ERP system that is of enterprise standards and is ensured by the presence of redundancies.

Simplified Scalability for Expanding Teams

Content Resources like CPU, memory, and storage can be scaled up or scaled down in an instant, so ERPNext can handle the scaling seamlessly as your business expands. There is No Disruption During Resource Changes The scaling is carried out without impacting the day-to-day running and allows users without interruption.

Future-Ready Infrastructure

Google Cloud is capable of supporting long-term scalable ERPNext with robust security, optimization, and worldwide infrastructure; thus, hosting ERPNext on Google Cloud Platform is very viable.

Prerequisites Before Installing ERPNext on Google Cloud

Before starting your ERPNext installation guide, ensure the following:

  1. Active Google Cloud account with billing enabled
  2. Ubuntu 22.04 LTS for stable ERPNext server configuration
  3. Minimum VM size: 2 vCPUs, 4 GB RAM (higher for production users)
  4. Optional but recommended: domain name for ERPNext production deployment setup
  5. Update the system after SSH access:
  6.  sudo apt update && sudo apt upgrade -y

Google Cloud VM Setup for ERPNext Installation

Create a VM Instance

Use Google Compute Engine to deploy a new VM with Ubuntu 22.04 LTS. Choose a region close to your users to minimise latency.

Set system timezone:

  1. sudo timedatectl set-timezone Asia/Muscat

Firewall Configuration for Secure ERPNext Access

Allow required ports:

  1. sudo ufw allow OpenSSH
  2. sudo ufw allow 80
  3. sudo ufw allow 443
  4. sudo ufw enable

Installing Required Packages and Dependencies

Install Development Tools

  1. sudo apt install -y build-essential git curl wget

Install Additional Dependencies

  1. sudo apt install -y \
  2. software-properties-common \
  3. ca-certificates \
  4. libffi-dev \
  5. libssl-dev

Install Python & Pip

  1. sudo apt install -y python3 python3-dev python3-pip python3-venv

Verify installation:

python3 --version

Install Ansible Using Pip

  1. pip3 install ansible --user

Add to PATH:

  1. echo 'export PATH=$PATH:$HOME/.local/bin' >> ~/.bashrc
  2. source ~/.bashrc

Database Installation and Essential Service Configuration

Install MariaDB Server

  1. sudo apt install -y mariadb-server mariadb-client

Secure MariaDB Configuration

  1. sudo mysql_secure_installation

Follow prompts to set a root password and remove insecure defaults.

Install Node.js, Nginx & Redis

  1. curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
  2. sudo apt install -y nodejs nginx redis-server

Install PDF Converter (for Printing)

  1. sudo apt install -y wkhtmltopdf

Bench Installation and ERPNext Deployment

Install Bench CLI Using Pip

  1. pip3 install frappe-bench --user

Create New Bench Instance

  1. bench init frappe-bench
  2. cd frappe-bench

Install ERPNext App

  1. bench get-app erpnext

Create a New Frappe Site

  1. bench new-site yoursite.domain

Install ERPNext on the Site

  1. bench --site yoursite.domain install-app erpnext

Production Environment Setup for ERPNext

Install Supervisor

  1. sudo apt install -y supervisor

Configure Nginx for Production

  1. sudo bench setup nginx

Enable configuration:

  1. sudo ln -s `pwd`/config/nginx.conf /etc/nginx/conf.d/frappe.conf
  2. sudo nginx -t
  3. sudo systemctl reload nginx

Start Bench in Production Mode

  1. sudo bench setup production $USER

Enable SSL for Secure ERPNext Access

Install and Configure Let’s Encrypt SSL Certificate

  1. sudo bench setup lets-encrypt yoursite.domain

This completes ERPNext SSL configuration for encrypted access.

Essential Configurations After ERPNext Installation

User Roles & First Company Setup

Complete initial company creation and role assignment through the ERPNext web interface.

Email Configuration

  1. bench set-config -g smtp_server smtp.yourprovider.com
  2. bench set-config -g smtp_port 587
  3. bench set-config -g smtp_login your@email.com

Essential Backup & Security Best Practices

Enable scheduled backups:

  1. bench setup backup

Restrict SSH access and use key-based authentication.

Performance & Cost Optimization Strategies

  1. Choose Best Machine Type for Budget
  2. Match VM size to user count and transaction load to avoid unnecessary spend.
  3. Use Snapshots, Auto-Scaling & Monitoring Tools
  4. Create snapshots before upgrades and use Google Cloud Monitoring for system health visibility.

Troubleshooting: Common Issues and How to Fix Them

Database Errors

Restart services and check logs:

  1. bench restart

Bench Build Failures

Clear cache and rebuild:

  1. bench clear-cache
  2. bench build

Port / Firewall Issues

Confirm open ports:

  1. sudo ufw status

Essential Administration Commands

Stop Production & Switch to Development

  1. bench stop
  2. bench start

Drop Site and Remove Database

  1. bench drop-site yoursite.domain

View Database Structure & Logs

  1. bench --site yoursite.domain mariadb
  2. bench logs

Remove ERPNext Application

  1. bench remove-app erpnext

Conclusion

You now have ERPNext running on Google Cloud Platform with a secure, scalable, and production-ready setup. This deployment supports remote teams, ensures data protection, and allows your ERP environment to grow without infrastructure limitations. As you move forward, explore ERPNext modules, refine performance settings, and consider managed ERP hosting to reduce operational overhead while maintaining system reliability.

Following a detailed ERPNext installation guide can be time-consuming and technically complex, requiring careful system preparation, dependency management, configuration, and production setup. Instead of handling every step yourself, partner with Wahni IT Solutions, the best and most trusted ERPNext service provider in Kerala. Our experts ensure a smooth ERPNext installation, secure configuration, performance optimization, custom module development, and cloud deployment helping you launch ERPNext faster, error-free, and ready for growth.

Contact us for inquiries and service information at +91 9535 818 200 / +91 487 222 4060 or email us at info@wahni.com.  








No comments yet.

Add a comment
Ctrl+Enter to add comment