Setting up Frappe Bench VERSION 15 IN UBUNTU 22.04 – A

Frappe V15

Step-by-Step Guide: Setting Up Frappe Bench version 15

Update and Upgrade Packages:

sudo apt-get update -y
sudo apt-get upgrade -y

Create a New User (e.g., bench user):

sudo adduser [frappe-user]
usermod -aG sudo [frappe-user]
su [frappe-user]
cd /home/[frappe-user]

Install Required Packages:

# Install GIT
sudo apt-get install git

# Install Python
sudo apt-get install python3-dev python3.10-dev python3-setuptools python3-pip python3-distutils

# Install Python Virtual Environment
sudo apt-get install python3.10-venv

# Install Software Properties Common
sudo apt-get install software-properties-common

# Install MariaDB
sudo apt install mariadb-server mariadb-client

# Install other dependencies
sudo apt-get install redis-server xvfb libfontconfig wkhtmltopdf libmysqlclient-dev

Configure MYSQL Server:

sudo mysql_secure_installation
# Follow the prompts, including setting a new MySQL root password.
# Adjust security options according to your preferences.

Edit MYSQL Default Config File:

sudo nano /etc/mysql/my.cnf

## Add the items below at the end of the line and save

[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci

[mysql]
default-character-set = utf8mb4

Restart the MYSQL Server:

sudo service mysql restart

Install CURL, Node, NPM, and Yarn:

sudo apt install curl
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
source ~/.profile
nvm install 18.0.0
sudo apt-get install npm
sudo npm install -g yarn
sudo pip3 install frappe-bench

Install Bench:

bench init frappe-bench
cd frappe-bench

Change User Directory Permissions:

chmod -R o+rx /home/[frappe-user]

Create a New Site:

bench new-site [site-name]

Download Apps to Install:

Find apps in the Frappe Git Repository.

bench get-app erpnext

Install Apps on the Site:

bench --site [site-name] install-app erpnext

You may visit this link from the official frappe documentation.Please

Please check out more of our post from https://unsungcoder.com/index.php/blog/. Thank You

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
?>