Manage WordPress Files on Google Cloud Platform
Articles,  Blog

Manage WordPress Files on Google Cloud Platform


Hello everyone – it’s Joe from onepagezen.com. And in this tutorial, I’m going to show you how to manage your WordPress files… On your Google Cloud Platform installation. So the first thing we’re going to do is install Google Cloud SDK. You can do that at cloud.google.com/sdk And you’re going to click “install for Windows”. And I’m going to click this link here to launch the installer. [clicks on downloaded file link] [clicks “agree”] [clicks “next”] [clicks “next”] [clicks [“install”] And click “install”. [gcloud init launches] Ok – now you see we have the command line here. After waiting a few seconds we’ll be prompted to log in, so we’re going to click “yes”. Alright – now this is going to open a link to our Google Cloud Platform account. I want to just bring this down here… [page loading] So you’re going to sign in with whichever account you’re using. And then you have to grant permissions – so I’m going to click “allow”. [loading] Alright – now let’s go back to our mainframe [terminal] here… It’s going to ask us, “Do you want to configure Google Compute Engine?” And we’re going to click “Y” for “Yes.” And it says “which Google Compute Engine zone would you like to use as the default?” I’m going to use… US Central So I think that’s “C”. Alright – now that I’m authenticated I’m going to go back to Google Cloud Platform. And I’m going to go under the SSH column. And I’m going to go to “View gcloud command”. And I’m going to copy this. I’m going to go back to my terminal here. I’m going to paste that, then click “enter”. Alright – now it’s working. This sometimes takes a couple of minutes. Alright. It was successful. So let’s click “yes” to that. And I don’t know what this is – “PuTTY Fatal Error”. That’s unusual. Let me try this again. I’ll see what happens… That’s not the right command. Let me go back to the gcloud command line – I’m going to copy this. Go back to the terminal. I’m going to enter that command again. See what happens this time. Hopefully we don’t get that same error. Ok – I don’t know what the error was last time but it appears to have worked. So our next step, you’re going to go to… In your VM instances, under the connect column. Go to “View gcloud command”. You’re going to copy all of that. And you’re going to paste that into the PuTTY terminal. Which is what we’ve been working in here. Ok – and after you do that the terminal is going to ask you… about generating an SSH key. So I entered the command and it says, “warning the public SSH key file for gcloud does not exist”. And it says “enter passphrase”. So I’m not going to enter a passphrase; you can always enter one. If you want to, for security reasons. Anyways, I’m just going to click “enter” I’m going to click “enter” again. And now it’s updating the MetaData, and this sometimes takes a couple of minutes. Alright – so now that that’s all finished. It says, “updating project SSH MetaData”. That’s all finished. And then it says “Permanently added _ to the list of known hosts”. Ok so perfect – that’s all done. And so you’re wondering “now what do I do?” So we’re going to go to our files in our computer. Alright – so I’m going to go to my file explorer. And I’m going to go to Windows C. So let me just show you here. And then under “users”. [choose your user directory] And then here in this folder called “.ssh” Is where the keys were generated. And now you can see, you have 3 SSH keys [files] to choose from. So what we’re going to do is go into FileZilla. We’re going to go to the edit tab here, then to settings. And we’re going to go to SFTP. And we’re going to go to “Add Key File” And we’re going to add the… PuTTY file. Which shows an icon of a computer with a hat on it. We’re going to add that file. Ok – click “open”. Ok – now that that’s added, perfect. We’re going to click “Ok”. Alright – we’re good to go on that. The next step, we’re going to go back to our Google Cloud Platform. We’re going to go to our VM instances. Then click on our instance. And we’re going to click on the “edit” tab here. Scroll down a little bit, and we’re going to go down to… Where it says, “you have one SSH key”, we’re going to go “show and edit”. Alright – perfect. We’re going to go to… Our file explorer. And see this Microsoft Publisher Document (this 3rd one). We’re going to open that. I’m going to go to “edit with notepad’ Alright – and here is our key, I’m going to copy that. And I’m going to paste it. And notice these last figures here where it says “Laptop…” (Identification stuff) We’re going to backspace all that and we’re going to put “bitnami”… as the user name because that is the name of our WordPress installation on Google Cloud. So perfect. Once that’s been done we’ll scroll down to the bottom and click on save. Alright – it looks like it saved just fine. So we’re going to go up a little bit. And you see here where it says “external IP” We’re going to copy our IP address. And we’re going to go back to FileZilla. We’re going to type sftp:// and we’re going to paste our IP address. And for our username, we are going to enter Bitnami. And we’re going to leave password and port blank. Click connect, and see what happens, hopefully this works, yes it worked just fine look at that. So here you go you have all your website files. Under “bitnami” here… Go to htdocs. Go to “apps”, I’m going to access my WordPress files. Look at under “apps”, there’s WordPress. This will be really useful for you if, say, you’re editing your functions.php file in your WordPress website. And something goes wrong with the code and you need to be able to access your website from the back-end. This is how you would do it. And this is why it’s so important to use and FTP client like this. Just play around with this, and you’ll be able to access all your WordPress files in here. Anyways… If you need more information, or have questions about how this works… Or if you have questions about accessing more of your files… Whatever it may be – make sure to leave a comment in the comment section below. And make sure to subscribe as well. I will be posting a lot of neat Google Cloud tutorials in the next few weeks. So thanks a lot for watching. And remember – if you have any questions make sure to comment in the box below. And thanks for watching.

70 Comments

  • X-Zone Adventure

    great video, will try this very soon !
    hey do you know how to install let's encrypt free ssl certificate on bitnami wordpress on google cloud platform ?
    If yes please make a video on it 🙂
    Thanks
    [email protected]

  • Johannes Kanter

    Great video thanks. I'm not using the bitnami version of wordpress. i got stuck with uploading files as filezilla gives error on permissions. I did a workaround by adding public rights via command, but it's not ideal. Wonder if there's a way to log in as sudo or extended rights (in filezilla)?

  • oliver dionela

    Really helpful videos. I am stuck because I am getting an "Insufficient Permission" error after pasting the gcloud command on the ssh terminal. Any ideas? Thanks

  • Justin Yonk

    These videos are great and very timely for us, as we are just getting started with WordPress on Google Cloud Platform. We're wondering if you have run into something before… We found a small issue on the Google Compute server where plugins are not able to write files. We're thinking this is a permissions issue, but we're not sure how to go about changing the permissions. Let us know if you have any thoughts, ideas, and/or solutions. Thanks!

  • Michael Goriany

    Hi, Leron,
    excellent video, thanks 🙂

    Ran into a problem: after pasting gcloud command into the PuTTY terminal:

    ERROR: (gcloud.compute.ssh) Could not fetch instance:
    – Insufficient Permission

    thanks for help,
    Michael

  • HaliWho

    Hi, great video.thank for providing so much useful video about google cloud platform.
    need your help. i having an error it said server refused our key. please help. here is the video about the error https://youtu.be/hwzMFZsQ7bY

  • Ezekiel Premier

    Tank you for this great video I've followed all the steps but I cant edit or transfer the files though I have access to them. do you have any idea about what is going wrong. thank you!

  • Sendil Kumar

    Hi,
    I followed the steps and I successfully can access my project folder in the remote but I don't see the wordpress app files there..
    I had installed wordpress on GCP and its working fine to when opened.
    But the key in my local machine was created for a previous or deleted instance, is that a problem?
    Do I have to create a ssh key for my current instance again ? @One Page Zen

  • Benjamin Waller

    Hello Joe,
    Great tutorial again. I have a few questions. After setting up a site on GCP with SSL certificates, what is the best way to manage images? Should I be uploading them within the WordPress dashboard or have to use FTP (FileZilla) for the SSL to work correctly? Or as an alternative, would it be better to store these image files into a storage Container on GCP and link to them that way?

  • MA.studio Fotografia

    did access but, did not found the WordPress folder… strange… Gcloud Deploy, not bitnami. Coming a version 2? =D cheers!

  • Sheng-ju Chen

    ERROR: (gcloud.compute.ssh) Could not fetch instance:
    – Insufficient Permission
    What is happened ? Would you please help ?

  • Hilal Suhaib

    Thank you for the helpful tutorials! At 8:42, you removed the "laptop, identification stuff" and replaced it with "bitnami" – can you please share what information needs to be entered there? Is it project ID, WP admin username or something else? I used a different entry, like the username, and it still connects via an FTP client but creates a new user/profile folder and you can't find any WP installation files in there.

    Edit: found WP files in a different folder (/vars/www/html)

  • Erica's Adventures

    Thanks for the great video. It was clear and concise and I was able to follow along with no issues. Appreciate you taking the time to make it and look forward from learning from all your other videos as well. I'm a long time wordpress user but just delving into Google Cloud for the first time, so your channel is helping keep me sane. Keep 'em coming.

  • Rob McDonald

    Does this work the same way with cyber duck? I know that cyberduck needs a .pem formated key, is one of the keys created in this video in .pem format? Would appreciate any help on this, as I have been trying to connect with cyberduck for days without any work, and can't seem to find any tutorials on this.

  • One Page Zen

    What did you think of this tutorial?
    If you want to view this tutorial with each command listed step-by-step, check out the version at onepagezen.com:
    https://www.onepagezen.com/manage-wordpress-files-on-google-cloud-platform/
    Need help fixing permission errors? Check out this tutorial:
    https://www.onepagezen.com/fix-ftp-permission-errors-google-cloud/
    Thanks for watching!
    Joe

  • Nery Fernandez

    hi, I have a problem with the 5.10 min, the following message appears "ERROR: (gcloud.compute.ssh) Could not fetch resource: – Insufficient Permission"

  • Mark Spenser

    Hi, after this step 5:55 I have an error "ERROR: (gcloud.compute.ssh) Could not fetch resource: – "Insufficient Permission" any clue why?

  • Bruce BJC

    This great for reading files, but can't write/edit/change/delete them, as other users have pointed out, so isn't it a lot of work for almost nothing?

  • Abdallah Alshehri

    hi joe, This is the first time i use GCP SO just i have questions. if i want to upload my PHP projects (not WordPress), can I use the same way that you did on this video .

  • A. Jain

    why is it so complicated to access simple wordpress files ? why dont show anywhere on the browser.. why have they made this cloud so difficult, i really like traditional hosting in terms of UI.

  • ATOWAR RAHMAN

    Dear Sir,
    I have uploaded my site files to remote site through FileZilla by connecting sftp://xxxxxxxx server with putty key generated username . I can see my site files when I connect FileZilla to remote server . It just works fine .I have imported my database to phpmyadmin by creating a new database name wpdatabase. I have also edited wp-config file like this : Database name: wpdatabase user: root password: new password created/changed through gcloud command line . db host name : external IP xxxxxxxx provided by gcloud in stead of localhost. I have also changed site url & home to http://external IP instead of localhost in phpmyadmin . There is no error found in SQL quiry in phpmyadmin. But When I click on my site url in deployment page now I still see localhost stated something like this :
    ''This site can’t be reached
    localhost refused to connect. ''
    My firewall rules : allow HTTP traffic checked both . I can't fix this problem . Can you please help me to be my existing wordpress site online through the provided external IP in compute engine? Thanks.

  • Ernest Machado

    In the putty terminal I am getting this error:

    ERROR: (gcloud.compute.ssh) Could not fetch resource:
    – Insufficient Permission

    Please guide!

  • Black Milk

    Thanks man ) So many time try to connect with SFTP to Google Cloud Platform and can't ) Also see many instructions but nothing help… Just your tutorial help to me 🙂

  • Failmora

    Hello, once it is installed in google cloud platform, is there a way i can install cpanel on top of that . I want cpanel because i want to manage my files and everything without using SSH / FileZilla

  • shiva krishna

    my putty says ERROR: (gcloud.compute.ssh) Could not fetch resource:
    – Insufficient Permission please could help me out.

  • Live Concept

    Is there a way to install cPanel instad ? I have +2GBs site and it's always incomplete transfer with filezilla.

  • Snehil Tripathy

    hey .. bro can you please tell me that the themes and setting which I upload there I mean in Filezilla it will work on my site even when I'm not connected to the internet?

  • rahul singh

    ERROR: (gcloud.compute.ssh) Could not fetch resource:

    – Insufficient Permission

    sir i am getting this error
    before updating project ssh metadata…
    so update of project ssh metadata is getting in action

  • Abbaa Jaan

    What the fuck is this? Why I should give my 10 minutes to login only when I can easily login in 40 seconds in my Whm/cpanel and edit my wordpress files in just minutes? ?

  • Campos C

    you can make a video teaching how to delete an entire folder for example.

    For example, I'm trying to delete the entire folder from thema / theme by filezilla and I can not.

    I also try to delete the plugins and I can not. says access is denied.

    you can make a video, please, teaching how to solve this and delete any folder.

  • Minhajur Rahman Sakkhor

    4:17 when i copy and paste the command, putty open with a error. it says network error: connection time out. please help ??

  • Advanced Spa

    HOST A STATIC WEBSITE ON GOOGLE CLOUD PLATFORM 2018 – Developer Discussion
    http://audiencenetwork.us/host-a-static-website-on-google-cloud-platform-2018-developer-discussion/

  • Dave Young

    After SDK install, I never got the request to log in. The screen shows only the "Welcome…" line, then the local drive location of the SDK. Nothing else. Any remedy for this:?

  • João Rodrigues

    Hey there,
    I edited the wp-config.php file and now I'm trying to upload the file to google cloud via sftp via filezilla but when i do this the file uploaded is completely empty in the server.
    I've tried already with other ftp clients (WinSCP) and disabled my firewall but still have the same problem. i changed the permissions to 777 before i upload the file. I also removed some files (images) because i was thinking that the problem was the space on the disk but still have the same problems. Can someone help me with this?

  • Marc Hannah

    wow, great tutorial, I got everything set up, however prior to doing this tutorial, I somehow deleted or misplaced my htdocs and apps folders contents. so I see a ? on the folder. Would it be as simple as copying and pasting, currently i can't get in the wp-admin due to changing the domain name from the ip address. That tutorial didn't go as smooth.
    advice would be amazing.

  • Deedee

    After having completed this wonderful walk-thru I just thought I would add a few notes. Google seems to have made some updates to this software so let the sdk software guide you a bit more through the process I did not have the issue with PUTTY though I did see SDK seemed to work out the errors for me, I just followed the software I came out a bit ahead of him on the video tutorial. When you change your credentials be VERY CAREFUL Replace "bitnami" EXACTLY where you credentials were removed if you get an error do it again it will work! …also afterwards you won't have the permissions to make changes via Filezilla … i found this thread in the community that helped https://community.bitnami.com/t/wordpress-bitnami-permissions-issue/48392/2

    thank you for this tutorial liked and subscribed!

  • Sapra Chandni

    Hey Joe..
    I just followed your steps. Done with all the steps and found the bitnami folder in filezila but i can see only .ssh file there. No more files.. Also not able to find my WordPress folder there..
    Not sure if i have missed any step. Can you please help?

  • E2 Buddy

    Thanks for the video man. Even after 2 years of posting, it is still helpful for newbies like me to access WordPress files on GCP. Thanks a ton.

  • Michael Fess

    First of all, thanks for all your tutorials. I don't think I could have made the transition to GCS without them! I am using Cyberduck on Mac but got everything to work in terms of connecting. I am having a problem though… It connects me to a folder containing no files. I when to the home folder and found the wordpress files in /var/www/html, but I do not have permissions to edit/delete. How do I change permissions?

  • Dave Young

    When I got to the point of pasting the SSH command line into the SDK shell, I got an error which said, "gcloud…" is not a recognized command…. I'm dead in the water. Any fix for this?

Leave a Reply

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