These are instructions that will help you to install ERPNext on your Unix like system (Linux / Ubuntu / MacOS) using the Terminal. If you are looking at easier ways to evaluate ERPNext, see this page.
Install ERPNext in one command!
sudo su
wget https://raw.github.com/webnotes/erpnext/master/install_erpnext.py
python install_erpnext.py
If you are installing on your server for deployment, remember to change Administrator's password!
If you get stuck, post your questions at ERPNext Developer Forum
Download the standard install script and install. This script will:
app
and lib
folders.wnframework
and erpnext
from GitHub. It is important to clone the repositories from GitHub rather than just downloading the code, because this will help you in upgrading the system.erpnext.conf
Apache configuration file for ERPnext.conf.py
public
folder from which the ERPNext client application will be served via Apache and CGI.Instructions
wget https://github.com/webnotes/erpnext/blob/master/install_erpnext.py
python install_erpnext.py
apache
or _www
. This can be found in its conf file.chown -R apache:apache *
or chown -R _www:_www *
. This will make the erpnext folder accessible to apache webserver.sudo ln -s [PATH TO ERPNEXT INSTALLATION]/erpnext.conf /etc/apache2/sites-enabled/erpnext.conf
sudo ln -s [PATH TO ERPNEXT INSTALLATION]/erpnext.conf /etc/httpd/conf.d/erpnext.conf
iptables -I INPUT 1 -p tcp --dport 8080 -j ACCEPT service iptables save
crontab -e
and enter the following and then save it:*/3 * * * * cd [PATH TO ERPNEXT INSTALLATION] && python lib/wnf.py --run_scheduler >> /var/log/erpnext-sch.log 2>&1 0 */6 * * * cd [PATH TO ERPNEXT INSTALLATION] && python lib/wnf.py --backup >> /var/log/erpnext-backup.log 2>&1
lib/wnf.py --domain localhost:8080
If you are installing on your server for deployment, remember to change Administrator's password!
Listen 8080 NameVirtualHost *:8080 <VirtualHost *:8080> ServerName localhost DocumentRoot [PATH TO ERPNEXT INSTALLATION]/public/ AddHandler cgi-script .cgi .xml .py AddType application/vnd.ms-fontobject .eot AddType font/ttf .ttf AddType font/otf .otf AddType application/x-font-woff .woff <Directory [PATH TO ERPNEXT INSTALLATION]/public/> # directory specific options Options -Indexes +FollowSymLinks +ExecCGI # directory's index file DirectoryIndex web.py AllowOverride all Order Allow,Deny Allow from all # rewrite rule RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^([^/]+)$ /web.py?page=$1 [QSA,L] </Directory> </VirtualHost>