Linux website path

Hi.  I'm not quite sure how to ask this.
I was asked by a developer what the exact path was to a particular folder with in his web site so that users could upload pics to it.   I'm not very familiar with Linux.  Wod it be something like /hotdocs/website/folder.
For example in windows it could be something like d:\webroot\website\folder
This way he could put that path in his code as the upload path.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Check for:

If you can't find it there, then look at the apache config file, which is typically in:
/etc/httpd/conf/httpd.conf (RedHat & CentOS)
/etc/apache2/mods-available/apache2.conf (Ubuntu )

Open the config file and search for DOCUMENT_ROOT
Manfred BertlManagerCommented:
On systems with Plesk installed (most online webservers administered remotely) the path would be:

If you are running Red Hat or similar with the default apache install the web root is:


So if his URL is

the full path would be:


You can find the Document Root in the apache config easily with the following command:

find / -name httpd.conf -exec grep -i 'documentroot' {} \;
Ask your developer to check the apache settings for the Parameter called "DocumentRoot" it could be some where in /usr/local but if you are using default bundled RHEL httpd package then it will be /var/www/html and if it is name based virtual hosting then it depends on the <VHOST> entry.

In case doubt paste here your apache conf file, I will help.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.