Solved

RedHat and Web Server File Locations

Posted on 2012-04-02
2
643 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
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

776 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