Installing ERPNext on Fedora 22

I’d like to share my successful installation experience of ERPNext on Fedora 22.
I hope that this can help others.

Pre-requisite

I started from a plain F22 iso downloaded by the Fedora site.

$ sudo dnf install mariadb mariadb-server mariadb-devel python-setuptools nginx zlib-devel bzip2-devel openssl-devel postfix python-devel python-pip libxml2 libxml2-devel libxslt libxslt-devel redis libXrender libXext supervisor cronie which xorg-x11-fonts-75dpi xorg-x11-fonts-Type1

Start and enable redis

sudo systemctl start redis.service 
sudo systemctl enable redis.service 

Configure MariaDB

Create the user:

mysqladmin -u root password ROOTPASSWORD

Add the following preferences in /etc/my.cnf

[mysqld]
innodb-file-format=barracuda
innodb-file-per-table=1
innodb-large-prefix=1
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci

[mysql]
default-character-set = utf8mb4

Start and enable the auto-start:

sudo systemctl start mariadb.service 
sudo systemctl enable mariadb.service

Installing Bench

Install bench as a non root user:

git clone https://github.com/frappe/bench bench-repo
sudo pip install -e bench-repo

Installing ERPNext

Enter in the Frappe dir

cd frappe-bench
bench get-app erpnext https://github.com/frappe/erpnext         # Add ERPNext to your bench apps
bench new-site site1.local                      # Create a new site
bench install-app erpnext                       # Install ERPNext for the site
6 Likes

Thanks! can you add a Wiki Page at https://github.com/frappe/bench/wiki

Added wiki page for future reference: https://github.com/frappe/bench/wiki/Installing-ERPNext-on-Fedora-22

1 Like

Hey!

I guess you installed v5. With v6 we’ll need node as well. I think we should add Fedora support to the easy install script as well.

I’ve updated the wiki page according to your suggestion.

1 Like