How do I view wordpress details via ssh.
Why us it that when I login via ssh, and use "ls" command,u see nothing or nothing comes up. Yet its a wordpress site running. What's wrong?
Host is shadowhashing.com which is a wordpress site.
1 Reply
When you first login via ssh, you’re in your user’s home directory. (The command pwd will tell you where you are at.)
The command ls not showing you anything means there’s nothing there or there could be hidden files. ls -la will show everything.
However you probably setup Wordpress in another directory. Usually the default is
/var/www/html/yourwebsitesurl/
(Note you have to enter in your actual website url)
If you type ls, you’ll probably see a public directory which will have your Wordpress site files in.
To get there type cd /var/www/html/yourwebsitesurl/
Then type ls to see the available directories. If you see a public directory, type cd thedirectoryname then press enter.
Type ls will show you the files in that directory.