sudo apt-get update -y
sudo apt-get upgrade -y
sudo adduser [frappe-user]
usermod -a -G sudo [frappe-user]
su [frappe-user]
cd /home/[frappe-user]
sudo apt-get install git
sudo apt-get install python3-dev python3.12-dev python3-setuptools python3-pip
sudo apt-get install python3.12-venv
sudo apt-get install software-properties-common
sudo apt install mariadb-server mariadb-client
sudo apt-get install redis-server
sudo apt-get install xvfb libfontconfig wkhtmltopdf
sudo apt-get install libmysqlclient-dev
sudo mysql_secure_installation
- Enter your current password for root (enter for none):
- if you have root pass then input otherwise you can press "Enter" key
- Switch to unix_socket authentication [Y/N]: Y
- Change the root password [Y/n]:
- 'Y' if you want to change
- Remove anonymous user [Y/N]: Y
- Disallow root login remotely? [Y/n]: N
- Remove test database and access to it? [Y/n]: Y
- Reload privilege tables now? [Y/n]: Y
sudo nano /etc/mysql/my.cnf
Copy this below section and past in to your config file
[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
[mysql]
default-character-set = utf8mb4
sudo apt install curl
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
source ~/.profile
nvm install 18
sudo apt-get install npm
sudo npm install -g yarn
sudo pip3 install frappe-bench
sudo pip3 install frappe-bench --break-system-packages
bench init --frappe-branch version-15 frappe-bench
cd frappe-bench
chmod -R o+rx /home/[frappe-user]
bench new-site [site-name]
bench get-app --branch version-15 erpnext
bench install-app erpnext
bench --site [site-name] enable-scheduler
bench --site [site-name] set-maintenance-mode off
sudo apt install python3-venv
python3 -m venv env
source env/bin/activate
sudo /usr/bin/python3 -m pip install ansible --break-system-packages
sudo apt install fail2ban
sudo apt update
sudo apt install nginx
sudo apt update && sudo apt install supervisor
sudo bench setup production [frappe-user]
Standard App
bench get-app --branch [branch-name or version] [app name]
App from git hub account
bench get-app --branch [branch-name] [app-name] [github remote link]