Skip to content

Instantly share code, notes, and snippets.

@LinuxlinkedBD
Created May 18, 2021 22:25
Show Gist options
  • Save LinuxlinkedBD/938f7f60ed5b388eee82d38d97976504 to your computer and use it in GitHub Desktop.
Save LinuxlinkedBD/938f7f60ed5b388eee82d38d97976504 to your computer and use it in GitHub Desktop.
How to Install ERPNext || An Open Source ERP Solution for SMEs
If you need complete ERPNext setup, ping me on below contacts:
Telegram: linuxlinked
email: [email protected]
WhatsApp: +8801720903155
Skype:live:.cid.c0dc316b9d727d5e
YouTube: https://youtu.be/YCmBKg5X95E
########################################################################################################################################
#!/bin/bash
sudo apt-get update
sudo apt update
sudo apt-get install software-properties-common
sudo apt update
sudo apt install mariadb-server
sudo apt install python3-mysqldb libmysqlclient-dev
sudo mysql_secure_installation
sudo mysql
CREATE DATABASE erpnext;
SHOW DATABASES;
GRANT ALL PRIVILEGES ON *.* TO 'erpnext'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
SELECT host, user, Super_priv FROM mysql.user;
FLUSH PRIVILEGES;
exit
sudo systemctl stop mariadb
sudo nano /etc/mysql/mariadb.conf.d/mariadb.cnf
[mysqld]
# GENERAL #
user = mysql
default-storage-engine = InnoDB
socket = /var/lib/mysql/mysql.sock
pid-file = /var/lib/mysql/mysql.pid
# MyISAM #
key-buffer-size = 32M
myisam-recover = FORCE,BACKUP
# SAFETY #
max-allowed-packet = 256M
max-connect-errors = 1000000
innodb = FORCE
# DATA STORAGE #
datadir = /var/lib/mysql/
# BINARY LOGGING #
log-bin = /var/lib/mysql/mysql-bin
expire-logs-days = 14
sync-binlog = 1
# REPLICATION #
server-id = 1
# CACHES AND LIMITS #
tmp-table-size = 32M
max-heap-table-size = 32M
query-cache-type = 0
query-cache-size = 0
max-connections = 500
thread-cache-size = 50
open-files-limit = 65535
table-definition-cache = 4096
table-open-cache = 10240
# INNODB #
innodb-flush-method = O_DIRECT
innodb-log-files-in-group = 2
innodb-log-file-size = 512M
innodb-flush-log-at-trx-commit = 1
innodb-file-per-table = 1
innodb-buffer-pool-size = 5462M
innodb-file-format = barracuda
innodb-large-prefix = 1
collation-server = utf8mb4_unicode_ci
character-set-server = utf8mb4
character-set-client-handshake = FALSE
max_allowed_packet = 256M
# LOGGING #
log-error = /var/lib/mysql/mysql-error.log
log-queries-not-using-indexes = 0
slow-query-log = 1
slow-query-log-file = /var/lib/mysql/mysql-slow.log
# CONNECTIONS #
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
bind-address = 0.0.0.0
[mysql]
default-character-set = utf8mb4
[mysqldump]
max_allowed_packet=256M
#Save and close the file
#browse to localhost:8000/
@LinuxlinkedBD
Copy link
Author

Screenshot from 2021-05-16 21-18-36
Screenshot from 2021-05-17 23-37-22
Screenshot from 2021-05-17 23-37-23
Screenshot from 2021-05-17 23-37-24
Screenshot from 2021-05-17 23-37-25
Screenshot from 2021-05-17 23-37-29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment