Install VestaCP on Google Cloud in 5 steps

This article will provide you with 5 quick steps to get up and running with VestaCP and finish with adding your first domain to the portal.

VestaCP is an Open Source control panel that helps you manage your web server and simplifies a lot of things! https://vestacp.com/

  1. Within the Google Cloud Console, navigate to Networking > Firewall Rules.
    • Add a new firewall rule for VestaCP
    • Name = vestacp-panel
    • Source Filter = “allow from any source (0.0.0.0/0)
    • Allowed protocols and ports = 8083/tcp
    • Target Tags = vestacp-panel
  2. Deploy a new Compute Engine VM Instance
    • Define Name and Zone based on your preference
    • Choose Machine Type (I have used “micro”)
    • Boot Disk = 10gb and CentOS 7
    • Firewall = allow HTTP and HTTPS (so your websites can get through when setup)
    • Expand “ Management, disk, networking, SSH keys”
      • Under Management, in the Tags section, add “vestacp-panel”
      • Under Networking, assign a New Static External IP (or re-use an old one if you have any) – take note of the External IP assigned, you’ll need this later.
    • Create the instance
  3. Wait for the new VM to finish deploying, connect to it via SSH and install VestaCP
    • cd /tmp/
    • curl -O http://vestacp.com/pub/vst-install.sh
    • sudo bash vst-install.sh
    • Follow the on screen steps
    • When it asks for an FQDN, provide the full URL that you will use to access the portal (e.g. panel.example.com) – you will also need to add this as an A record for your domain.
    • Take note of password presented to you at the end of the install
  4. Login to your new VestaCP Control Panel
    • https://<your_server_ip>:8083 or https://<your_server_URL>:8083
    • Username = admin
    • Password = provided at the end of Step 3
    • If you can’t reach the portal, check your Firewall Rules from Step 1 and ensure your VM has the correct tags, as per Step 2
  5. Configure your VestaCP server
    • Edit the Admin user and change the password to something secure
    • Edit the VestaCP firewall and modify any existing rules to drop traffic you don’t want/need (POP3, DB, PING etc)
    • Add your domain
      • After this you’ll need to point your website to your new VestaCP web server

There are plenty more things to set up within VestaCP, such as setting Private Nameservers, creating Packages etc but the above will get you up and running.

6 thoughts on “Install VestaCP on Google Cloud in 5 steps

  1. Hello, excellent post !.
    I work everything right. But I have a problem sending mail, they leave but they do not reach their destination.
    If you receive emails normally.

    I wait for your help!
    Thank you

  2. Hey Sam,
    Thanks for the article. I’m still looking at how to use the FQDN domain instead of the IP:8083 address to access the VestaCP control panel. I’ve had a look at various DNS record sets but I haven’t been able to find anything that works. Could you point me in the right direction?
    Cheers,

    1. Hey, are you using CloudFlare out of interest? If you are, you will need to change the control panel port to use a port they have listed. I went for 2053
      https://support.cloudflare.com/hc/en-us/articles/200169156-Which-ports-will-Cloudflare-work-with-

      Once thats done, add your A record to point to your control panel IP, then for good measure, within the CP go to IP > Edit your CP IP > Update Assigned domain

      If that doesn’t work, feel free to DM me on Twitter, may be easier to have a conversation https://twitter.com/sam_perrin

  3. Hi
    Thanks for detail tutorial!
    I have successfully setup vestacp on google cloud.
    Now having two major problems.
    1. Custom Nameserver not working.
    2. Ftp not connecting.
    I hope you will provide some fix.

    Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *