What Directory Do My Website's Files Reside In?
Linode
Linode Staff
I'm trying to find the directory where my website's files reside in, so that I can upload new files and images. How can I find this on my server?
4 Replies
jchism
Linode Staff
You can check the virtual host file for your website and check the "DocumentRoot" setting. This should point to the directory where your website's files exist. Depending on how your Apache web service is configured, the virtual host file may reside under the "/etc/apache2/sites-available" directory. We have a guide that you can reference for assistance with this.
You can also verify this using the "apache2ctl -S" command. Here's an example from my personal server, where the "DocumentRoot" setting is set to the "/var/www/html" directory.
# apache2ctl -S
VirtualHost configuration:
Main DocumentRoot: "/var/www/html"