Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-09-2010, 02:14 AM   #1
Registered: Oct 2010
Posts: 36

Rep: Reputation: 0
How to host web site on Apache

Hi All,

I have installed Apache on RHEL 5 ( my personal machine)

Now i want to host web site on it for my personal use.

Please tell me the step how to do this ?
Old 11-09-2010, 02:27 AM   #2
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 537

Rep: Reputation: 79

How did you install Apache?

If you did it with "yum" it's most likely already started.

Have you tried to open your web browser on http://localhost?
Have you check if the folder /var/www is existing on your system? (By default there is a big chances that your website will located there)

The config files of your apache server are located (most likely) in your /etc/apache2 or /etc/httpd/ folder.

This web link will give you some more information on how to configure apache.

If you do some changes in your config you will need to reload the config into apache by typing this:
service apache reload

Last edited by angel115; 11-09-2010 at 02:31 AM.
Old 11-09-2010, 02:50 AM   #3
Senior Member
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,153
Blog Entries: 4

Rep: Reputation: 149Reputation: 149

RHEL already have http service.

Confirm if you have http rpm

sudo rpm -qa | grep -i http
if you dont have http rpm you can use rhel cd/dvd to install http rpm using

sudo rpm -ivh http-****.rpm
Note: RHEL don't have proper support for yum if you don't have licensed copy of RHEL

Suppose you have you website folder(mysite) with index.html page and other website content then put it in /var/www/html

Do this:

sudo chown -R apache.apache /var/www/html/mysite
Then restart http service:

sudo /etc/init.d/httpd restart
sudo chkconfig httpd on
then access your site in firefox or any other web-browser using your system IP:

This will get you started.For various other configuration you can follow this link:
Old 11-09-2010, 06:02 AM   #4
Registered: Oct 2010
Posts: 36

Original Poster
Rep: Reputation: 0
Thanks Angle and Prayag for your help.

I am able to open my site.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install web server and host a web site swamybsv Linux - Server 3 05-25-2009 01:28 PM
Host own web site with Suse 10.2 stevest SUSE / openSUSE 3 06-04-2007 06:48 PM
looking for a web site host running linux that will give me control case1984 Linux - General 2 04-13-2007 07:57 PM
Using SSH to copy web site to new host longstockings Linux - Server 8 03-30-2007 07:48 AM
apache web site pinguim66 Ubuntu 13 08-20-2006 12:40 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration