How to install Frappe Framework on Ubuntu 20.x

by | Jun 20, 2021 | Frappe Framework, Ubuntu | 0 comments

Make server upto date

sudo apt update
sudo apt -y upgrade

Install python 3.x

sudo apt -y install python3-minimal

Check Python version

python3 -V

Install other dependencies

sudo apt -y install git build-essential software-properties-common python3-setuptools python-dev libffi-dev libssl-dev vim
sudo python
sudo pip install --upgrade pip setuptools
sudo pip install ansible

Install MariaDB

sudo apt update && sudo apt upgrade
sudo apt -y install software-properties-common
sudo apt-key adv --fetch-keys ''
sudo add-apt-repository 'deb [arch=amd64] focal main'
sudo apt update
sudo apt install mariadb-server mariadb-client

Secure MariaDB

sudo mysql_secure_installation

Enter te details based on the questions displayed on the screen:-

Check Status of MariaDB

systemctl status mysql

Setup Barracuda storage engine for that open and edit MariaDB config file

sudo vi /etc/mysql/my.cnf

Once the editor is open place the following code by pressing the letter “i” {Insert}, paste the code and save by clicking Esc key followed by typing :w!  and press CTRL+Z to exit from the editor 

character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci

default-character-set = utf8mb4

Install and enable Nginx, Node.js and Redis

sudo curl --silent --location | sudo bash -
sudo apt -y install nginx nodejs redis-server
sudo systemctl start nginx
sudo systemctl enable nginx
sudo systemctl start redis-server
sudo systemctl enable redis-server

Install HTMl to PDF Converter

sudo apt -y install libxrender1 libxext6 xfonts-75dpi xfonts-base
sudo tar -xf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz -C /opt
sudo ln -s /opt/wkhtmltox/bin/wkhtmltopdf /usr/bin/wkhtmltopdf
sudo ln -s /opt/wkhtmltox/bin/wkhtmltoimage /usr/bin/wkhtmltoimage

To check the version of wkhtmltopdf

wkhtmltopdf -V

Now we need to install the bench
Bench is a command line utility provided by Frappe to install and manage the Frappe application on a Unix-based system for both development and production purposes. Bench can also create and manage Nginx and supervisor configurations. Create a new user to run Bench processes in the isolated environment.







By Aadhil PM



Submit a Comment

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