How to install ERP Next in Azure VM
To install ERPNext on Azure Cloud using an instance, you can follow these steps:
Create an Azure Virtual Machine:
Log in to the Azure portal (portal.azure.com).
Click on "Create a resource" and search for "Virtual Machine".
Follow the wizard to configure the virtual machine settings, including the operating system (Ubuntu 20.04 LTS is recommended), instance size, storage, networking, and authentication.
Connect to the Virtual Machine:
Once the virtual machine is created, click on it in the Azure portal to access its details.
Under the "Connect" section, choose the appropriate method to connect to the virtual machine (e.g., SSH).
Use the provided credentials to establish a remote connection to the virtual machine.
Set Up Prerequisites:
Update the system packages to their latest versions by running the following command:
sqlCopy codesudo apt update && sudo apt upgrade
Install Required Dependencies:
Install essential dependencies for ERPNext by running the following commands:
Copy codesudo apt install python3-minimal build-essential python3-setuptools python3-dev libffi-dev libssl-dev
Create a New User:
Create a new system user specifically for ERPNext:
Copy codesudo adduser erpnext
Grant Sudo Privileges:
Assign sudo privileges to the new user:
Copy codesudo usermod -aG sudo erpnext
Install Bench:
Bench is a command-line tool used to install and manage ERPNext instances. Install it using pip (Python package installer):
Copy codesudo apt install python3-pip sudo pip3 install frappe-bench
Create a New Bench:
Initialize a new bench by running the following commands:
csharpCopy codesudo su - erpnext bench init erpnext-bench --frappe-branch version-13 cd erpnext-bench bench new-site site1.local
Install ERPNext:
Install ERPNext using the bench command:
sqlCopy codebench get-app --branch version-13 erpnext https://github.com/frappe/erpnext bench --site site1.local install-app erpnext
Set Up ERPNext:
Set up the administrator password and other required details by running:
cssCopy codebench --site site1.local --force reinstall
Configure Network Security:
In the Azure portal, navigate to the virtual machine's Networking settings.
Open the inbound port 80 (HTTP) and 443 (HTTPS) to allow access to the ERPNext instance from the internet.
Access ERPNext:
- Once the installation is complete, you can access ERPNext by opening a web browser and entering the public IP address or domain name of your Azure virtual machine.
Note: These steps provide a general overview of the installation process. Depending on your specific Azure configuration and requirements, you may need to make adjustments or additional configurations.
It's recommended to refer to the official ERPNext documentation for more detailed instructions and troubleshooting tips: erpnext.com/docs