ERPNext Installation

01. Setup Ubuntu Server 22.04
02. Set timezone: timedatectl set-timezone \\"Europe/Athens\\"
03. Update server and reboot: sudo apt-get update -y ; sudo apt-get upgrade -y
03. Create a user to hold the site: sudo adduser frappe-user ; usermod -aG sudo frappe-user ; sudo su - frappe-user
04. Install git: sudo apt-get install git
05. Install Python: sudo apt-get install python3-dev python3.10-dev python3-setuptools python3-pip python3-distutils
06. Install Python Virtual Environment: sudo apt-get install python3.10-venv
07. Install Software Properties Common: sudo apt-get install software-properties-common
08. Install MariaDB: sudo apt install mariadb-server mariadb-client
09. Install Redis Server: sudo apt-get install redis-server
10. Install other necessary packages: sudo apt-get install xvfb libfontconfig wkhtmltopdf ; sudo apt-get install libmysqlclient-dev
11. Setup the server: sudo mysql_secure_installation
12. Edit the MySQL default config file: sudo vim /etc/mysql/my.cnf
     12.a. Add the below code block at the bottom of the file:
             [mysqld]
         character-set-client-handshake = FALSE
         character-set-server = utf8mb4
         collation-server = utf8mb4_unicode_ci
         [mysql]
         default-character-set = utf8mb4
13. Restart the MySQL server: sudo service mysql restart
14. Install CURL: sudo apt install curl
15. Install Node: curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash ; source ~/.profile ; nvm install 16.15.0
16. Install NPM: sudo apt-get install npm
17. Install Yarn: sudo npm install -g yarn
18. Install Frappe Bench: sudo pip3 install frappe-bench
19. Initialize Frappe Bench: bench init --frappe-branch version-14 frappe-bench
20. Go to Frappe Bench directory: cd frappe-bench/
21. Change user directory permissions: chmod -R o+rx /home/frappe-user/
22. Create a New Site: bench new-site site1.local (Όπου site1.local, το όνομα του site)
23. Download the necessary apps to our server
      23.a. Download the payments apps: bench get-app payments
      23.b. Download the main ERPNext app: bench get-app --branch version-14 erpnext
      23.c. Download the HR & Payroll app (optional): bench get-app hrms
      23.d. Download the ecommerce integrations apps (optional): bench get-app ecommerce_integrations --branch main
      23.e. Check if all the apps are correctly downloaded: bench version --format table
24. Install the main ERPNext app: bench --site site1.local install-app erpnext (Όπου site1.local, το όνομα του site)
25. Install the HR & Payroll app (optional): bench --site site1.local install-app hrms (Όπου site1.local, το όνομα του site)
26. Install the ecommerce integrations apps (optional): bench --site site1.local install-app ecommerce_integrations (Όπου site1.local, το όνομα του site)
SETUP PRODUCTION SERVER
27. Enable scheduler service: bench --site site1.local enable-scheduler (Όπου site1.local, το όνομα του site)
28. Disable maintenance mode: bench --site site1.local set-maintenance-mode off (Όπου site1.local, το όνομα του site)
29. Setup production config: sudo bench setup production frappe-user
30. Setup NGINX web server: bench setup nginx
31. Final server setup: sudo supervisorctl restart all ; sudo bench setup production frappe-user
32. Enable firewall: sudo ufw allow 22,25,143,80,443,3306,3022,8000/tcp ; sudo ufw enable

Βαθμολογήστε αυτή τη καταχώρηση:

0 (0 Ψήφοι)