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
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 😡 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 😡 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)