ERPNext is an open-source ERP software that offers financial accounting, inventory management, CRM, HR, project management, and e-commerce functionalities. In this tutorial, we will guide you step-by-step on how to install ERPNext on Fedora Server Latest.
Before installing ERPNext, make sure your server meets the following requirements:
To install ERPNext, we need to install the following packages:
sudo dnf install -y git mariadb mariadb-server nginx redis
After installing the packages, we need to configure MariaDB and create a database for ERPNext. Follow the below steps:
sudo systemctl start mariadb
sudo mysql_secure_installation
sudo mysql -u root -p
CREATE DATABASE erpnext;
CREATE USER 'erpnext'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON erpnext.* TO 'erpnext'@'localhost';
FLUSH PRIVILEGES;
EXIT;
We need to install Redis to use it as a cache and message broker. Follow the below steps to install and configure Redis:
sudo systemctl start redis
sudo systemctl enable redis
/etc/redis.conf
file:sudo nano /etc/redis.conf
Uncomment the supervised systemd
option by removing the #
in front of it.
Restart the Redis service:
sudo systemctl restart redis
Bench is a command-line tool used to install and manage ERPNext. Follow the below steps to install and configure Bench:
sudo dnf install -y python3-pip
sudo pip3 install frappe-bench
sudo mkdir /opt/erpnext
sudo chown -R youruser:youruser /opt/erpnext
cd /opt/erpnext
bench init erpnext
cd erpnext
bench install-app erpnext
Nginx is a web server and reverse proxy used to serve ERPNext. Follow the below steps to configure Nginx:
/etc/nginx/nginx.conf
file with nano:sudo nano /etc/nginx/nginx.conf
nginx.conf
file and paste the following configuration:user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
keepalive_timeout 65;
include /etc/nginx/conf.d/*.conf;
}
sudo nano /etc/nginx/conf.d/erpnext.conf
upstream erpnext {
server 127.0.0.1:8000;
}
server {
listen 80;
server_name erpnext.example.com; # Replace with your domain or IP address
access_log /var/log/nginx/erpnext.access.log;
location / {
proxy_pass http://erpnext;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /socket.io {
proxy_pass http://erpnext;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
}
sudo nginx -t
sudo systemctl restart nginx
cd /opt/erpnext/erpnext
bench start
Open your web browser and go to http://erpnext.example.com
. Replace erpnext.example.com
with your domain name or IP address.
Login to the ERPNext using the following credentials:
Username: Administrator
Password: admin
Congratulations! You have successfully installed ERPNext on Fedora Server Latest.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!