Manual Install ERPNext
I'm going to explain how to install manually install ERPNext.
·
1 min read
1. Update & Upgrade System
sudo apt-get update -y
sudo apt-get upgrade -y
2. Create Frappe User
sudo adduser frappe
usermod -aG sudo frappe
su frappe
cd /home/frappe
3. Install Dependencies
sudo apt install git curl python3-dev python3.10-dev python3-setuptools python3-pip python3-distutils -y
sudo apt install python3.10-venv -y
sudo apt install software-properties-common -y
sudo apt install mariadb-server mariadb-client -y
sudo apt install redis-server -y
sudo apt install xvfb libfontconfig wkhtmltopdf -y
sudo apt install libmysqlclient-dev -y
4. Secure MariaDB Installation
sudo mysql_secure_installation
5. Configure MariaDB Character Set
Edit the MariaDB config file:
sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf
Add/update the following:
[mysql]
default-character-set = utf8mb4
[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
Restart MySQL:
sudo service mysql restart
6. Install Node.js via NVM & Yarn
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
source ~/.profile
nvm install 16.15.0
sudo apt-get install npm -y
npm install -g yarn
7. Install Frappe Bench
sudo pip3 install frappe-bench
8. Initialize Bench & Get ERPNext App
bench init frappe-bench --version version-14 --verbose
bench get-app erpnext --branch version-14 --overwrite
9. Setup Production
sudo bench setup production frappe
chmod -R o+rx /home/frappe
sudo -A systemctl restart supervisor
10. Set MySQL Root Password
use mysql;
set password for 'root'@'localhost' = password('randompassword');
flush privileges;
quit
11. Configure Supervisor
Edit supervisor config:
sudo nano /etc/supervisor/supervisord.conf
Update the following lines:
chmod=0760
chown=frappe:frappe
Source: Echobyte Technologies Blog
No comments yet. Login to start a new discussion Start a new discussion