Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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

  2. #2
    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?

  3. #3
    Linux Guru
    Join Date
    Oct 2007
    Tucson AZ
    Can you explain more about what you mean by working as root?
    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?

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts