Page 1 of 2

VestaCP config for minimal DO droplet

Posted: Mon Sep 04, 2017 10:55 am
by wilma55
Hello

Tell me please what should I use to install VestaCP on DO with minimal pareameters?
512Mb / 20 Gb / 1 Ghz

Thank you

Re: VestaCP config for minimal DO droplet

Posted: Mon Sep 04, 2017 3:47 pm
by Phogo
The base droplet for $5 will run Vesta, https://www.digitalocean.com/ but I would recommend at least the $20 one.

Re: VestaCP config for minimal DO droplet

Posted: Mon Sep 04, 2017 6:44 pm
by wilma55
no. by default it install all components: spamfilter, firewall and etc

but the smallest package cant use all of these.

Re: VestaCP config for minimal DO droplet

Posted: Tue Sep 05, 2017 2:44 pm
by mehargags
A custom install with following components should be good enough for 512mb Droplet

This is for Debian/Ubuntu

Code: Select all

bash vst-install.sh --nginx yes --apache yes --phpfpm no --vsftpd yes --proftpd no --exim yes --dovecot yes --spamassassin no --clamav no --named yes --iptables yes --fail2ban yes --mysql yes --postgresql no --remi no --quota yes

Re: VestaCP config for minimal DO droplet

Posted: Wed Sep 06, 2017 6:14 am
by wilma55
thank you

Re: VestaCP config for minimal DO droplet

Posted: Wed Sep 06, 2017 6:18 pm
by wininets
Yes it will, run but if you plan on using something like WordPress you should optimize the apache and mysql configs for low resources. Wordpress and some very popular plugins will quickly exhaust available ram causing MySQL to error out.

Generally speaking you will want some more ram to handle normal everyday cyber attacks, for example fail2ban can eat up resources. And if you run ClamAV forget about 512 just not going to cut it.

This will run ok.

Code: Select all

bash vst-install.sh --nginx yes --apache yes --phpfpm no --named yes --remi yes --vsftpd yes --proftpd no --iptables yes --fail2ban yes --quota no --exim yes --dovecot yes --spamassassin no --clamav no --mysql yes --postgresql no
Do yourself a favor and block non essential ports, like SSH, FTP etc when in production. This will reduce the fail2ban monitoring load giving you a little more mileage.

Re: VestaCP config for minimal DO droplet

Posted: Wed Sep 06, 2017 7:53 pm
by wilma55
what about hostgator and others?
they have similar configs.
and I can run a lot ot WP sites. setup wp cache and everything is OK

Re: VestaCP config for minimal DO droplet

Posted: Thu Sep 07, 2017 8:16 pm
by vpsops
If you opt for a lowend VPS just remember to configure and use SWAP file. DO offers SSD disks on their droplets, so SWAP is almost (yes, almost) the same that RAM in terms of speed.
This is not the best solution, but it would offer more stability.
You will also want to tweak Apache (childs and prefork) to avoid high CPU usage that could drive to a forced process exit.

Keep also in mind, as just stated before, that if you plan to use email services (Exim, spamassassin etc.) you need at least 1 or better 2 gig of RAM on your VPS.

Re: VestaCP config for minimal DO droplet

Posted: Fri Sep 08, 2017 8:11 am
by wilma55
so in my case will be better use hosthator for example?

Re: VestaCP config for minimal DO droplet

Posted: Fri Sep 08, 2017 8:05 pm
by mehargags
wilma55 wrote:so in my case will be better use hosthator for example?
Honestly, I feel you are very new to linux and how stuff works, I suggest you practice with a small droplet first, host a non-important site for a few days and watch your performance.

Optimisation is a process not a product, you need to continuously watch your logs, check performance metrics and fine tuning your server's apache/nginx/mysql and so on. Using additional services means more resources to be used, so better do away with the minimal set first. Good luck..!