forked from frappe/erpnext
-
Notifications
You must be signed in to change notification settings - Fork 0
How to Install ERPNext
anandpdoshi edited this page Apr 26, 2012
·
23 revisions
Note:
You will need some linux background to be able to install this on your system.
These are high-level instructions and by no means cover every installation issue.
- any unix based os
- python 2.6+ (python 3+ not supported)
- apache
- mysql 5+
- git
- python MySQLdb
- pytz
- jinja2
- markdown2
- dateutil
- go to a folder where you want to install erpnext. (This folder should be accessible to apache)
git clone [email protected]:webnotes/erpnext.git
- go to erpnext folder
git clone [email protected]:webnotes/wnframework.git lib
mkdir logs
touch ./logs/error_log.txt
- go to ./lib/py/webnotes
copy defs_template.py defs.py
- edit defs.py (make sure that you write full paths. see example below.)
- go back to erpnext folder
gunzip ./data/master.sql.gz
- ensure mysql service is running
./wnf.py --install {mysql_root_password} {new_db_name} data/master.sql
-
./wnf.py -d {new_db_name} --sync_with_gateway 0
(This step will get deprecated very soon) -
./wnf.py -d {new_db_name} -l
(Runs the latest patches on the database) - edit apache configuration file (or create an erpnext.conf file. see example below)
- restart apache service
- start your browser and go to localhost/erpnext
- login as user: Administrator and password: admin
## paths should be accessible by apache
## these are minimum settings required to get you started
default_db_name = '{new_db_name}'
db_password = '{mysql_root_password}'
files_path = '{full path to a folder where attachments should be saved}'
modules_path = '{full path to erpnext}/erpnext/'
log_file_name = '{full path to erpnext}/logs/error_log.txt'
<VirtualHost *:80>
ServerName *
DocumentRoot {full path to erpnext folder}/
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.