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.
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:
- Active Google Cloud account with billing enabled
- Ubuntu 22.04 LTS for stable ERPNext server configuration
- Minimum VM size: 2 vCPUs, 4 GB RAM (higher for production users)
- Optional but recommended: domain name for ERPNext production deployment setup
- Update the system after SSH access:
- 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:
- sudo timedatectl set-timezone Asia/Muscat
Firewall Configuration for Secure ERPNext Access
Allow required ports:
- sudo ufw allow OpenSSH
- sudo ufw allow 80
- sudo ufw allow 443
- sudo ufw enable
Installing Required Packages and Dependencies
Install Development Tools
- sudo apt install -y build-essential git curl wget
Install Additional Dependencies
- sudo apt install -y \
- software-properties-common \
- ca-certificates \
- libffi-dev \
- libssl-dev
Install Python & Pip
- sudo apt install -y python3 python3-dev python3-pip python3-venv
Verify installation:
python3 --version
Install Ansible Using Pip
- pip3 install ansible --user
Add to PATH:
- echo 'export PATH=$PATH:$HOME/.local/bin' >> ~/.bashrc
- source ~/.bashrc
Database Installation and Essential Service Configuration
Install MariaDB Server
- sudo apt install -y mariadb-server mariadb-client
Secure MariaDB Configuration
- sudo mysql_secure_installation
Follow prompts to set a root password and remove insecure defaults.
Install Node.js, Nginx & Redis
- curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
- sudo apt install -y nodejs nginx redis-server
Install PDF Converter (for Printing)
- sudo apt install -y wkhtmltopdf
Bench Installation and ERPNext Deployment
Install Bench CLI Using Pip
- pip3 install frappe-bench --user
Create New Bench Instance
- bench init frappe-bench
- cd frappe-bench
Install ERPNext App
- bench get-app erpnext
Create a New Frappe Site
- bench new-site yoursite.domain
Install ERPNext on the Site
- bench --site yoursite.domain install-app erpnext
Production Environment Setup for ERPNext
Install Supervisor
- sudo apt install -y supervisor
Configure Nginx for Production
- sudo bench setup nginx
Enable configuration:
- sudo ln -s `pwd`/config/nginx.conf /etc/nginx/conf.d/frappe.conf
- sudo nginx -t
- sudo systemctl reload nginx
Start Bench in Production Mode
- sudo bench setup production $USER
Enable SSL for Secure ERPNext Access
Install and Configure Let’s Encrypt SSL Certificate
- 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
- bench set-config -g smtp_server smtp.yourprovider.com
- bench set-config -g smtp_port 587
- bench set-config -g smtp_login your@email.com
Essential Backup & Security Best Practices
Enable scheduled backups:
- bench setup backup
Restrict SSH access and use key-based authentication.
Performance & Cost Optimization Strategies
- Choose Best Machine Type for Budget
- Match VM size to user count and transaction load to avoid unnecessary spend.
- Use Snapshots, Auto-Scaling & Monitoring Tools
- 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:
- bench restart
Bench Build Failures
Clear cache and rebuild:
- bench clear-cache
- bench build
Port / Firewall Issues
Confirm open ports:
- sudo ufw status
Essential Administration Commands
Stop Production & Switch to Development
- bench stop
- bench start
Drop Site and Remove Database
- bench drop-site yoursite.domain
View Database Structure & Logs
- bench --site yoursite.domain mariadb
- bench logs
Remove ERPNext Application
- 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. Login to start a new discussion Start a new discussion