Install ERPNext on Debian 8

Hello,
I have a local server running Debian 8 and accessible from outside with static IP (Zone DNS modified per project). This server is omy for development environment and my personal projects or tools.
This server runs Apache2.4 and MySQL and runs more than 25 projects (Magento, wordpress and symphony).
Path configuration for the projects /srv/projects/dev/www/*.[local|com]/htdocs

So my questions :
1.- Can I install ERPNext on /srv/projects/dev/www/erp.mydomain.com/htdocs ?
2.- Can I run only apache and not nginx ?
3.- So do you have any experience with this or any input ?

Thanks in advance,
Pepe M.

Hi Pepe,

I’d be best if you can get a server / machine with a minimal OS install. You can get erpnext running with your existing server with some effort (figure out the apache config, upgrading to MariaDB, etc).

Maybe you can install it on a docker container

@3pepe3

  1. Debian 8 is supported
  2. You can install frappe on any path as long as you make sure to manage config files yourself
  3. You may able to run it using Apache with some additional modules but nginx is well supported by frappe/erpnext and you can sit relax if you use bench tool
  4. If you manage to install dependencies and bench tool manually for development environment, then you dont even need Apache/nginx, bench start will start web server and it uses honcho to manage multiple processes in developer mode.

Bench installer is available at : GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps
You can also try vagrant vm option to kick start development more faster: GitHub - frappe/erpnext_vagrant: Vagrantfile and Bootstrap for creating a dev environment for ERPNext

Good Luck!

Thanks for your input but I think that I feel like a n00b… I just can’t install ERPNext.

I try to follow this instructions :

and some other liks like :

For example, with the easy way :

wget https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh
sudo bash setup_frappe.sh --setup-production

I get :

bash setup_frappe.sh --setup-production
Installing for debian 8 amd64
In case you encounter an error, you can post on https://discuss.frappe.io

Adding debian mariadb repo
Installing packages for debian. This might take time...
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version.
fontconfig is already the newest version.
git is already the newest version.
htop is already the newest version.
libcrypto++-dev is already the newest version.
libxext6 is already the newest version.
libxrender1 is already the newest version.
libxslt1-dev is already the newest version.
libxslt1.1 is already the newest version.
libssl-dev is already the newest version.
postfix is already the newest version.
python-dev is already the newest version.
python-pip is already the newest version.
python-setuptools is already the newest version.
redis-server is already the newest version.
supervisor is already the newest version.
vim is already the newest version.
xfonts-75dpi is already the newest version.
xfonts-base is already the newest version.
ntp is already the newest version.
screen is already the newest version.
nodejs is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nodejs : Conflicts: npm
E: Unable to correct problems, you have held broken packages.
# nodejs -v
v0.12.7
# node -v
v0.11.8-pre
# npm -v
3.5.1

Still the same message :

The following packages have unmet dependencies:
nodejs : Conflicts: npm

I think you should purge npm and try again. I am working on debian 8 support (some issues with pillow deps)

Hello,
Seems that I’m getting closer.
First of all in my preview comment I have 2 different versions between nodejs and node… but they must be the same.
So I fix this removing node and creating a symlink from nodejs. Now I get:

# nodejs -v
v0.12.8
# node -v
v0.12.8

Then apt-get was not upgrading MariaDB and all the other dependencies due 2 lines added to my source-list by “bash setup_frappe.sh”

#So I deleted this lines and now all is working
deb http://ams2.mirrors.digitalocean.com/mariadb/repo/10.0/debian jessie main
deb-src http://ams2.mirrors.digitalocean.com/mariadb/repo/10.0/debian jessie main
#mariadb is updated

Now this is working :

cd ~
bench init frappe-bench
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

Now I need to figure out how to launch the app :confused:

Try bench setup production frappe