byteflick

Install ERPNext on Linux Server

Dec 14th, 2023
1,161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.05 KB | Software | 0 0
  1. Subscribe my Youtube Channel and Support me
  2. https://youtube.com/@byteflick
  3.  
  4. After login check for any updates or upgrade on the server and reboot the server by executing this command.
  5.  
  6. sudo apt update && sudo apt upgrade -y && sudo reboot
  7.  
  8. Now we will create the new user
  9.  
  10. sudo adduser erpnext
  11. sudo usermod -aG sudo erpnext
  12. sudo su erpnext
  13. cd /home/erpnext
  14.  
  15. Frappe Bench and ERPNext require necessary packages which are essential to run the ERPNext application smoothly.
  16.  
  17. sudo apt install -y nano git python3-dev python3.10-dev python3-setuptools python3-pip python3-distutils python3.10-venv software-properties-common mariadb-server mariadb-client redis-server xvfb libfontconfig wkhtmltopdf libmysqlclient-dev
  18.  
  19. Now we will set up the MariaDB server. During this process, the server will ask you a few questions. Follow the instruction and answer the questions carefully.
  20.  
  21. sudo mysql_secure_installation
  22.  
  23. Now we need to edit the mysql config file
  24.  
  25. sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf
  26.  
  27. First of all, we need to comment this line.
  28.  
  29. collation-server = utf8mb4_general_ci
  30.  
  31. Now save this file. To save the file press CTRL+X and press Y and press enter key.Now edit the other config file
  32.  
  33. sudo nano /etc/mysql/my.cnf
  34.  
  35. Copy and paste these lines at the last of file.
  36.  
  37. [mysqld]
  38. character-set-client-handshake = FALSE
  39. character-set-server = utf8mb4
  40. collation-server = utf8mb4_unicode_ci
  41. innodb-file-format=barracuda
  42. innodb-file-per-table=1
  43. innodb-large-prefix=1
  44.  
  45. [mysql]
  46. default-character-set = utf8mb4
  47.  
  48. sudo service mysql restart
  49.  
  50. We will now install some more important packages CURL, NPM, Nodejs, and Yarn
  51.  
  52. sudo apt install curl npm -y
  53. sudo npm install -g yarn
  54. curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
  55. source ~/.profile
  56. nvm install node
  57.  
  58. Now it is time to install Frappe Bench and give the user permissions.
  59.  
  60. sudo pip3 install frappe-bench
  61. sudo pip3 install redis
  62. bench init --frappe-branch version-14 frappe-bench
  63. cd frappe-bench/
  64. chmod -R o+rx /home/erpnext
  65.  
  66. Now we will set up the bench for production use
  67.  
  68. sudo bench setup production username
  69.  
  70. Here type the username which we created in the starting of the video.
  71.  
  72. It is very important to run this command two time.
  73.  
  74. Now we will create the site where ERPNext and other apps will be install.
  75.  
  76. bench new-site yoursitename
  77.  
  78. Type the mysql password which we used while setting up the mysql.
  79.  
  80. Type Administrator password and remember it. This will be used to login into ERPNext.
  81.  
  82. Now we will download and install ERPNext and some other apps on the site which we created just now.
  83.  
  84. bench get-app payments --resolve-deps
  85. bench get-app --branch version-14 erpnext --resolve-deps
  86. bench get-app hrms
  87. bench get-app ecommerce_integrations --branch main --resolve-deps
  88.  
  89. bench --site yoursitename install-app erpnext
  90. bench --site yoursitename install-app hrms
  91. bench --site yoursitename install-app ecommerce_integrations
  92.  
  93. Now we will re-configure the production server for ERPNext which enables the frappe to run with no limitations.
  94.  
  95. bench --site yoursitename enable-scheduler
  96. bench --site yoursitename set-maintenance-mode off
  97. sudo bench setup production username
  98. bench setup nginx
  99. sudo supervisorctl restart all
  100. sudo bench setup production username
  101.  
  102. Now access the server IP on your browser.
  103.  
  104. You now have a fresh new installation of ERPNext. Now let's login and configure it.
  105.  
  106. Username: Administrator
  107. Password: Your chosen password
  108.  
  109. Enter the password which we setup while installing ERPNext .
  110.  
  111. Congratulations! We have successfully installed and configured the ERPNext on Linux server. So, that's all. I hope you have enjoyed my video. Soon, I will be uploading a new video on the installation of SSL certificate on ERPNext. Do not forget to press the like button If you have not subscribed to my channel then please subscribe to my channel and hit the bell icon to get the update on my latest videos.
  112.  
  113. If you want videos on any other topic then comment below. We will try our best to help you.
Advertisement
Add Comment
Please, Sign In to add comment