installation Guideline for frappe

Topics related to ERPNext or Frappe framework
Post Reply
Mohammedaln
Posts: 10
Joined: Sat Nov 02, 2019 3:41 pm

installation Guideline for frappe

Post by Mohammedaln » Mon Aug 17, 2020 7:56 am

1
updating OS

Code: Select all

>> sudo apt-get update && sudo apt-get upgrade
2
install python and it is libraries and pip tool for managing :

Code: Select all

>> sudo apt -y install python-minimal
>> python -V
>> sudo apt -y install git build-essential python-setuptools python-dev libffi-dev libssl-dev
>> wget https://bootstrap.pypa.io/get-pip.py
>> sudo python get-pip.py
>> sudo python3 get-pip.py
>> sudo apt-get install python3-distutils
>> sudo pip install --upgrade pip setuptools
>> sudo pip3 install --upgrade pip setuptools
>> sudo pip install ansible
>> sudo pip3 install ansible

3
install curl and yarn

Code: Select all

>> sudo apt -y install curl
>> curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
>> echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
>> sudo apt -y update && sudo apt -y install yarn

4
installing mariadb database

Code: Select all

>> sudo apt -y install mariadb-server libmysqlclient-dev
>> sudo nano /etc/mysql/my.cnf
//copy to the file
----------
[mysqld]
innodb-file-format=barracuda
innodb-file-per-table=1
innodb-large-prefix=1
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci

[mysql]
default-character-set = utf8mb4
-------------
>> sudo systemctl restart mariadb
>> sudo systemctl enable mariadb
>> sudo mysql_secure_installation
//set all to yes
>> sudo mysql -u root -p
*enter your password*
- update mysql.user set plugin = 'mysql_native_password' where User='root';
- FLUSH PRIVILEGES;

//change pass
- use mysql;
- update user set authentication_string=PASSWORD("your_password") where User='root';
- flush privileges;
- quit
5
installing nodejs nginx redis-server

Code: Select all

>> sudo curl --silent --location https://deb.nodesource.com/setup_8.x | sudo bash -
>> sudo apt-get update && sudo apt-get install yarn
>> sudo apt-get install -y nodejs
>> 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

6
install libxrender1 and wkhtmltopdf wkhtmltoimage libraries for reporting and printing :

Code: Select all

>> sudo apt -y install libxrender1 libxext6 xfonts-75dpi xfonts-base
>>sudo apt-get install libxrender1
>> wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
>> tar -xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
>> cd wkhtmltox/bin/
>> sudo mv wkhtmltopdf /usr/bin/wkhtmltopdf
>> sudo mv wkhtmltoimage /usr/bin/wkhtmltoimage
>> sudo chmod a+x /usr/bin/wkhtmltopdf
>> sudo chmod a+x /usr/bin/wkhtmltoimage
>>wkhtmltopdf -V
>> cd

7
create virtual environment for installing bench and erpnext :

Code: Select all

>> mkdir erpnext
>> cd erpnext2/
>> sudo apt install virtualenv
>> virtualenv .
>> source ./bin/activate

8
install bench from github

Code: Select all

>>git clone https://github.com/frappe/bench bench-repo
>>sudo pip install -e bench-repo
>>sudo pip3 install -e bench-repo

>> bench init --frappe-branch version-12 --frappe-path https://github.com/frappe/frappe.git frappe-bench
>> cd  frappe-bench
>> bench get-app --branch version-12 https://github/frappe/erpnext.git

9
create new site and install app

Code: Select all

>> cd bench-name
>> bench new-site erpnext-site
>> bench --site erpnext-site install-app erpnext
>> bench use erpnext-site
>> bench start



References:
https://speedysense.com/install-erpnext ... ntu-18-04/

Post Reply