Hello everyone today i will show you how to install ERPNEXT step by step
**==> First of all you should make a new installation of Ubuntu 16 or 18 lts **
==> in my case i have Ubuntu 16.04 lts server installed on Virtualbox 6
**==> i will use SSH to make this installation **
==> in your Virtualbox machine tape:
ip a
**==> to get your ip address **
==> i will use putty for SSH connexion
==> letβs move to Root account:
sudo su
----- Test the internet connexion -----
ping www.google.com
----- update and upgrade the system ------
apt update
apt upgrade
----- Fix Ip ------------
iface enp0s6 inet static
address 192.168.1.10
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 1.1.1.1 8.8.8.8
----- Reboot the system -----
reboot
----- Test the internet connexion -----
ping www.google.com
----- create an user named FRAPPE -----
==>you can use any name but i will use FRAPPE
adduser frappe
**==> (you will be promoted to give this new use a Password, i will use βsysuserpassβ) **
==> make our user parte of sudoβs group
usermod -aG sudo frappe
----- installation prerequisites ------
apt install build-essential -y
apt install software-properties-common -y
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xF1656F24C74CD1D8
apt install dirmngr -y
apt install curl -y
----- installation MariaDb -----
==> use this link, will help you to install the last version of MariaDb:
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
β For Ubuntu 16
sudo add-apt-repository βdeb [arch=amd64,arm64,i386,ppc64el] ftp.cc.uoc.gr - University of Crete / Computer Center xenial mainβ
β For Ubuntu 18
sudo add-apt-repository βdeb [arch=amd64,arm64,ppc64el] Index of /mirror/mariadb/repo/10.4/ubuntu/ bionic mainβ
sudo apt update
apt install mariadb-client mariadb-server -y
----- Configuration MariaDb -----
vim /etc/mysql/my.cnf
===== Edit MariaDb configuration =====
==> search for this line and add #
#skip-external-locking
==> search for this line and change 127.0.0.1 to 0.0.0.0
bind-address = 0.0.0.0
==> under [mysqld] add this lines, in the end of [mysql]
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
under [mysql] add this line
default-character-set = utf8mb4
sudo systemctl restart mariadb
sudo systemctl enable mariadb
mysql_secure_installation
**==> put Y for all the question, the script will ask you for mysql root password **
==> i will use βpassmysqlβ
******* Test MariaDb**
mysql -u root -p
******* Test MariaDb with FRAPPE**
su - frappe
mysql -u root -p
----- create database ERPNEXT with Frappe user-----
create database erpnext;
show databases;
\q
----- installation nginx -----
sudo su
apt install nginx -y
********* test nginx**
http://192.168.1.10
you should see a welcome to inginx message
----- installation prerequisites 2 ------
curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
apt install nodejs -y
----- Installing npm -------
npm install npm -g
test node and npm version
node -v && npm -v
for me (in 8 Nov 2019)
v10.17.0
6.13.0
------- installation yarn -------
NB: make sure that the installation is good
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 update
sudo apt install yarn -y
yarn --version
for me (in 8 Nov 2019)
1.19.1
apt install redis-server -y
******* testing redis
redis-cli
127.0.0.1:6379> ping
PONG
apt install wkhtmltopdf -y
apt install git-core -y
apt install python-pip -y
pip install --upgrade setuptools
apt-get install python2.7-dev libmysqlclient-dev
pip install MySQL-python --no-use-wheel
apt install supervisor -y
==> Reboot Server
reboot
==> now we will use ower user (Frappe)
su - frappe
cd
git clone GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps bench-repo
sudo pip install -e bench-repo
bench init --frappe-branch version-12 --python /usr/bin/python2.7 frappe-bench && cd frappe-bench
==> now you should open two SSH sesion, one for the installation and the other one for starting bench
==> in ssh sesion two
su - frappe
cd
cd frappe-bench
bench start
==> in the sesion one you should be in frappe-bench directory
bench get-app erpnext GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)
**==> myerpnext.local is the name of your site **
**==> erpnext is the name of the database **
**==> passmysql is the password you tape it after mysql_secure_installation **
==> myerppass is your admin password, you will use it in the browser
bench new-site myerpnext.local --db-name erpnext --mariadb-root-password passmysql --admin-password myerppass --install-app erpnext --verbose --force
sudo bench setup production frappe
sudo systemctl reload nginx
==> it is very good to reboot the systeme after this
reboot
==> open you ssh after rebooting
su - frappe
sudo supervisorctl stop all
sudo supervisorctl start all
**==> now brows to your server ip (http://192.168.1.10) **
==> if everything is good you will be promoted to enter username and password
==> the user is Administrator and the password is myerppass
iβm her for your questions
good luck everyone