0% found this document useful (0 votes)
144 views5 pages

Erpnext-Installationv13 Development

The document shows the command line session of a user installing and configuring an ERPNext application on an Ubuntu server. It involves initializing a bench, installing ERPNext from GitHub, setting up the database, configuring Nginx and Supervisor, and restoring a database backup to test a beta version of ERPNext 13.

Uploaded by

Vinod J Prakash
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
144 views5 pages

Erpnext-Installationv13 Development

The document shows the command line session of a user installing and configuring an ERPNext application on an Ubuntu server. It involves initializing a bench, installing ERPNext from GitHub, setting up the database, configuring Nginx and Supervisor, and restoring a database backup to test a beta version of ERPNext 13.

Uploaded by

Vinod J Prakash
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

login as: root

Authenticating with public key "rsa-key-20210303"


Passphrase for key "rsa-key-20210303":
Wrong passphrase
Passphrase for key "rsa-key-20210303":
Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 4.15.0-121-generic x86_64)

* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage

System information as of Fri Mar 26 18:25:38 UTC 2021

System load: 0.05 Processes: 130


Usage of /: 10.8% of 77.36GB Users logged in: 0
Memory usage: 61% IP address for eth0: 68.183.91.97
Swap usage: 0% IP address for eth1: 10.139.0.3

* Canonical Livepatch is available for installation.


- Reduce system reboots and improve kernel security. Activate at:
https://ubuntu.com/livepatch

22 packages can be updated.


12 of these updates are security updates.
To see these additional updates run: apt list --upgradable

New release '20.04.2 LTS' available.


Run 'do-release-upgrade' to upgrade to it.

*** System restart required ***


Last login: Fri Mar 26 09:56:43 2021 from 157.45.132.152
root@ubuntu-s-2vcpu-4gb-blr1-01:~# su - erpnext
erpnext@ubuntu-s-2vcpu-4gb-blr1-01:~$ ls
bench-repo frappe-bench qubix-beta
erpnext@ubuntu-s-2vcpu-4gb-blr1-01:~$ history
1 exit
2 sudo apt-get update
3 exit
4 ls
5 git clone https://github.com/frappe/bench bench-repo
6 ls
7 cd bench-repo/
8 pwd
9 cd
10 ls
11 sudo chmod 777 -R /home/erpnext/bench-repo/
12 ls
13 sudo apt install python-pip
14 pip3 install -e bench-repo
15 source .profile
16 source .bashrc
17 bench init frappe-bench
18 ls
19 sudo chmod 777 -R /home/erpnext/frappe-bench/
20 ls
21 cd frappe-bench/
22 bench get-app erpnext https://github.com/frappe/erpnext
23 bench version
24 bench new-site qubixmedicare.com
25 ls sites/
26 bench --site qubixmedicare.com install-app erpnext
27 bench start
28 cd ..
29 ls
30 sudo pip install -e bench-repo
31 source .profile
32 source .bashrc
33 cd frappe-bench/
34 sudo bench setup production erpnext
35 ls sites/
36 bench --site qubixmedicare.com migrate
37 sudo supervisorctl restart all
38 sudo service nginx restart
39 bench restart
40 ls sites/
41 cd
42 exit
43 ls
44 sudo ls
45 cd ..
46 ls
47 /home
48 ls
49 cd home
50 ls
51 cd erpnext/
52 ls
53 cd frappe-bench/
54 ls
55 cd sites/
56 l
57 ls
58 cat apps.txt
59 cd ..
60 ls
61 cd ...
62 cd ..
63 ls
64 cd etc
65 ls
66 cd cd ..
67 ls
68 cd ..
69 ls
70 clear
71 ls
72 cd frappe-bench/
73 ls sites/
74 bench --site qubixmedicare.com set-admin-password admin
75 bench --site qubixmedicare.com set-admin-password admin@123
76 bench restart
77 exit
78 ls
79 locate password.txt
80 locate password
81 cd frappe-bench/
82 bench --site qubixmedicare.com mariadb
83 ls sites/
84 bench --site qubixmedicare.com mariadb
85 bench restart
86 bench --site qubixmedicare.com mariadb
87 cd sites/qubixmedicare.com/
88 ls
89 nano site_config.json
90 cd ../..
91 bench --site qubixmedicare.com set-admin-password admin@123
92 nano sites/qubixmedicare.com/site_config.json
93 bench --site qubixmedicare.com mariadb
94 exit
95 cd frappe-bench/
96 bench --site qubixmedicare.com mariadb
97 bench --site qubixmedicare.com set-admin-password 1
98 nano logs/frappe.log
99 ls logs/
100 bench --site qubixmedicare.com mariadb
101 bench --site qubixmedicare.com set-admin-password ages
102 bench restart
103 bench set-admin-password ages
104 bench --site qubixmedicare.com mariadb
105 ls sites/qubixmedicare.com/public/files/
106 ls
107 cd sites/qubixmedicare.com/public/files/
108 ls
109 cd ../..
110 cd private/files/
111 ls
112 cd ..
113 cd backups/
114 ls
115 cd
116 exit
117 sudo crontab -e
118 sudo crontab
119 sudo crontab -e
120 exit
121 ls
122 exit
123 service nginx stop
124 sudo service supervisord stop
125 cd frappe-bench/
126 ls sites/
127 bench --site qubixmedicare.com reinstall
128 bench --site qubixmedicare.com list-apps
129 sudo service nginx restart
130 sudo supervisorctl restart all
131 ls sites/qubixmedicare.com/public/files/
132 exit
133 cd frappe-bench/
134 bench --site qubixmedicare.com mariadb
135 exit
136 cd frappe-bench/
137 ls sites/
138 bench --site qubixmedicare.com set-admin-password admin@123
139 bench restart
140 cd
141 exit
142 ls frappe-bench/sites/
143 exit
144 ls
145 cd frappe-bench/
146 ls sites/
147 bench set-nginx-port qubixmedicare.com 8090
148 bench setup nginx
149 sudo service nginx restart
150 exit
151 cd frappe-bench/
152 ls sites/
153 bench set-nginx-port qubixmedicare.com 81
154 bench setup nginx
155 sudo service nginx restart
156 bench restart
157 sudo bench restart
158 cd
159 exit
160 ls
161 cd frappe-bench/
162 bench set-nginx-port qubixmedicare.com 80
163 bench setup nginx
164 sudo service nginx restart
165 bench restart
166 sudo service supervisor restart
167 bench restart
168 cd
169 exit
170 ls
171 ls -l
172 cd
173 sudo service supervisor restart
174 sudo service nginx restart
175 cd frappe-bench/
176 bench start
177 bench start restart
178 bench restart
179 cd /etc/supervisor/
180 ls
181 ls -l
182 vim supervisord.conf
183 sudo vim supervisord.conf
184 sudo service supervisor restart
185 sudo service supervisor restart all
186 cd
187 cd frappe-bench/
188 ls
189 bench restart
190 cd
191 exit
192 ls
193 bench init qubix-beta --frappe-branch version-13-beta
194 ls
195 sudo chmod 777 -R /home/erpnext/qubix-beta/
196 ls
197 cd qubix-beta/
198 bench get-app erpnext --branch version-13-beta
199 bench version
200 bench new-site qubix.site
201 bench --site qubix.site install-app erpnext
202 ls sites/
203 bench set-nginx-port qubix.site 81
204 bench setup nginx
205 sudo service nginx reload
206 sudo bench setup production erpnext
207 bench --site qubix.site migrate
208 sudo supervisorctl restart all
209 sudo service nginx restart
210 bench restart
211 cd
212 exit
213 ls
214 cd qubix-beta/sites/qubix.site/public/files/
215 ls
216 gunzip 20210323_113001-qubixmedicare_com-database.sql.gz
217 ls
218 cd ../../..
219 cd ..
220 ls
221 ls sites/
222 bench --site qubix.site --force restore sites/qubix.site/public/files/202
10323_113001-qubixmedicare_com-database.sql
223 bench --site qubix.site migrate
224 bench restart
225 exit
226 ls
227 history
erpnext@ubuntu-s-2vcpu-4gb-blr1-01:~$

You might also like