You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 15, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: i-u-b/install-dev.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,8 @@ During [installation](install "Installing ERPNext") we remove the `sudo` rights
14
14
15
15
**NOTE:** For these steps we are going to assume you are installing a Stage environment called `eprnext-stg`. This will be the bench name and part of the site name. Remember that the site name needs to be a fully qualified domain name (such as `erpnext-stg.domain.com`) to work for name based resolution. This is why we set production with a fully qualified domain name.
16
16
17
+
**NOTE:** Recall that during [installation](install"Installing ERPNext") on RHEL/CentOS that the base bench is placed in `/home/root`. Make sure you are there before you run these commands. Otherwise for Debian based distributions you should be in `/home/erpnext`.
18
+
17
19
Now become the `erpnext` user to setup a new bench.
Copy file name to clipboardExpand all lines: i-u-b/install.md
+13-22Lines changed: 13 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,9 +56,9 @@ ERPNext can be installed on the following OS's:
56
56
57
57
For production and stage environments, the admin guide recommends Debian 8 because "it just works". For development environments where a nice user interface on the "server" is wanted then the admin guide recommends Ubuntu 16.04 "Desktop" edition or MacOS 10. Windows is another option for a development environment, however you cannot run the code on Windows so it makes development **a lot** harder.
58
58
59
-
**NOTE:** The admin guide recommends that all installation work is done with a `sudo` privileged user. During installation, we will create the required user to run ERPNext, however we will not install as that user.
59
+
**NOTE:** The admin guide recommends that all installation work is done with a `sudo` privileged user. During installation, we will create the required user to run ERPNext. The ERPNext user will have eleveted privileges during installation and those rights will be removed at the end.
60
60
61
-
**NOTE:** These steps assume you are starting from a freshly installed server. Your mileage will vary if you are attempting to run these steps on an existing server. The easy install script is **opinionated** meaning it makes a large number of assumptions as to how you want to install the system. The admin guide recommends the using the install script because the Ansible playbooks used do a ton of work very fast saving you a lot of time. The assumptions made are fine for the vast majority of installs.
61
+
**NOTE:** These steps assume you are starting from a freshly installed server. Your mileage will vary if you are attempting to run these steps on an existing server. The easy install script is very **opinionated** meaning it makes a large number of assumptions as to how you want to install the system. The admin guide recommends the using the install script because the Ansible playbooks used do a ton of work very fast saving you a lot of time. The assumptions made are fine for the vast majority of installs.
62
62
63
63
For Debian based distributions (Debian, Ubuntu) start by installing a collection of software dependencies. These steps assume you are running Debian 8 right after OS installation. If you are installing on a RHEL based distribution (CentOS), skip down a section.
64
64
@@ -85,7 +85,6 @@ For Red Hat based distributions (CentOS) start by installing a collection of sof
85
85
sudo yum install -y curl wget nginx net-tools python27 vim
86
86
87
87
# Add a limits file for ERPNext
88
-
# Copy & Paste from sudo ... to EOF" into putty window
Create the `erpnext` user. The `sudo` group name on Debian based distributions is often `sudo` or `sudoers`. The `sudo` group on RHEL (CentOS) based distributions is often `wheel`. Run these commands:
110
109
111
-
# Create the user with the bash shell
110
+
# Create the user with the bash shell and add to appropriate sudoers group
112
111
sudo useradd -m erpnext -s /bin/bash
113
112
sudo usermod -aG [sudo group name] erpnext
114
113
@@ -151,8 +150,9 @@ Download and run the install script.
151
150
# Confirm you can ping the site
152
151
ping [site name].[domain]
153
152
154
-
# For RHEL/CentOS based installs, create a needed directory
153
+
# For RHEL/CentOS based installs, create a needed directory & stop SELinux
# You will be prompted for what you want the mysql root and erpnext admin passwords to be
@@ -168,19 +168,12 @@ Assuming that everything went great and there is no need for [troubleshooting](i
168
168
169
169
Frappe/ERPNext has been successfully installed!
170
170
171
-
There are some cleanup things for RHEL/CentOS. Due to an issue with Ansible not able to determine the `sudo` user, the `install.py` script will install `bench` and ERPNext into the `/home/root` directory. We leave `bench` there, but move ERPNext to where we want it.
171
+
There are some cleanup things for RHEL/CentOS. Due to an issue with Ansible not able to determine the real `sudo` user, the `install.py` script defaults to the `root` user instead of our `erpnext` user. Due to this, everything is installed into the `/home/root` directory except for `npm` and some other `python` libraries. We leave everything and just fix a few things to make it work. From an administration standpoint, the administrator will do all work in the various Frappe bench directories in `/home/root` instead of in `/home/erpnext`.
172
172
173
-
# Exit from the erpnext user
174
-
exit
175
173
sudo rm /etc/profile.d/screen_wall.sh
176
-
sudo cp -Rf /home/root/[bench name used at install] /home/erpnext
177
-
sudo rm -Rf /home/root/[bench name used at install]
178
-
sudo chmod -R 755 /home/erpnext
174
+
cd /home
179
175
sudo chown -R erpnext:erpnext /home/erpnext
180
176
181
-
# Become the erpnext user again
182
-
sudo su - erpnext
183
-
184
177
Sometimes `install.py` leaves some files in the `bench` we created that we want to clean up. This step will also ensure you are running the latest code and all the NodeJS packages are up to date via `npm`.
185
178
186
179
cd [bench name used at install]
@@ -198,11 +191,11 @@ Lastly we need to check on a few things to ensure they are running and installed
198
191
199
192
# Confirm redis-server is running
200
193
sudo netstat -tulpn | grep redis-server
201
-
sudo redis-server -v
194
+
sudo redis-server -v # Should be >= 3.2.x
202
195
203
196
# Confirm NodeJS and npm
204
-
sudo node -v
205
-
sudo npm -v
197
+
sudo node -v # Should be >= 8.9.x
198
+
sudo npm -v # Should be >= 5.6.x
206
199
207
200
# Confirm mysql/mariadb is running on port 3306
208
201
sudo netstat -tulpn | grep mysql
@@ -219,8 +212,6 @@ Lastly we need to check on a few things to ensure they are running and installed
219
212
# Confirm NodeJS is running on port 9000
220
213
sudo netstat -tulpn | grep node
221
214
222
-
If any of the above items are not running, then you will need to troubleshoot the installation of that component.
223
-
su
224
-
At this point the `erpnext` user should be an non-sudoer user and you will have an empty production environment running. Next step is to run the [Setup Wizard](../setup/setup"Setup").<br /><br />
215
+
If any of the above items are not running, then you will need to troubleshoot the installation of that component. At this point the `erpnext` user should be an non-sudoer user and you will have an empty production environment running. Next step is to run the [Setup Wizard](../setup/setup"Setup").<br /><br />
0 commit comments