Hello all, just follow my steps carefully and everything will be ready
-
choose any cloud you want i choose one with 5USD(1core & 1gb mem & 25gb hd monthly and install ubuntu 20.04
-
enter to your system via ssh with root user
apt update && apt upgrade -y && shutdown -r now
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
apt install -y nodejs mariadb-server redis-server python3-pip nginx python3-testresources
adduser USERNAME (enter password and others details and press y)
usermod -aG sudo USERNAME
-
nano /etc/mysql/my.cnf
and add these lines to the end of file and save it
[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
[mysql]
default-character-set = utf8mb4
service mysql restart
- run
mysql_secure_installation
press enter and set password for the root user and remove demo db and others like
Set root password? [Y/n] y
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] n
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y
- run
mysql -u root -p
command and enter the previous password at step 10 and run(line by line)
USE mysql;
UPDATE user SET plugin=' ' WHERE user ='root';
FLUSH PRIVILEGES;
exit
- close the terminal and open new one and login with
ssh USERNAME
sudo npm install -g yarn
node -v && npm -v && python3 -V && pip3 -V && yarn -v
# v12.20.0
# 6.14.8
# Python 3.8.5
pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
# 1.22.10
pip3 install frappe-bench
sudo pip3 install frappe-bench
bench init --frappe-branch version-13-beta myfrappe
cd myfrappe
bench new-site mysite (enter mysql root password step 10) and enter new password
bench get-app --branch version-13-beta erpnext
bench --site mysite install-app erpnext
- ( click y if asked)
sudo bench setup production USERNAME
congratulation you can visit your ip erpnext and fill erpnext wizard
FYI I tested and double check this way and it works happy new year