Skip to content

Instantly share code, notes, and snippets.

@reanim8ed
Last active May 23, 2022 19:35
Show Gist options
  • Save reanim8ed/51edba895882ace1ba0024da9c132085 to your computer and use it in GitHub Desktop.
Save reanim8ed/51edba895882ace1ba0024da9c132085 to your computer and use it in GitHub Desktop.
[Vesta installation in CentOS7] #vesta #centos
  • Update server first: yum update

  • Generate install command from: https://vestacp.com/install

  • Change Vesta port:

    • Change port on VestaCP firewall at https://YourIPAddress:8083/list/firewall
    • Edit /usr/local/vesta/nginx/conf/nginx.conf anc change port here too
    • Restart: service vesta restart
  • Enable SSL for Vesta:

    • cd /usr/local/vesta/ssl, make backup of current files
    • ln -s /home/admin/conf/web/domain.key /usr/local/vesta/ssl/certificate.key
    • ln -s /home/admin/conf/web/domain.crt /usr/local/vesta/ssl/certificate.crt
  • Enable http2 in default template:

    • Edit /usr/local/vesta/data/templates/web/nginx/default.stpl, add ssl http2
  • Update OpenSSH version: https://gist.github.com/fernandoaleman/f42540a59c8ddff664543e84fddf088b

  • Allow security keys for login:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment