ERP-NEXT INSTALLATION ON UBUNTU 18.04 LTS
apt update
apt -y upgrade
apt -y install python-minimal
python -V
apt -y install git build-essential software-properties-common python-setuptools python-dev libffi-dev libssl-dev vim
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install --upgrade pip setuptools
pip install ansible
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://mirror.nodesdirect.com/mariadb/repo/10.2/ubuntu xenial main'
apt update
apt -y install mariadb-server libmysqlclient-dev
--------------------------------------------
vi /etc/mysql/my.cnf
[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
--------------------------------------------
systemctl restart mariadb
systemctl enable mariadb
mysql_secure_installation
curl --silent --location https://deb.nodesource.com/setup_8.x | sudo bash -
apt -y install nginx nodejs redis-server
systemctl start nginx
systemctl enable nginx
systemctl start redis-server
systemctl enable redis-server
apt -y install libxrender1 libxext6 xfonts-75dpi xfonts-base
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar -xf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz -C /opt
ln -s /opt/wkhtmltox/bin/wkhtmltopdf /usr/bin/wkhtmltopdf
ln -s /opt/wkhtmltox/bin/wkhtmltoimage /usr/bin/wkhtmltoimage
wkhtmltopdf -V
adduser bench --home /opt/bench
usermod -aG sudo bench
su - bench
git clone https://github.com/frappe/bench bench-repo
sudo pip install -e bench-repo
sudo npm install -g yarn
bench init erpnext && cd erpnext
sudo chown -R bench:bench .config/
apt install virtualenv
rm -rf erpnext
bench init erpnext && cd erpnext
------------------------------------------------------------------
# mysql -uroot -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 40
Server version: 10.1.41-MariaDB-0ubuntu0.18.04.1 Ubuntu 18.04
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> GRANT ALL ON *.* TO erpnext@localhost IDENTIFIED BY 'mypassw0rd';
Query OK, 0 rows affected (0.03 sec)
MariaDB [(none)]> GRANT all privileges on *.* to 'root'@'localhost' IDENTIFIED BY 'mypassw0rd';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> \q
-----------------------------------------------------------------------------
bench new-site --db-name erpnext erp.site.io
bench get-app erpnext https://github.com/frappe/erpnext
bench start
Enjoy Learning:
Naresh Mahato

Comments
Post a Comment