简体   繁体   中英

Location of Wordpress installation in Google Cloud Platform

I am trying to use Google Cloud Platform to launch a Wordpress. However, I need to tweak some of the codes in Wordpress.

I tried using the launcher to create an instance with both Wordpress and Bitnami. However, when I login using SFTP in a attempt to modify some of the codes, I can't find the folders for the wordpress installation. Where are they? In fact, there is nothing in the remote site. I can only see those folders and files in the attached image在此处输入图片说明 .

My questions are: 1. If I have to tweak the wordpress code, is it a good idea to use the launcher? 2. Is it correct/possible to use ftp to gain access to the codes?

When you access the server using FTP you are going to the Home directory, that is why you can't find the files you want.

The Wordpress files are located at /var/www/html

I see no problem to use the launcher and tweak the codes, the best way to access the server is using sftp as it is more secure.

In the above answers its told that under google cloud, Wordpress core/website files are to be found here: /var/www/html

But I found my WP files here: /opt/bitnami/apps/Wordpress/htdocs . Maybe because I'm using Bitnami Wordpress in GCP. So my answer might help a bitnami WP user. Also, as told in one of the answers above, I'm not able to change or rename any file there.

I am browsing my Google Cloud Installation through SFTP client FileZilla through Puttykey method. Hope this answer helps someone, who couldn't find WP files in the /var/www/html location.

Access your Wordpress file via instance SHH.

Switch to root using command sudo -i

Path for Wordpress file is

/var/www/html/wp-content/themes/

To edit a file use the command vi "file.name".

Then enter insert mode. Just hit i To close and save the file, press esc then type :x then the key enter.

Access your Wordpress file via instance SHH.

Switch to root using command sudo -i

Path for Wordpress file is

/var/www/html/wp-content/themes/

To edit a file use the command vi "file.name".

Then enter insert mode. Just hit i To close and save the file, press esc then type :x then the key enter.

*This worked for me aswell.

[https://onepagezen.com/manage-wordpress-files-on-google-cloud-platform/][1]

When searching from googles SSH (which you accessed from the key Putty Generates)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM