Find the answer to your Linux question:
Results 1 to 5 of 5
Hey everyone, I'm trying to get apache configured right, but if I try to ' PATH_to_bin/apachetl start ' as root i get the following: DocumentRoot must be a directory I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2003
    Posts
    27

    DocumentRoot problem


    Hey everyone,

    I'm trying to get apache configured right, but if I try to ' PATH_to_bin/apachetl start ' as root i get the following:

    DocumentRoot must be a directory
    I checked httpd.conf and found the DocumentRoot entry, and it is a directory... any ideas?

  2. #2
    Linux Engineer
    Join Date
    Apr 2003
    Location
    Sweden
    Posts
    796
    Documentroot should be a valid directory in your filesystem where you webbfiles should be located, you can change that another directory if you want. I think the default setting is /var/www/html, where the apache testpage is located.

    Regards

    Regards

    Andutt

  3. #3
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    What is your DocumentRoot set to? What is the output of stat when applied on that filename?

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Apr 2003
    Posts
    27
    DocumentRoot is set to /var/www/htdocs, which, again, is a valid directory. What do u mean by stat? Do you mean the C system call stat()?

  6. #5
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Well, basically I was referring was the stat syscall, but there is a shell command front-end for it by the same name.

Posting Permissions

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