Solved

RedHat and Web Server File Locations

Posted on 2012-04-02
2
678 Views
Last Modified: 2012-04-02
I have a RedHat web server that is running a website.  How do i find the locate of the web site files?
0
Comment
Question by:deklinm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 30

Accepted Solution

by:
Kerem ERSOY earned 500 total points
ID: 37797479
Hi,

By dedault the document root is located under  /var/www/html for RedHat servers. If you want to see the actual location you can query the contents of your /etc/httpd/conf/httpd.conf file for DocumentRoot variable. such as:


[root@xxxx ~]# grep DoscumentRoot /etc/httpd/conf/httpd.conf 

Open in new window


The output should be something similar to this:

# DocumentRoot: The directory out of which you will serve your
DocumentRoot "/var/www/html"
# This should be changed to whatever you set DocumentRoot to.

Open in new window


Cheers,
K.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 37797484
That depends on how the web server is set up.  The Virtual Hosts settings can place the web files almost anywhere and if you have user directory hosting enabled, then each user under /home could have their own web site, usually in /home/~user/public_html .  Some more info here:  http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/3/html/System_Administration_Guide/s1-httpd-virtualhosts-settings.html
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question