I don’t like to update between major versions, and now ERPNext 5 is stable, after the merge of v5 I make some test with the install script and thanks to @pdvyas there were only ans issue with low RAM at the instalation moment.
I will write here how to install ERPNext in a 512 MB of RAM VPS hosted at digital ocean DigitalOcean | The Cloud for Builders
I am working as root, yes I know, you should not work as root.
Step 1: Create a virtual 4GB SWAP file
fallocate -l 4G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
Step 2: Check than the virtual SWAP is working:
free
total used free shared buff/cache available
Mem: 501896 47956 112336 4320 341604 362192
Swap: 4194300 0 4194300
Step 3: Make permanent the SWAP file
Edit fstab
nano /etc/fstab
And add this line:
/swapfile swap swap sw 0 0
Step 4: Reboor your server and check than your swap file is working:
free
total used free shared buff/cache available
Mem: 501896 47104 235516 4308 219276 372148
Swap: 4194300 0 4194300
Step 5: Install ERPNext:
You must be familiar with this part
wget https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh
bash setup_frappe.sh --setup-production --verbose
Remember to save the passwords
Step 6: Open your port 80 in the firewall
yum install firewalld -y
systemctl enable firewalld
systemctl start firewalld
firewall-cmd --add-port=80/tcp
firewall-cmd --add-port=80/tcp --permanent
Step 7: Go to your server ip and enjoy
Step 8: Be a good person:
Make a donation o Frappe team for their awesome ERPNext
Clic on William Digital Ocean Referral link
TODO:
1- Secure your server, keep your server up to date, block ssh logging for root user, change the ssh port.
2- Configure backups in your ERPNext instance: Frappe Cloud
3- Setup a subdomain for your ERPNext instance: DNS How-Tos :: DigitalOcean Documentation
It will good to take a look at:
Please note:
Digital Ocean 512 MB VPS come with 20 GB of this, the system itself use some of this space and if you use 4GB of drive to swap you will have a few more than 10GB of drive, this could be enoutgh for a small company