2013-06-21 12:25:43 +00:00
---
{
"_label": "How to Install ERPNext",
"_toc": [
2013-08-07 10:49:30 +00:00
"docs.dev.install.restore_from_backup"
2013-06-21 12:25:43 +00:00
]
}
---
> 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](docs.user.intro.try.html).
2013-07-15 06:13:24 +00:00
### ERPNext Installer (Beta)
2013-11-11 15:21:54 +00:00
1. Make sure that you have Python 2.7+
```
$ python -c "import platform; print platform.python_version()"
2.7.3
```
or
```
$ which python2.7
/usr/bin/python2.7
```
If your python version is less than 2.7, then follow,
* For CentOS, you can refer to http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/
* For Ubuntu, refer to http://askubuntu.com/questions/101591/how-do-i-install-python-2-7-2-on-ubuntu/101595#101595
1. Make sure the 'passwd' command exists. Install passwd if necessary (e.g. on CentOS, run `yum install passwd` )
2013-07-15 06:13:24 +00:00
1. Switch to root user using `sudo su`
2013-07-16 06:35:41 +00:00
1. `wget https://raw.github.com/webnotes/erpnext/master/install_erpnext.py`
2013-11-11 15:21:54 +00:00
1. `python2.7 install_erpnext.py --create_user`
This will create a user 'erpnext' and install erpnext in its home directory.
To start a development server, login as erpnext with password erpnext (or `su erpnext` from your root shell)
```
cd /home/erpnext/erpnext
./lib/wnf.py --serve
```
2013-07-15 06:13:24 +00:00
> If you are installing on your server for deployment, remember to change Administrator's password!
2013-11-11 15:21:54 +00:00
> You can set the erpnext username and password by passing it to the install script,
`python2.7 install_erpnext.py --create_user --username erpnext_username --password secretpassword`
2013-07-15 06:13:24 +00:00
> If you get stuck, post your questions at [ERPNext Developer Forum](https://groups.google.com/forum/#!forum/erpnext-developer-forum)
2013-08-07 10:49:30 +00:00
> [Troubleshooting SELinux](http://www.crypt.gen.nz/selinux/disable_selinux.html)
2013-07-15 06:13:24 +00:00
--
2013-08-07 10:49:30 +00:00
2013-07-15 06:13:24 +00:00
> [Server Setup Tips](http://plusbryan.com/my-first-5-minutes-on-a-server-or-essential-security-for-linux-servers)
2013-08-07 10:49:30 +00:00
> [MySQL configuration file - my.cnf](https://github.com/webnotes/erpnext/wiki/MySQL-configuration-file)
2013-07-15 06:13:24 +00:00
2013-08-07 10:49:30 +00:00
> [Some Useful Aliases](https://github.com/webnotes/erpnext/wiki/Some-Useful-Aliases)
2013-07-15 06:13:24 +00:00
---
### Upgrade / run latest patches
1. Backup your database!
2013-11-11 15:21:54 +00:00
```
./lib/wnf.py --backup
```
1. Pull changes
```
./lib/wnf.py --update origin master
```