Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764
how to install erpnext on ubuntu
how to install erpnext on ubuntu

Install ERPNext on Ubuntu Server.

Requirement

  • Ubuntu 16.04
  • Python 2.7
  • Root login
  • Domain or Sub-Domain pointed to your server.

Let’s create a user and give it administrator access

sudo adduser ftt
sudo usermod -a -G sudo ftt
sudo su
sudo apt-get update
sudo apt-get upgrade -y

Let’s install some dependencies while login as user ftt

sudo apt-get install python-dev python-minimal git build-essential python-setuptools software-properties-common libmysqlclient-dev libffi-dev libssl-dev python-pip curl wget nano libxrender1 libxext6 xfonts-75dpi xfonts-base
sudo pip install --upgrade pip setuptools

Let’s install MariaDB 10.3

sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://ftp.ubuntu-tw.org/mirror/mariadb/repo/10.3/ubuntu xenial main'
sudo apt-get update
sudo apt-get install mariadb-server-10.3 -y

You will be asked to set a root password. Choose a strong one but try to remember it.

Edit the following file

sudo nano /etc/mysql/my.cnf

Add the following lines to your my.cnf file

[mysqld]
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

We are setting up a production server so let’s download Supervisor, wkhtmltopdf, Nginx, Redis & Node.js

curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs redis-server nginx supervisor
sudo npm install -g yarn
sudo systemctl start nginx
sudo systemctl enable nginx
sudo systemctl start redis-server
sudo systemctl enable redis-server

wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
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

We need to change some permission

sudo chown -R ftt:ftt /home/ftt/.config

Let’s install bench & install erpnext

git clone https://github.com/frappe/bench bench-repo
sudo pip install -e bench-repo
sudo bench setup sudoers ftt
sudo chown -R ftt:ftt /home/ftt/.cache
bench init erpnext
cd erpnext
bench new-site erp.freetechtorial.com
bench get-app erpnext https://github.com/frappe/erpnext
bench --site erp.freetechtorial.com install-app erpnext
chmod o+x /home/ftt/bench-repo/
sudo bench setup production ftt

You will be asked for the MySQL root password. It will also ask you to set a new password for the administrator account. You will need this password later to log into the dashboard.

Now start supervisor

sudo systemctl start supervisor
sudo systemctl enable supervisor

Now, you will be able to access ERPNext on http://erp.freetechtorial.com

Install Let-Encrypt Certificate on the domain

bench config dns_multitenant on
sudo bench setup lets-encrypt erp.freetechtorial.com
bench enable-scheduler

sudo reboot

Now you can access your ERP from https://erp.freetechtorial.com

login information

User: Administrator
Password: You should know! 🙂

Note: Execute all commands from user ftt.

Note: Change user ftt with your user name and change the domain erp.freetechtorial.com to your domain. You can use a subdomain or the main domain.

This tutorial is tested on Ubuntu 16.04

Previous articleRedirect utilizing .htaccess strategies
Next articleLearn how to take away all submit from tumblr

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

LEAVE A REPLY
Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/freetech/public_html/wp-includes/formatting.php on line 4764

Please enter your comment!
Please enter your name here