Using Apache2 in Centos


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Using Apache2 in Centos
# 1  
Old 11-21-2010
Using Apache2 in Centos

I am using a centos linux and I have installed on it apache2.
When I used ubuntu I edited the file index.html in the library /var/www
However I have seen that this is not the case in centos, so how can I create my "index.html" in centos?
do I need to edit some configuration file and tell it where is the index.html or what file it should load when someone try to access the IP in port 80?
# 2  
Old 11-21-2010
Hi.

The default "DocumentRoot" in CentOS (like Redhat) is /var/www/html.

You can set this to whatever you like by changing the "DocumentRoot" in /etc/httpd/conf/httpd.conf
This User Gave Thanks to Scott For This Post:
# 3  
Old 11-21-2010
Quote:
Originally Posted by scottn
Hi.

The default "DocumentRoot" in CentOS (like Redhat) is /var/www/html.

You can set this to whatever you like by changing the "DocumentRoot" in /etc/httpd/conf/httpd.conf
thanks.
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Query in CENTOS

P { margin-bottom: 0.21cm; } i have installed CENTOS in VMware. I want the linux command to run in CENTOS. The command is to select data's from Event table(our table name) convert into .xls and mail every 2hrs. Can you please help me in writing this script. Thanks, Shobana (2 Replies)
Discussion started by: shobana praveen
2 Replies

2. Red Hat

Help using XEN in CentOS 5.9

Hey guys, I've been straddling with this issue for quite some time now and I'm getting absolutely nowhere with it. It took me a long time to get XEN up and running on my server. We only use SSH to manipulate our servers, but we finally got it up and running. Now I'm at the point of actually... (1 Reply)
Discussion started by: mccabec123
1 Replies

3. Red Hat

RH V Centos

Hi, I have built out a new virtual production environment (VMWare, HA enabled, VMotion... all the bells & whistles) using RHEL5 VM's. I have got another ESX host that I plan to use as a pre-prod environment. To save some costs on RH subs I was thinking about installing this environment... (5 Replies)
Discussion started by: Duffs22
5 Replies

4. Red Hat

How to Upgrade Centos 5.7 using Centos 5.8 ISO image on Vmware workstation

Dear Linux Experts, On my windows 7 desktop with the help of Vmware workstation (Version 7.1), created virtual machine and installed Centos 5.7 successfully using ISO image. Query : Is this possible to upgrade the Centos 5.7 using Centos 5.8 ISO image to Centos version 5.8?.. if yes kindly... (2 Replies)
Discussion started by: Ananthcn
2 Replies

5. UNIX for Dummies Questions & Answers

CentOS updates

hello all I Installed CenTOS 5.5 and i've Run yum update command every thing went smoothly but i got the following error at the end 6:kdebase-3.5.4-21.el5.centos.1.i386: Insufficient space in download directory /var/cache/yum/updates/packages * free 6.0 M * needed 28 M ... (2 Replies)
Discussion started by: abu_shiahb
2 Replies
Login or Register to Ask a Question