Where are wordpress filess located?

I added two wordpress apps to my server but when I ssh to root@myip I can’t see their files anywhere although the wordpress sites are up and fully functioning.

I followed some guides and checked in ‘var’ but there was no ‘www’ directory. I installed apache2 (not sure if this was the right thing to do or not?) and and the www directory was created containing one index.html file. However it doesn’t display an other wordpress files. Any help would be greatly appreciated.

This is running on an Ubuntu 64 droplet.

I’m a complete noob so any help would be greatly appreciated.


they’re reviewing my comment that has the php info but turns out it was hidden and i rewrote the file but had wordfence things in it so i already deleted that could there be remnants? I am still getting the same php file that i uploaded its under review

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello, If you used the ‘one-click Wordpress’ installation on creation of your droplet at DO, the default directory of your website will be /var/www/html. But it looks like you are using serverpilot since you say you created multiple apps. So if you use serverpilot, your wordpress website will be located at /srv/users/serverpilot/$appname