Tag: GCP

4 May 2020

Restore GCP-VM disk from Snapshot

Go to https://console.cloud.google.com Locate and stop the VM instance to restore Go to Disks Create Disk Update region to match VM Change source type to Snapshot Select the Snapshot to use for your restore Click Create Click Existing Disk “in use by” Click Edit Delete […]

4 May 2020

Assign GCP-VM a dedicated IP

Go to the VM instance Click View Network Details Change from Ephemeral to Static Give the IP address a name (domain-static-ip)

6 November 2020

How to upgrade phpMyAdmin via SSH on GCP

in GCP go to your VM Instance Enter SSH Backup your existing version by typing: sudo mv /usr/share/phpmyadmin/ /usr/share/phpmyadmin.bak Create a new folder by typing: sudo mkdir /usr/share/phpmyadmin/ Switch to the new directory by typing: cd /usr/share/phpmyadmin/ Download the latest version of phpMyAdmin by typing: […]

14 February 2021

Storage options  |  Compute Engine Documentation  |  Google Cloud

Disk types When you configure a zonal or regional persistent disk, you must select one of the following disk types: Standard persistent disks (pd-standard) are backed by standard hard disk drives (HDD). Balanced persistent disks (pd-balanced) are backed by solid-state drives (SSD). They are an […]

30 April 2020

Hosting multiple websites on Single Google Cloud Compute Engine

To host multiple websites on ‘Google Compute Engine’ we need to first of all have our single website hosted , i.e. server has to be installed already. Now by creating ‘domain.conf’ files for ‘sites-available’ for your other domains we will be able to tell the […]

25 May 2020

How to change the timezone on Google Cloud Debian Virtual Machines

Here’s a nice little snippet for you. If you’re like me and have started using Google Compute Engine then you may run into a scenario where your virtual machines timestamp doesn’t match your current location. If you chose the debian wheezy image, then this command […]

12 June 2020

MySQL – PHPMYADMIN

On the Google Cloud Platform (GCP); to access phpmyadmin; Type https://mydomainname/phpmyadmin Login with root and your mysql-root-password (found on your instance page) Add a new Database Click the Database Tab In the Create Database field, enter your new database name and click create. Click the […]

5 November 2020

Create ssh keys for FileZilla sftp (GCP) on a Mac

Go to the GCP dashboard Go to Deployment Manager Click on the deployment instance Open Terminal on a mac Type ssh-keygen -t rsa -f ~/.ssh/gc_rsa_domain -C chosenusername Enter a passphrase Verify passphrase Type cd ~/.ssh Type ls Type vi gc_rsa_domain.pub Copy to clipboard the key […]