LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-12-2009, 04:25 AM   #1
antonyphilip
LQ Newbie
 
Registered: May 2009
Posts: 11

Rep: Reputation: 0
Unhappy how to make my home directory as Document root for apache


Hi
i was creating appache server and was succesfull with minimal configurations i have done
As an expiriment i have changed DocumetsRoot in httpd.conf as my home directory and created an index.html under that .But even after restaring the hhtpd i was getting an error.I forgot to note down that error number but it was something starting from 401error (assume).

Please some one advice me if i need to make any further changes to any settings or file permission si need to set to configure the same with my home directory as DocumentRoot
 
Old 05-12-2009, 04:27 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
You need to change the permissions on the Document root and allow apache to access and execute the files.
 
Old 05-12-2009, 04:37 AM   #3
antonyphilip
LQ Newbie
 
Registered: May 2009
Posts: 11

Original Poster
Rep: Reputation: 0
can explain me with some commands
 
Old 05-12-2009, 04:50 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
It is a bad idea though to put your home directory as document root as you will need to allow its access to others as well. Another way is put the user as which your httpd runs in your group. And you will need to allow others to execute the index file.
This is a very basic thing that can be done by chmod command or chown command. Search google on how to change the permissions on a file and directory and give execute permissions.
 
  


Reply


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
Apache - change document root? squall14716 Linux - Software 2 01-20-2010 10:16 AM
Apache Document Root Re-Direct? carlosinfl Red Hat 1 07-09-2007 07:45 PM
altering document root for apache pbhj Linux - Server 3 09-04-2006 07:05 PM
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
Document Root in Apache Hal Linux - Newbie 2 10-28-2003 06:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:39 PM.

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