Search code examples
google-cloud-platformgoogle-compute-enginelamp

Can't find files on Google Cloud VM


[Newbie Alert] Greetings, I've successfully deployed a LAMP VM/Instance on a project within GCP. The Apache "It works" pops right up and life is good.

Except (of course), I can't find the /var/www/html/index.html to change it. This is blindingly obvious so, of course, I missed it.

Any pointers (pun intended) would be gratefully received.

Rick


Solution

  • I'm posting this answer in the hopes it helps somebody else. As I mentioned, on an apache installation, you get the /var/www/html/index.html information on the default page if you successfully install Apache.

    If you ssh or use Google Cloud Shell, it appears to get to the real "root" you simply type cd / and presto, you can navigate the way apache (or wordpress or any service) tells you to.

    Hopefully, if you're new to virtual machines, this will help you.

    Rick

    PS: For an additional reference, you can use this help center article about the most basic ways to connect to your Compute Engine instances as well.