Results 1 to 3 of 3
the current root directory of fedora 15 is /var/www/html and since working as root is risky so i need to change my httpd root dir to ~/NetBeans
tried the httpd.conf ...
- 07-05-2011 #1Just Joined!
- Join Date
- Mar 2009
- Posts
- 89
Change the root directory of httpd in Fedora 15
the current root directory of fedora 15 is /var/www/html and since working as root is risky so i need to change my httpd root dir to ~/NetBeans
tried the httpd.conf file not working
- 07-06-2011 #2Linux Guru
- Join Date
- May 2011
- Posts
- 1,842
Well, you need to change the document root in two places in the httpd.conf file, search for DocumentRoot and look for comments to clue you in.
...But you are trying to use a directory under your home dir as the documentroot? That won't work b/c the user running httpd (usually nobody or apache) needs access to the dir.
Can you explain more about what you mean by working as root?
- 07-06-2011 #3Linux Guru
- Join Date
- Oct 2007
- Location
- Tucson AZ
- Posts
- 1,939
My question also. Because the Apache files are in /var/www/ directory doesn't mean you need to be root. Usually the owner:group is Apache:Apache and users need to be a member of that group. There is also usually a public_html directory used by Apache in /home/user directory. If not, it can be created. I'm not really sure what the problem is?Can you explain more about what you mean by working as root?


Reply With Quote