Skip to content

How to Install ERPNext

anandpdoshi edited this page May 10, 2012 · 23 revisions

Note:

  1. You will need some linux background to be able to install this on your system.
  2. These are high-level instructions and by no means cover every installation issue.

Want to update a recently pulled implementation?

  1. Backup your database!
  2. pull the latest master branches for both erpnext and wnframework
  3. from erpnext folder, run lib/wnf.py -l
  4. after this, run lib/wnf.py --sync_all -f
  5. change your apache config file. directory now points to public folder in erpnext.
  6. change owner of all files to apache user and group
  7. restart apache

Pre-requisites:

  • any unix based os
  • python 2.6+ (python 3+ not supported)
  • apache
  • mysql 5+
  • git
  • python MySQLdb
  • pytz
  • jinja2
  • markdown2
  • dateutil

Steps: (replace contents written like {something} with appropriate data)

  1. ensure mysql service is running
  2. go to a folder where you want to install erpnext.
  3. git clone [email protected]:webnotes/erpnext.git
  4. go to erpnext folder
  5. chmod 755 install_erpnext.py
  6. ./install_erpnext.py
  7. check your apache/httpd user and group. Most often it is either apache or _www. This can be found in its conf file.
  8. go to erpnext folder and run chown -R apache:apache * or chown -R _www:_www *. This will make the erpnext folder accessible to apache webserver.
  9. edit apache configuration file (or create an erpnext.conf file and include it in apache conf. see example below)
  10. restart apache service
  11. start your browser and go to localhost/erpnext/public
  12. login as user: Administrator and password: admin

What to write in apache configuration file?

<VirtualHost *:80>
	ServerName *
	DocumentRoot {full path to erpnext folder}/public/
	AddHandler cgi-script .cgi .xml
	Options -Indexes +FollowSymLinks +ExecCGI
	RewriteEngine on
	RewriteRule \.py - [F]
	## uncomment below lines if required
	#Order allow,deny
	#Allow from all
	DirectoryIndex index.html index.cgi
</VirtualHost>

Attributions: Thanks to Sudev KK for contributing to the setup steps.