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.
hmcnastyAsked:
Who is Participating?
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.

hieloCommented:
Check for:
/var/www/htdocs
or
/var/www/html

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
0
Manfred BertlManagerCommented:
On systems with Plesk installed (most online webservers administered remotely) the path would be:

/var/www/vhosts/<domainname>/httpdocs/
/var/www/vhosts/<domainname>/httpsdocs/
0
savoneCommented:
If you are running Red Hat or similar with the default apache install the web root is:

/var/www/html

So if his URL is http://domain.com/myfolder/

the full path would be:

/var/www/html/myfolder


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

find / -name httpd.conf -exec grep -i 'documentroot' {} \;
0
SandyCommented:
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.

TY/SA
0

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
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.