apt-get update
apt-get install dialog screen build-essential libssl-dev curl tmux dnsutils whois rsync htop iotop iftop ntp sudo git
apt-get dist-upgrade
passwd
adduser owner
usermod -a -G sudo owner
locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales
update-locale LANG=en_US.UTF-8
dpkg-reconfigure tzdata
curl -O http://vestacp.com/pub/vst-install.sh
bash vst-install.sh --nginx yes --apache yes --phpfpm no --vsftpd no --proftpd no --exim yes --dovecot no --spamassassin no --clamav no --named no --iptables yes --fail2ban yes --mysql yes --postgresql no --remi yes --quota no
Using the resulting UN/PW, I logged into VestaCP and started setting it up.
In this case I have backups from a different VestaCP installation that I need to load in. To do so from the shell:
/usr/local/vesta/bin/v-restore-user userx userx.date.tar
That changes all the IPs correctly so that the domains are set up. I then adjust the cloudflare records to point to the new VPS IP.
** install monit **
Monit Guide
Copy over all /etc/monit/conf.d/* to new VPS, change apache/nginx to correct hostname.
** install exim configuration with mailgun **
copy exim4.conf.template and passwd.client from old VPS to newvps at /etc/exim4/, then “service exim4 restart”
Increase limits in vesta hosting PHP limits:
/usr/local/vesta/data/templates/web/apache2/hosting.stpl and /usr/local/vesta/data/templates/web/apache2/hosting.tpl
< php_admin_value upload_max_filesize 10M
< php_admin_value max_execution_time 20
< php_admin_value post_max_size 8M
< php_admin_value memory_limit 32M
> php_admin_value upload_max_filesize 80M
> php_admin_value max_execution_time 50
> php_admin_value post_max_size 20M
> php_admin_value memory_limit 64M
Leave a Reply