- Notifications
You must be signed in to change notification settings - Fork0
githubammar/Frappe-ERPNext-Installation-Guide
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Python 3.6+ Node.js 14+ Redis 5 (caching and real time updates) MariaDB 10.3.x / Postgres 9.5.x (to run database driven apps) yarn 1.12+ (js dependency manager) pip 20+ (py dependency manager) wkhtmltopdf (version 0.12.5 with patched qt) (for pdf generation) cron (bench's scheduled jobs: automated certificate renewal, scheduled backups) NGINX (proxying multitenant sites in production)
Git is the most commonly used version control system. Git tracks the changes you make to files,so you have a record of what has been done, and you can revert to specific versions should you ever need to.Git also makes collaboration easier, allowing changes by multiple people to all be merged into one source.
sudo apt-get install git
python-dev is the package that contains the header files for the Python C API,which is used by lxml because it includes Python C extensions for high performance.
sudo apt-get install python3-dev
Setuptools is a collection of enhancements to the Python distutils that allow developersto more easily build and distribute Python packages, especially ones that havedependencies on other packages. Packages built and distributed using setuptoolslook to the user like ordinary Python packages based on the distutils.
pip is a package manager for Python. It's a tool that allows you to install and manageadditional libraries and dependencies that are not distributed as part of the standard library.
sudo apt-get install python3-setuptools python3-pip
virtualenv is a tool for creating isolated Python environments containing their own copy ofpython , pip , and their own place to keep libraries installed from PyPI.It's designed to allow you to work on multiple projects with different dependenciesat the same time on the same machine.
sudo apt-get install virtualenv
CHECK PYTHON VERSION
python3 -V
IF VERSION IS 3.8.X RUN
sudo apt install python3.8-venv
IF VERSION IS 3.10.X RUN
sudo apt install python3.10-venv
MariaDB is developed as open source software and as a relational database it provides an SQL interfacefor accessing data.
open this link
https://downloads.mariadb.org/mariadb/repositories/#mirror=piconets
For ubuntu 20.04
sudo apt-get install software-properties-commonsudo apt-key adv --fetch-keys 'https://mariadb.org/mariadb_release_signing_key.asc'sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] https://ftp.icm.edu.pl/pub/unix/database/mariadb/repo/10.3/ubuntu focal main'sudo apt updatesudo apt install mariadb-server
For ubuntu 18.04
sudo apt-get install software-properties-common dirmngr apt-transport-httpssudo apt-key adv --fetch-keys 'https://mariadb.org/mariadb_release_signing_key.asc'sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] https://mirrors.aliyun.com/mariadb/repo/10.3/ubuntu bionic main'sudo apt updatesudo apt install mariadb-server
IMPORTANT :During this installation you'll be prompted to set the MySQL root password.If you are not prompted for the same You can initialize the MySQL server setup by executingthe following command
sudo mysql_secure_installation
sudo apt-get install libmysqlclient-dev
sudo nano /etc/mysql/my.cnf
add this to the my.cnf file
[mysqld]character-set-client-handshake = FALSEcharacter-set-server = utf8mb4collation-server = utf8mb4_unicode_ci[mysql]default-character-set = utf8mb4
Now press (Ctrl-X) to exit
sudo service mysql restart
Redis is an open source (BSD licensed), in-memory data structure store, used as a database,cache, and message broker.
sudo apt-get install redis-server
Node.js is an open source, cross-platform runtime environment for developing server-side andnetworking applications. Node.js applications are written in JavaScript, and can be run within the Node.jsruntime on OS X, Microsoft Windows, and Linux.
sudo apt-get install curlcurl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -sudo apt-get install -y nodejs
Yarn is a JavaScript package manager that aims to be speedy, deterministic, and secure.See how easy it is to drop yarn in where you were using npm before, and get faster, more reliable installs.Yarn is a package manager for JavaScript.
sudo npm install -g yarn
Wkhtmltopdf is an open source simple and much effective command-line shell utility that enablesuser to convert any given HTML (Web Page) to PDF document or an image (jpg, png, etc)
sudo apt-get install xvfb libfontconfig wkhtmltopdf
sudo -H pip3 install frappe-bench
IMPORTANT: you may wish to log out and log back into your terminalbefore next step and You must login.
bench --version
bench init frappe-bench --frappe-branch version-13cd frappe-bench/bench start
bench new-site dcode.com
bench get-app erpnext --branch version-13###ORbench get-app https://github.com/frappe/erpnext --branch version-13bench --site dcode.com install-app erpnextbench start
sudo adduser dcode-frappesudo usermod -aG sudo dcode-frappesu - dcode-frappe
sudo bench setup production dcode-frappebench restart
Open the 0.0.0.0 or server IP in web browser and login to production server
bench use sitenameSwitch off DNS based multitenancy (once) bench config dns_multitenant offCreate a new site bench new-site site2nameSet port bench set-nginx-port site2name 82Re generate nginx config bench setup nginxReload nginx sudo service nginx reload Reload supervisor sudo service supervisor restart
sudo add-apt-repository ppa:certbot/certbot sudo apt update sudo apt install python-certbot-nginx sudo certbot --nginx -d example.com ./env/bin/python -m pip install -q -U -e /apps/frappe
If you installed with --production option and you want to stop production services, and start in develop mode
sudo service supervisor stop sudo service redis stop sudo service nginx stop
bench setup procfile
bench start
sudo service supervisor start sudo service redis start sudo service nginx start
sudo service supervisor status sudo service redis status sudo service nginx status
About
Frappe ERPNext Installation Guide.
Resources
Uh oh!
There was an error while loading.Please reload this page.