From your local server (Xampp) to Google Cloud VM
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:
- Deploy a LAMP Stack VM from marketplace using Deployment Manager
- Navigate into the /var/www/html folder, delete the default index.html file
- Using SSH connection, connect your VM to your local machine
- Copy all files in Xampp into VM /var/www/html folder
- Access phpmyadmin of the VM by adding /phpmyadmin after its External IP
- Export local database content to vm database