LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to make my home directory as Document root for apache (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-make-my-home-directory-as-document-root-for-apache-725381/)

antonyphilip 05-12-2009 04:25 AM

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

linuxlover.chaitanya 05-12-2009 04:27 AM

You need to change the permissions on the Document root and allow apache to access and execute the files.

antonyphilip 05-12-2009 04:37 AM

can explain me with some commands

linuxlover.chaitanya 05-12-2009 04:50 AM

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.


All times are GMT -5. The time now is 11:56 AM.