{"id":12666,"date":"2024-08-02T16:58:01","date_gmt":"2024-08-02T11:28:01","guid":{"rendered":"https:\/\/www.skynats.com\/?p=12666"},"modified":"2025-10-28T12:10:49","modified_gmt":"2025-10-28T06:40:49","slug":"how-to-install-frappe-and-erpnext-step-by-step-guide","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/how-to-install-frappe-and-erpnext-step-by-step-guide\/","title":{"rendered":"How To Install Frappe and ERPNext: Step by step guide"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full is-resized\"><img fetchpriority=\"high\" decoding=\"async\" width=\"225\" height=\"225\" sizes=\"(max-width: 225px) 100vw, 225px\" src=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2024\/08\/erp-installation.png\" alt=\"Install ERPNext\" class=\"wp-image-12669\" style=\"width:173px;height:auto\" srcset=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2024\/08\/erp-installation.png 225w, https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2024\/08\/erp-installation-150x150.png 150w\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Frappe is a web application framework that was developed using Python, and ERPNext is an open-source enterprise resource planning system that was constructed on top of Frappe. Install Frappe and ERPNext on Ubuntu 22.04 LTS will be presented to you in this article.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-normal-font-size\" id=\"h-1-update-system-packages\"><strong>1. Update System Packages<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">First, update your package lists and upgrade your installed packages:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update \nsudo apt upgrade -y<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading has-normal-font-size\"><strong>2. Install Required Packages<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Install necessary packages including Python, pip, and others:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install -y python3 python3-pip python3-venv git<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-normal-font-size\"><strong>3. Install and Configure MariaDB<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">ERPNext requires MariaDB. Install and secure MariaDB:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install -y mariadb-server \n\nsudo mysql_secure_installation<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Create a database and user for ERPNext:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install -y mariadb-server \n\nsudo mysql_secure_installation\n\nCreate a database and user for ERPNext:\n\nsudo mysql -u root -p\n\nCREATE DATABASE erpnext;\nCREATE USER 'erpnextuser'@'localhost' IDENTIFIED BY 'yourpassword'; \nGRANT ALL PRIVILEGES ON erpnext.* TO 'erpnextuser'@'localhost'; \nFLUSH PRIVILEGES; \nEXIT;\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading has-normal-font-size\" id=\"h-4-install-redis\"><strong>4. Install Redis<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">ERPNext uses Redis for caching:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install -y redis-server\nsudo systemctl enable redis-server\nsudo systemctl start redis-server<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-normal-font-size\" id=\"h-5-install-node-js-and-yarn\"><strong>5. Install Node.js and Yarn<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -fsSL https:\/\/deb.nodesource.com\/setup_18.x | sudo -E bash -\nsudo apt install -y nodejs \nsudo npm install -g yarn<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-normal-font-size\" id=\"h-6-install-wkhtmltopdf\"><strong>6. Install wkhtmltopdf<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install -y wkhtmltopdf\npip3 install frappe-bench<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-normal-font-size\" id=\"h-7-install-frappe-bench-cli\"><strong>7. Install Frappe Bench CLI<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The Frappe Bench CLI is used to manage Frappe applications.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo -H pip3 install frappe-bench\nbench --version<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-normal-font-size\" id=\"h-8-initialize-frappe-bench-and-install-frappe\"><strong>8. Initialize Frappe Bench and Install Frappe<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>bench init frappe-bench \ncd frappe-bench\nbench start<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-normal-font-size\" id=\"h-nbsp-9-create-a-site-in-frappe-bench\"><strong>&nbsp;9. Create a Site in Frappe Bench<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>bench new-site newsite.com \nbench use newsite.com<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-normal-font-size\" id=\"h-10-install-erpnext\"><strong>10. Install ERPNext<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>bench get-app erpnext --branch version-13 # OR bench get-app https:\/\/github.com\/frappe\/erpnext --branch version-13 bench --site dcode.com install-app erpnext<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-normal-font-size\" id=\"h-11-start-the-bench-server-to-access-your-erpnext-site\"><strong>11. Start the Bench server to access your ERPNext site:<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>bench start<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can now access ERPNext by navigating to http:\/\/localhost:8000 in your web browser. Follow the setup wizard to configure your ERPNext instance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you need expert assistance with &#8220;How to <a href=\"https:\/\/www.skynats.com\/server-management\/\">Install Frappe and ERPNext<\/a>: Step by Step Guide,&#8221; contact Skynats for professional support. Our experienced team will ensure a smooth installation process, guiding you through each step to get your ERP system up and running efficiently.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Frappe is a web application framework that was developed using Python, and ERPNext is an open-source enterprise resource planning system that was constructed on top of Frappe. Install Frappe and ERPNext on Ubuntu 22.04 LTS will be presented to you in this article. 1. Update System Packages First, update your package lists and upgrade your [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[68,5,762],"tags":[889,890],"class_list":["post-12666","post","type-post","status-publish","format-standard","hentry","category-server-management","category-blog","category-ubuntu-22-04","tag-erpnext","tag-frappe"],"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/12666","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=12666"}],"version-history":[{"count":1,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/12666\/revisions"}],"predecessor-version":[{"id":16411,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/12666\/revisions\/16411"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=12666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=12666"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=12666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}