From your local server (Xampp) to Google Cloud VM

Trevor
Oct 21, 2020

--

Incase you have a website or webapp developed using HTML template, PHP and MSQL database, you can freely host it on google cloud with same set up as of your local computer in a few minutes. Lets break down the steps:

  1. Deploy a LAMP Stack VM from marketplace using Deployment Manager
  2. Navigate into the /var/www/html folder, delete the default index.html file
  3. Using SSH connection, connect your VM to your local machine
  4. Copy all files in Xampp into VM /var/www/html folder
  5. Access phpmyadmin of the VM by adding /phpmyadmin after its External IP
  6. Export local database content to vm database

--

--

Trevor

👨‍💻 Cloud Geek | 👨‍🏫Educator #GCP | Mentor @gdsc_uganda | Facilitator @GDGCloudKampala | Ex-Lead #DeveloperStudentClubs | #Mindfulness 🧘🏽‍♂️